summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/atf
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/atf')
-rw-r--r--recipes-bsp/atf/qoriq-atf-2.12.inc5
-rw-r--r--recipes-bsp/atf/qoriq-atf_2.12.bb32
2 files changed, 22 insertions, 15 deletions
diff --git a/recipes-bsp/atf/qoriq-atf-2.12.inc b/recipes-bsp/atf/qoriq-atf-2.12.inc
index 26d79b4a1..91a412547 100644
--- a/recipes-bsp/atf/qoriq-atf-2.12.inc
+++ b/recipes-bsp/atf/qoriq-atf-2.12.inc
@@ -1,5 +1,8 @@
1DESCRIPTION = "ARM Trusted Firmware" 1SUMMARY = "ARM Trusted Firmware for QorIQ"
2DESCRIPTION = "ARM Trusted Firmware (TF-A) for NXP QorIQ Layerscape SoCs."
3HOMEPAGE = "https://github.com/nxp-qoriq/atf"
2 4
5SECTION = "bsp"
3LICENSE = "BSD-3-Clause" 6LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031" 7LIC_FILES_CHKSUM = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031"
5 8
diff --git a/recipes-bsp/atf/qoriq-atf_2.12.bb b/recipes-bsp/atf/qoriq-atf_2.12.bb
index 4eb7be9d3..f78de99f7 100644
--- a/recipes-bsp/atf/qoriq-atf_2.12.bb
+++ b/recipes-bsp/atf/qoriq-atf_2.12.bb
@@ -2,18 +2,25 @@ require qoriq-atf-${PV}.inc
2 2
3inherit deploy 3inherit deploy
4 4
5DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native rcw qoriq-cst-native bc-native" 5DEPENDS += "bc-native openssl openssl-native qoriq-cst-native rcw u-boot u-boot-mkimage-native"
6do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" 6do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy"
7 7
8# Version suffix must join without a leading space to stay a valid PV.
9# nooelint: oelint.vars.inconspaces
8PV:append = "+${SRCPV}" 10PV:append = "+${SRCPV}"
9 11
10SRC_URI += "git://github.com/ARMmbed/mbedtls;protocol=https;nobranch=1;destsuffix=${S}/mbedtls;name=mbedtls \ 12SRC_URI += "git://github.com/ARMmbed/mbedtls;protocol=https;nobranch=1;destsuffix=${S}/mbedtls;name=mbedtls \
11 git://github.com/nxp/ddr-phy-binary;protocol=https;nobranch=1;destsuffix=${S}/ddr-phy-binary;name=ddr \ 13 git://github.com/nxp/ddr-phy-binary;protocol=https;nobranch=1;destsuffix=${S}/ddr-phy-binary;name=ddr \
12" 14"
13SRCREV_mbedtls = "0795874acdf887290b2571b193cafd3c4041a708" 15SRCREV_mbedtls = "0795874acdf887290b2571b193cafd3c4041a708"
14SRCREV_ddr = "fbc036b88acb6c06ffed02c898cbae9856ec75ba" 16SRCREV_ddr = "fbc036b88acb6c06ffed02c898cbae9856ec75ba"
15SRCREV_FORMAT = "atf" 17SRCREV_FORMAT = "atf"
16 18
19PACKAGECONFIG ??= "\
20 ${@bb.utils.filter('COMBINED_FEATURES', 'optee', d)} \
21"
22PACKAGECONFIG[optee] = ",,optee-os-qoriq"
23
17COMPATIBLE_MACHINE = "(qoriq)" 24COMPATIBLE_MACHINE = "(qoriq)"
18 25
19PACKAGE_ARCH = "${MACHINE_ARCH}" 26PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -68,11 +75,8 @@ EXTRA_OEMAKE += "\
68 ${@bb.utils.contains('DISTRO_FEATURES', 'fuse', 'fip_fuse FUSE_PROG=1 FUSE_PROV_FILE=fuse_scr.bin', '', d)} \ 75 ${@bb.utils.contains('DISTRO_FEATURES', 'fuse', 'fip_fuse FUSE_PROG=1 FUSE_PROV_FILE=fuse_scr.bin', '', d)} \
69" 76"
70 77
71PACKAGECONFIG ??= " \ 78# Parse-time validation that arm-cot implies secure; needs an anonymous python.
72 ${@bb.utils.filter('COMBINED_FEATURES', 'optee', d)} \ 79# nooelint: oelint.task.noanonpython
73"
74PACKAGECONFIG[optee] = ",,optee-os-qoriq"
75
76python() { 80python() {
77 if bb.utils.contains("DISTRO_FEATURES", "arm-cot", True, False, d): 81 if bb.utils.contains("DISTRO_FEATURES", "arm-cot", True, False, d):
78 if not bb.utils.contains("DISTRO_FEATURES", "secure", True, False, d): 82 if not bb.utils.contains("DISTRO_FEATURES", "secure", True, False, d):
@@ -120,10 +124,10 @@ do_compile() {
120 flexspi_nor) 124 flexspi_nor)
121 rcwimg="${RCWXSPI}${RCW_SUFFIX}" 125 rcwimg="${RCWXSPI}${RCW_SUFFIX}"
122 uefiboot="${UEFI_XSPIBOOT}" 126 uefiboot="${UEFI_XSPIBOOT}"
123 ;; 127 ;;
124 esac 128 esac
125 129
126 if [ -f ${DEPLOY_DIR_IMAGE}/rcw/${RCW_FOLDER}/$rcwimg ]; then 130 if [ -f ${DEPLOY_DIR_IMAGE}/rcw/${RCW_FOLDER}/$rcwimg ]; then
127 make V=1 realclean 131 make V=1 realclean
128 if [ -f rot_key.pem ];then 132 if [ -f rot_key.pem ];then
129 mkdir -p build/${PLATFORM}/release/ 133 mkdir -p build/${PLATFORM}/release/
@@ -168,13 +172,13 @@ do_compile() {
168 172
169do_install() { 173do_install() {
170 install -d ${D}/boot/atf/ 174 install -d ${D}/boot/atf/
171 cp srk.pri ${D}/boot/atf/ 175 install -m 0644 srk.pri ${D}/boot/atf/
172 cp srk.pub ${D}/boot/atf/ 176 install -m 0644 srk.pub ${D}/boot/atf/
173 cp *.pbl ${D}/boot/atf/ 177 install -m 0644 *.pbl ${D}/boot/atf/
174 if [ ! -e fuse_fip.bin ]; then 178 if [ ! -e fuse_fip.bin ]; then
175 rm -f fuse_scr.bin 179 rm -f fuse_scr.bin
176 fi 180 fi
177 cp *.bin ${D}/boot/atf/ 181 install -m 0644 *.bin ${D}/boot/atf/
178 chown -R root:root ${D} 182 chown -R root:root ${D}
179} 183}
180 184