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 <[email protected]> --- recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bb | 5 +++-- 1 file 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 4cd9cf3f7f..bead46727a 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} -- 2.10.2 -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
