From: Jaewon Lee <[email protected]>

If debug variable is set, debug flag will be passed to EXTRA_OEMAKE and
OUTPUT_DIR will be set to ${B}/${PLATFORM}/debug, as all the generated
binaries will be there instead of the 'release' directory

Signed-off-by: Jaewon Lee <[email protected]>
Signed-off-by: Bhargava Sreekantappa Gayathri 
<[email protected]>
Signed-off-by: Manjukumar Matha <[email protected]>
---
 .../recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc 
b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc
index 000ba61..6830c9d 100644
--- a/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc
+++ b/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc
@@ -39,8 +39,10 @@ AS[unexport] = "1"
 LD[unexport] = "1"
 
 ATF_CONSOLE ?= "cadence"
+DEBUG ?= ""
+EXTRA_OEMAKE_append = " ZYNQMP_CONSOLE=${ATF_CONSOLE} 
${@bb.utils.contains('DEBUG', '1', ' DEBUG=${DEBUG}', '', d)}"
+OUTPUT_DIR = "${@bb.utils.contains('DEBUG', '1', '${B}/${PLATFORM}/debug', 
'${B}/${PLATFORM}/release', d)}"
 
-EXTRA_OEMAKE += "ZYNQMP_CONSOLE=${ATF_CONSOLE}"
 
 do_configure() {
        oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM}
@@ -54,8 +56,6 @@ do_install() {
        :
 }
 
-OUTPUT_DIR = "${B}/${PLATFORM}/release"
-
 do_deploy() {
        install -d ${DEPLOYDIR}
        install -m 0644 ${OUTPUT_DIR}/bl31/bl31.elf 
${DEPLOYDIR}/${ATF_BASE_NAME}.elf
-- 
2.7.4

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to