diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/fsl-eula-unpack.bbclass | 10 | ||||
-rw-r--r-- | classes/fsl-u-boot-localversion.bbclass | 30 | ||||
-rw-r--r-- | classes/imx-boot-container.bbclass | 7 | ||||
-rw-r--r-- | classes/use-imx-security-controller-firmware.bbclass | 2 | ||||
-rw-r--r-- | classes/uuu_bootloader_tag.bbclass | 24 |
5 files changed, 46 insertions, 27 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass index 46b0f9c4f..54b25b3ac 100644 --- a/classes/fsl-eula-unpack.bbclass +++ b/classes/fsl-eula-unpack.bbclass | |||
@@ -59,6 +59,9 @@ FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V47 = "9135422c7a38dac21bf1f858 | |||
59 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V48 = "db4762b09b6bda63da103963e6e081de" | 59 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V48 = "db4762b09b6bda63da103963e6e081de" |
60 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V49 = "2827219e81f28aba7c6a569f7c437fa7" | 60 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V49 = "2827219e81f28aba7c6a569f7c437fa7" |
61 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V53 = "44a8052c384584ba09077e85a3d1654f" | 61 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V53 = "44a8052c384584ba09077e85a3d1654f" |
62 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V56 = "10c0fda810c63b052409b15a5445671a" | ||
63 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V57 = "ca53281cc0caa7e320d4945a896fb837" | ||
64 | FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V58 = "c0fb372b5d7f12181de23ef480f225f3" | ||
62 | 65 | ||
63 | FSL_EULA_FILE_MD5SUMS = " \ | 66 | FSL_EULA_FILE_MD5SUMS = " \ |
64 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_BASE_LICENSE_V8} \ | 67 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_BASE_LICENSE_V8} \ |
@@ -114,11 +117,14 @@ FSL_EULA_FILE_MD5SUMS = " \ | |||
114 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V48} \ | 117 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V48} \ |
115 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V49} \ | 118 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V49} \ |
116 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V53} \ | 119 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V53} \ |
120 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V56} \ | ||
121 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V57} \ | ||
122 | ${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V58} \ | ||
117 | " | 123 | " |
118 | 124 | ||
119 | # The checksum for the EULA in the layer | 125 | # The checksum for the EULA in the layer |
120 | FSL_EULA_FILE_MD5SUM ?= \ | 126 | FSL_EULA_FILE_MD5SUM ?= \ |
121 | "${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V53}" | 127 | "${FSL_EULA_FILE_MD5SUM_LA_OPT_NXP_SOFTWARE_LICENSE_V58}" |
122 | 128 | ||
123 | LIC_FILES_CHKSUM_LAYER ?= "file://${FSL_EULA_FILE};md5=${FSL_EULA_FILE_MD5SUM}" | 129 | LIC_FILES_CHKSUM_LAYER ?= "file://${FSL_EULA_FILE};md5=${FSL_EULA_FILE_MD5SUM}" |
124 | LIC_FILES_CHKSUM_LAYER[vardepsexclude] += "FSL_EULA_FILE" | 130 | LIC_FILES_CHKSUM_LAYER[vardepsexclude] += "FSL_EULA_FILE" |
@@ -160,7 +166,7 @@ python fsl_bin_do_unpack() { | |||
160 | 166 | ||
161 | localdata = bb.data.createCopy(d) | 167 | localdata = bb.data.createCopy(d) |
162 | 168 | ||
163 | rootdir = localdata.getVar('WORKDIR', True) | 169 | rootdir = localdata.getVar('UNPACKDIR', True) |
164 | fetcher = bb.fetch2.Fetch(src_uri, localdata) | 170 | fetcher = bb.fetch2.Fetch(src_uri, localdata) |
165 | 171 | ||
166 | found = 0 | 172 | found = 0 |
diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass index 94b30c04e..df4ac5fbf 100644 --- a/classes/fsl-u-boot-localversion.bbclass +++ b/classes/fsl-u-boot-localversion.bbclass | |||
@@ -17,21 +17,21 @@ UBOOT_LOCALVERSION = "${LOCALVERSION}" | |||
17 | do_compile:prepend() { | 17 | do_compile:prepend() { |
18 | if [ "${SCMVERSION}" = "y" ]; then | 18 | if [ "${SCMVERSION}" = "y" ]; then |
19 | # Add GIT revision to the local version | 19 | # Add GIT revision to the local version |
20 | if [ "${SRCREV}" = "INVALID" ]; then | 20 | if [ "${SRCREV}" = "INVALID" ]; then |
21 | hash=${SRCREV_machine} | 21 | hash=${SRCREV_machine} |
22 | else | 22 | else |
23 | hash=${SRCREV} | 23 | hash=${SRCREV} |
24 | fi | 24 | fi |
25 | if [ "$hash" = "AUTOINC" ]; then | 25 | if [ "$hash" = "AUTOINC" ]; then |
26 | branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD` | 26 | branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD` |
27 | head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null` | 27 | head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null` |
28 | else | 28 | else |
29 | head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null` | 29 | head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null` |
30 | fi | 30 | fi |
31 | patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null` | 31 | patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null` |
32 | printf "%s%s%s%s" +g $head +p $patches > ${S}/.scmversion | 32 | printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${S}/.scmversion |
33 | printf "%s%s%s%s" +g $head +p $patches > ${B}/.scmversion | 33 | printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${B}/.scmversion |
34 | else | 34 | else |
35 | printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion | 35 | printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion |
36 | printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion | 36 | printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion |
37 | fi | 37 | fi |
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass index 53c70a0b8..c3a13a255 100644 --- a/classes/imx-boot-container.bbclass +++ b/classes/imx-boot-container.bbclass | |||
@@ -27,7 +27,7 @@ | |||
27 | ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin" | 27 | ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin" |
28 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" | 28 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" |
29 | 29 | ||
30 | IMX_BOOT_CONTAINER_FIRMWARE_SOC = "" | 30 | IMX_BOOT_CONTAINER_FIRMWARE_SOC ?= "" |
31 | IMX_BOOT_CONTAINER_FIRMWARE_SOC:mx8mq-generic-bsp = " \ | 31 | IMX_BOOT_CONTAINER_FIRMWARE_SOC:mx8mq-generic-bsp = " \ |
32 | signed_dp_imx8m.bin \ | 32 | signed_dp_imx8m.bin \ |
33 | signed_hdmi_imx8m.bin \ | 33 | signed_hdmi_imx8m.bin \ |
@@ -63,6 +63,9 @@ do_resolve_and_populate_binaries() { | |||
63 | else | 63 | else |
64 | bberror "ATF binary is undefined, result binary would be unusable!" | 64 | bberror "ATF binary is undefined, result binary would be unusable!" |
65 | fi | 65 | fi |
66 | if [ "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '1' , '0' , d)}" = "1" ] ; then | ||
67 | cp ${DEPLOY_DIR_IMAGE}/${OPTEE_BOOT_IMAGE} ${B}/${config}/ | ||
68 | fi | ||
66 | fi | 69 | fi |
67 | done | 70 | done |
68 | unset j | 71 | unset j |
@@ -96,7 +99,7 @@ do_deploy:append() { | |||
96 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then | 99 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then |
97 | ln -sf flash.bin-${MACHINE}-${type} flash.bin | 100 | ln -sf flash.bin-${MACHINE}-${type} flash.bin |
98 | ln -sf flash.bin-${MACHINE}-${type} imx-boot | 101 | ln -sf flash.bin-${MACHINE}-${type} imx-boot |
99 | 102 | ln -sf flash.bin.tagged imx-boot.tagged | |
100 | else | 103 | else |
101 | bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type" | 104 | bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type" |
102 | fi | 105 | fi |
diff --git a/classes/use-imx-security-controller-firmware.bbclass b/classes/use-imx-security-controller-firmware.bbclass index f07580dd2..975dd77c1 100644 --- a/classes/use-imx-security-controller-firmware.bbclass +++ b/classes/use-imx-security-controller-firmware.bbclass | |||
@@ -22,7 +22,9 @@ SECO_FIRMWARE_NAME:mx8qxp-generic-bsp ?= "mx8qx${IMX_SOC_REV_LOWER}-ahab-contain | |||
22 | SECO_FIRMWARE_NAME:mx8dx-generic-bsp ?= "mx8qx${IMX_SOC_REV_LOWER}-ahab-container.img" | 22 | SECO_FIRMWARE_NAME:mx8dx-generic-bsp ?= "mx8qx${IMX_SOC_REV_LOWER}-ahab-container.img" |
23 | SECO_FIRMWARE_NAME:mx8dxl-generic-bsp ?= "mx8dxl${IMX_SOC_REV_LOWER}-ahab-container.img" | 23 | SECO_FIRMWARE_NAME:mx8dxl-generic-bsp ?= "mx8dxl${IMX_SOC_REV_LOWER}-ahab-container.img" |
24 | SECO_FIRMWARE_NAME:mx8ulp-generic-bsp ?= "mx8ulp${IMX_SOC_REV_LOWER}-ahab-container.img" | 24 | SECO_FIRMWARE_NAME:mx8ulp-generic-bsp ?= "mx8ulp${IMX_SOC_REV_LOWER}-ahab-container.img" |
25 | SECO_FIRMWARE_NAME:mx91-generic-bsp ?= "mx91${IMX_SOC_REV_LOWER}-ahab-container.img" | ||
25 | SECO_FIRMWARE_NAME:mx93-generic-bsp ?= "mx93${IMX_SOC_REV_LOWER}-ahab-container.img" | 26 | SECO_FIRMWARE_NAME:mx93-generic-bsp ?= "mx93${IMX_SOC_REV_LOWER}-ahab-container.img" |
27 | SECO_FIRMWARE_NAME:mx95-generic-bsp ?= "mx95${IMX_SOC_REV_LOWER}-ahab-container.img" | ||
26 | 28 | ||
27 | python () { | 29 | python () { |
28 | if "mx8m-generic-bsp" in d.getVar('MACHINEOVERRIDES').split(":"): | 30 | if "mx8m-generic-bsp" in d.getVar('MACHINEOVERRIDES').split(":"): |
diff --git a/classes/uuu_bootloader_tag.bbclass b/classes/uuu_bootloader_tag.bbclass index 87745660c..b41d22a92 100644 --- a/classes/uuu_bootloader_tag.bbclass +++ b/classes/uuu_bootloader_tag.bbclass | |||
@@ -1,12 +1,20 @@ | |||
1 | # Append a tag to the bootloader image used in the SD card image. The tag | 1 | # Create a tagged boot partition file for the SD card image file. The tag |
2 | # contains the size of the bootloader image so UUU can easily find the end of | 2 | # contains the size of the boot partition image so UUU can easily find |
3 | # the bootloader in the SD card image. | 3 | # the end of it in the SD card image file. |
4 | # | ||
5 | # IMPORTANT: The tagged boot partition file should never be used directly with | ||
6 | # UUU, as it can cause UUU to hang. | ||
7 | |||
8 | UUU_BOOTLOADER = "${UBOOT_BINARY}" | ||
9 | UUU_BOOTLOADER:mx8-generic-bsp = "${@d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '0' and 'imx-boot' or 'flash.bin'}" | ||
10 | UUU_BOOTLOADER:mx9-generic-bsp = "${@d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '0' and 'imx-boot' or 'flash.bin'}" | ||
11 | |||
4 | do_deploy:append() { | 12 | do_deploy:append() { |
5 | if [ "${UUU_BOOTLOADER}" != "" ]; then | 13 | if [ "${UUU_BOOTLOADER}" != "" ]; then |
6 | cp ${DEPLOYDIR}/${UUU_BOOTLOADER} ${DEPLOYDIR}/${UUU_BOOTLOADER_TAGGED} | 14 | cp ${DEPLOYDIR}/${UUU_BOOTLOADER} \ |
7 | cp ${DEPLOYDIR}/${UUU_BOOTLOADER} ${DEPLOYDIR}/${UUU_BOOTLOADER_UNTAGGED} | 15 | ${DEPLOYDIR}/${UUU_BOOTLOADER}.tagged |
8 | ln -sf ${UUU_BOOTLOADER_TAGGED} ${DEPLOYDIR}/${UUU_BOOTLOADER} | 16 | stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND \ |
9 | stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND ${DEPLOYDIR}/${UUU_BOOTLOADER_TAGGED} \ | 17 | ${DEPLOYDIR}/${UUU_BOOTLOADER}.tagged \ |
10 | >> ${DEPLOYDIR}/${UUU_BOOTLOADER_TAGGED} | 18 | >> ${DEPLOYDIR}/${UUU_BOOTLOADER}.tagged |
11 | fi | 19 | fi |
12 | } | 20 | } |