aboutsummaryrefslogtreecommitdiffstats
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
meta-xilinx-abad77439a8f0aab1157d046720df8c541d1a885.tar.bz2
meta-xilinx-abad77439a8f0aab1157d046720df8c541d1a885.zip
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
DEPENDS += "u-boot-mkimage-native"
S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
BRANCH = "master"
SRC_URI = "git://github.com/Xilinx/arm-trusted-firmware.git;protocol=https;branch=${BRANCH}"
@@ -36,14 +37,14 @@ do_configure() {
}
do_compile() {
- oe_runmake PLAT=${PLATFORM} RESET_TO_BL31=1 bl31
+ oe_runmake -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} RESET_TO_BL31=1 bl31
}
do_install() {
:
}
-OUTPUT_DIR = "${S}/build/${PLATFORM}/release"
+OUTPUT_DIR = "${B}/${PLATFORM}/release"
do_deploy() {
install -d ${DEPLOYDIR}