summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.14.bb14
1 files changed, 13 insertions, 1 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf_2.14.bb b/recipes-bsp/imx-atf/imx-atf_2.14.bb
index 407808b40..daf74d016 100644
--- a/recipes-bsp/imx-atf/imx-atf_2.14.bb
+++ b/recipes-bsp/imx-atf/imx-atf_2.14.bb
@@ -29,6 +29,12 @@ ATF_SRC ?= "git://github.com/nxp-imx/imx-atf.git;protocol=https"
29SRCBRANCH = "lf_v2.14" 29SRCBRANCH = "lf_v2.14"
30SRCREV = "af9eb2c1748ee3abc0ead7dc76e462f50c573036" 30SRCREV = "af9eb2c1748ee3abc0ead7dc76e462f50c573036"
31 31
32# Build out of tree and from scratch: the TF-A Makefile does not track
33# build options such as SPD, so an incremental build after a
34# PACKAGECONFIG change would relink nothing and deploy a stale bl31.bin.
35B = "${WORKDIR}/build"
36do_compile[cleandirs] = "${B}"
37
32inherit deploy 38inherit deploy
33 39
34PACKAGECONFIG ??= "\ 40PACKAGECONFIG ??= "\
@@ -52,6 +58,7 @@ ATF_SYS_PWR_FULL_CTRL ?= "0"
52EXTRA_OEMAKE += "\ 58EXTRA_OEMAKE += "\
53 CROSS_COMPILE=${TARGET_PREFIX} \ 59 CROSS_COMPILE=${TARGET_PREFIX} \
54 PLAT=${ATF_PLATFORM} \ 60 PLAT=${ATF_PLATFORM} \
61 BUILD_BASE=${B} \
55 ${PACKAGECONFIG_CONFARGS} \ 62 ${PACKAGECONFIG_CONFARGS} \
56 bl31 \ 63 bl31 \
57" 64"
@@ -81,6 +88,11 @@ EXTRA_OEMAKE += 'SYS_PWR_FULL_CTRL=${ATF_SYS_PWR_FULL_CTRL}'
81 88
82do_configure[noexec] = "1" 89do_configure[noexec] = "1"
83 90
91# The Makefile is in ${S}, while the build output goes to ${B}.
92do_compile() {
93 oe_runmake -C ${S}
94}
95
84do_install[noexec] = "1" 96do_install[noexec] = "1"
85 97
86# The appends join without a leading space to build the contiguous bl31 98# The appends join without a leading space to build the contiguous bl31
@@ -97,7 +109,7 @@ addtask deploy after do_compile
97do_deploy() { 109do_deploy() {
98 OUTPUT_FOLDER="${@bb.utils.contains('PACKAGECONFIG', 'debug', 'debug', 'release', d)}" 110 OUTPUT_FOLDER="${@bb.utils.contains('PACKAGECONFIG', 'debug', 'debug', 'release', d)}"
99 for deploydir in ${DEPLOYDIR} ${DEPLOYDIR}/imx-boot-tools; do 111 for deploydir in ${DEPLOYDIR} ${DEPLOYDIR}/imx-boot-tools; do
100 install -Dm 0644 ${S}/build/${ATF_PLATFORM}/${OUTPUT_FOLDER}/bl31.bin $deploydir/${ANNOTATED_NAME} 112 install -Dm 0644 ${B}/${ATF_PLATFORM}/${OUTPUT_FOLDER}/bl31.bin $deploydir/${ANNOTATED_NAME}
101 done 113 done
102 ln -sf ${ANNOTATED_NAME} ${DEPLOYDIR}/bl31.bin 114 ln -sf ${ANNOTATED_NAME} ${DEPLOYDIR}/bl31.bin
103} 115}