diff options
author | Jaewon Lee <jaewon.lee@xilinx.com> | 2018-06-01 11:18:46 -0700 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:03:46 -0800 |
commit | 8f77983ba82fd3ce5ce10251b9d8da1633c14334 (patch) | |
tree | 66dd58e650af863bcaaad66db6b47badcd8a8bc7 | |
parent | 9f3aa5b9db5d075fc70ef271670b905e650143cb (diff) | |
download | meta-xilinx-8f77983ba82fd3ce5ce10251b9d8da1633c14334.tar.gz |
arm-trusted-firmware.inc: Add support for debug flag
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 <jaewon.lee@xilinx.com>
Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | 6 |
1 files 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 000ba61c..6830c9d0 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" | |||
39 | LD[unexport] = "1" | 39 | LD[unexport] = "1" |
40 | 40 | ||
41 | ATF_CONSOLE ?= "cadence" | 41 | ATF_CONSOLE ?= "cadence" |
42 | DEBUG ?= "" | ||
43 | EXTRA_OEMAKE_append = " ZYNQMP_CONSOLE=${ATF_CONSOLE} ${@bb.utils.contains('DEBUG', '1', ' DEBUG=${DEBUG}', '', d)}" | ||
44 | OUTPUT_DIR = "${@bb.utils.contains('DEBUG', '1', '${B}/${PLATFORM}/debug', '${B}/${PLATFORM}/release', d)}" | ||
42 | 45 | ||
43 | EXTRA_OEMAKE += "ZYNQMP_CONSOLE=${ATF_CONSOLE}" | ||
44 | 46 | ||
45 | do_configure() { | 47 | do_configure() { |
46 | oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} | 48 | oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM} |
@@ -54,8 +56,6 @@ do_install() { | |||
54 | : | 56 | : |
55 | } | 57 | } |
56 | 58 | ||
57 | OUTPUT_DIR = "${B}/${PLATFORM}/release" | ||
58 | |||
59 | do_deploy() { | 59 | do_deploy() { |
60 | install -d ${DEPLOYDIR} | 60 | install -d ${DEPLOYDIR} |
61 | install -m 0644 ${OUTPUT_DIR}/bl31/bl31.elf ${DEPLOYDIR}/${ATF_BASE_NAME}.elf | 61 | install -m 0644 ${OUTPUT_DIR}/bl31/bl31.elf ${DEPLOYDIR}/${ATF_BASE_NAME}.elf |