summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-12-03 17:22:17 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-12-04 20:49:49 +1000
commitabad77439a8f0aab1157d046720df8c541d1a885 (patch)
tree36a1ad99685dbf85ad600616224ebd7bbb680869
parent60dd4df4490429254649cbb641f13790e0c26e80 (diff)
downloadmeta-xilinx-abad77439a8f0aab1157d046720df8c541d1a885.tar.gz
arm-trusted-firmware: Handle out-of-tree builds
Handle building where B != S, allowing for the source and build artefacts to be separated. This allows for out-of-tree building, and enabling use of EXTERNALSRC such that the build artefacts are not written into the EXTERNALSRC directory. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
index 4cd9cf3f..bead4672 100644
--- a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
+++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb
@@ -10,6 +10,7 @@ inherit deploy
10DEPENDS += "u-boot-mkimage-native" 10DEPENDS += "u-boot-mkimage-native"
11 11
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13B = "${WORKDIR}/build"
13 14
14BRANCH = "master" 15BRANCH = "master"
15SRC_URI = "git://github.com/Xilinx/arm-trusted-firmware.git;protocol=https;branch=${BRANCH}" 16SRC_URI = "git://github.com/Xilinx/arm-trusted-firmware.git;protocol=https;branch=${BRANCH}"
@@ -36,14 +37,14 @@ do_configure() {
36} 37}
37 38
38do_compile() { 39do_compile() {
39 oe_runmake PLAT=${PLATFORM} RESET_TO_BL31=1 bl31 40 oe_runmake -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} RESET_TO_BL31=1 bl31
40} 41}
41 42
42do_install() { 43do_install() {
43 : 44 :
44} 45}
45 46
46OUTPUT_DIR = "${S}/build/${PLATFORM}/release" 47OUTPUT_DIR = "${B}/${PLATFORM}/release"
47 48
48do_deploy() { 49do_deploy() {
49 install -d ${DEPLOYDIR} 50 install -d ${DEPLOYDIR}