aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2018-06-01 11:18:46 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commit8f77983ba82fd3ce5ce10251b9d8da1633c14334 (patch)
tree66dd58e650af863bcaaad66db6b47badcd8a8bc7
parent9f3aa5b9db5d075fc70ef271670b905e650143cb (diff)
downloadmeta-xilinx-8f77983ba82fd3ce5ce10251b9d8da1633c14334.tar.gz
meta-xilinx-8f77983ba82fd3ce5ce10251b9d8da1633c14334.tar.bz2
meta-xilinx-8f77983ba82fd3ce5ce10251b9d8da1633c14334.zip
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.inc6
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"
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