diff options
Diffstat (limited to 'recipes-bsp')
| -rw-r--r-- | recipes-bsp/firmware-sentinel/firmware-sentinel_0.8.bb | 23 | ||||
| -rw-r--r-- | recipes-bsp/firmware-upower/firmware-upower_1.1.0.bb | 31 | ||||
| -rw-r--r-- | recipes-bsp/imx-mkimage/imx-boot_1.0.bb | 28 |
3 files changed, 82 insertions, 0 deletions
diff --git a/recipes-bsp/firmware-sentinel/firmware-sentinel_0.8.bb b/recipes-bsp/firmware-sentinel/firmware-sentinel_0.8.bb new file mode 100644 index 000000000..0ea56f983 --- /dev/null +++ b/recipes-bsp/firmware-sentinel/firmware-sentinel_0.8.bb | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Copyright 2021-2022 NXP | ||
| 2 | SUMMARY = "NXP i.MX Sentinel firmware" | ||
| 3 | DESCRIPTION = "Firmware for i.MX Sentinel Security Controller" | ||
| 4 | SECTION = "base" | ||
| 5 | LICENSE = "Proprietary" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe" | ||
| 7 | |||
| 8 | inherit fsl-eula-unpack use-imx-security-controller-firmware deploy nopackages | ||
| 9 | |||
| 10 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
| 11 | SRC_URI[md5sum] = "be47a5e59c1192ee36246af97d5d1532" | ||
| 12 | SRC_URI[sha256sum] = "1003d4c6773c153ea341911a74e25c249423644f70f3d8f8d085599e00770b3f" | ||
| 13 | |||
| 14 | do_compile[noexec] = "1" | ||
| 15 | do_install[noexec] = "1" | ||
| 16 | |||
| 17 | do_deploy () { | ||
| 18 | # Deploy the related firmware to be package by imx-boot | ||
| 19 | install -m 0644 ${S}/${SECO_FIRMWARE_NAME} ${DEPLOYDIR} | ||
| 20 | } | ||
| 21 | addtask deploy after do_install before do_build | ||
| 22 | |||
| 23 | COMPATIBLE_MACHINE = "(mx8ulp-nxp-bsp)" | ||
diff --git a/recipes-bsp/firmware-upower/firmware-upower_1.1.0.bb b/recipes-bsp/firmware-upower/firmware-upower_1.1.0.bb new file mode 100644 index 000000000..f21de75ae --- /dev/null +++ b/recipes-bsp/firmware-upower/firmware-upower_1.1.0.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | # Copyright 2021-2022 NXP | ||
| 2 | DESCRIPTION = "NXP i.MX uPower firmware" | ||
| 3 | LICENSE = "Proprietary" | ||
| 4 | SECTION = "BSP" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe" | ||
| 6 | |||
| 7 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/${PN}-${PV}" | ||
| 10 | |||
| 11 | inherit fsl-eula-unpack pkgconfig deploy | ||
| 12 | |||
| 13 | SRC_URI[md5sum] = "d2cbe8d2f8fa170e5d48c599c4caac5e" | ||
| 14 | SRC_URI[sha256sum] = "c02595917744769abe810107a08506e4055b8077b5fc4ed17c353b833756c8b0" | ||
| 15 | |||
| 16 | do_configure[noexec] = "1" | ||
| 17 | |||
| 18 | do_compile[noexec] = "1" | ||
| 19 | |||
| 20 | do_install[noexec] = "1" | ||
| 21 | |||
| 22 | BOOT_TOOLS = "imx-boot-tools" | ||
| 23 | |||
| 24 | do_deploy () { | ||
| 25 | # Deploy the related firmware to be package by imx-boot | ||
| 26 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 27 | install -m 0644 ${S}/${UPOWER_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/upower.bin | ||
| 28 | } | ||
| 29 | addtask deploy after do_install before do_build | ||
| 30 | |||
| 31 | COMPATIBLE_MACHINE = "(mx8ulp-nxp-bsp)" | ||
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index 5c20fac8e..71f8b25d6 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
| @@ -65,12 +65,16 @@ SOC_FAMILY = "INVALID" | |||
| 65 | SOC_FAMILY:mx8-generic-bsp = "mx8" | 65 | SOC_FAMILY:mx8-generic-bsp = "mx8" |
| 66 | SOC_FAMILY:mx8m-generic-bsp = "mx8m" | 66 | SOC_FAMILY:mx8m-generic-bsp = "mx8m" |
| 67 | SOC_FAMILY:mx8x-generic-bsp = "mx8x" | 67 | SOC_FAMILY:mx8x-generic-bsp = "mx8x" |
| 68 | SOC_FAMILY:mx8ulp-nxp-bsp = "mx8ulp" | ||
| 68 | 69 | ||
| 69 | REV_OPTION ?= "" | 70 | REV_OPTION ?= "" |
| 70 | REV_OPTION:mx8qxp-generic-bsp = \ | 71 | REV_OPTION:mx8qxp-generic-bsp = \ |
| 71 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ | 72 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ |
| 72 | 'REV=C0', d)}" | 73 | 'REV=C0', d)}" |
| 73 | REV_OPTION:mx8dx-generic-bsp = "REV=C0" | 74 | REV_OPTION:mx8dx-generic-bsp = "REV=C0" |
| 75 | REV_OPTION:mx8ulp-generic-bsp = \ | ||
| 76 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-reva0', '', \ | ||
| 77 | 'REV=A1', d)}" | ||
| 74 | 78 | ||
| 75 | do_uboot_assemble_fitimage:prepend:imx-generic-bsp() { | 79 | do_uboot_assemble_fitimage:prepend:imx-generic-bsp() { |
| 76 | for config in ${UBOOT_MACHINE}; do | 80 | for config in ${UBOOT_MACHINE}; do |
| @@ -121,6 +125,19 @@ compile_mx8x() { | |||
| 121 | ${BOOT_STAGING}/u-boot-spl.bin | 125 | ${BOOT_STAGING}/u-boot-spl.bin |
| 122 | fi | 126 | fi |
| 123 | } | 127 | } |
| 128 | |||
| 129 | compile_mx8ulp() { | ||
| 130 | bbnote 8ULP boot binary build | ||
| 131 | cp ${DEPLOY_DIR_IMAGE}/${SECO_FIRMWARE_NAME} ${BOOT_STAGING}/ | ||
| 132 | cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${BOOT_STAGING}/bl31.bin | ||
| 133 | cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/upower.bin ${BOOT_STAGING}/upower.bin | ||
| 134 | cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NAME} ${BOOT_STAGING}/u-boot.bin | ||
| 135 | if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} ] ; then | ||
| 136 | cp ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} \ | ||
| 137 | ${BOOT_STAGING}/u-boot-spl.bin | ||
| 138 | fi | ||
| 139 | } | ||
| 140 | |||
| 124 | do_compile() { | 141 | do_compile() { |
| 125 | # mkimage for i.MX8 | 142 | # mkimage for i.MX8 |
| 126 | # Copy TEE binary to SoC target folder to mkimage | 143 | # Copy TEE binary to SoC target folder to mkimage |
| @@ -180,6 +197,17 @@ deploy_mx8x() { | |||
| 180 | ${DEPLOYDIR}/${BOOT_TOOLS} | 197 | ${DEPLOYDIR}/${BOOT_TOOLS} |
| 181 | fi | 198 | fi |
| 182 | } | 199 | } |
| 200 | |||
| 201 | deploy_mx8ulp() { | ||
| 202 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 203 | install -m 0644 ${BOOT_STAGING}/${SECO_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 204 | install -m 0755 ${S}/${TOOLS_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 205 | if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} ] ; then | ||
| 206 | install -m 0644 ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} \ | ||
| 207 | ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 208 | fi | ||
| 209 | } | ||
| 210 | |||
| 183 | do_deploy() { | 211 | do_deploy() { |
| 184 | deploy_${SOC_FAMILY} | 212 | deploy_${SOC_FAMILY} |
| 185 | # copy the sc fw, dcd and uboot to deploy path | 213 | # copy the sc fw, dcd and uboot to deploy path |
