aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSreeja Vadakattu <svadakat@xilinx.com>2018-08-15 12:06:16 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commit9859aeef1c529ec21d53276907ce72901c4cee6c (patch)
tree6360babf55fdabffebb71e1f638b3ec613df61fe
parent0747f74d67de924015360dc11dafb608b3210558 (diff)
downloadmeta-xilinx-9859aeef1c529ec21d53276907ce72901c4cee6c.tar.gz
meta-xilinx-9859aeef1c529ec21d53276907ce72901c4cee6c.tar.bz2
meta-xilinx-9859aeef1c529ec21d53276907ce72901c4cee6c.zip
arm-trusted-firmware.inc: Make console a platform override
Define ATF_CONSOLE such that it is a platform override. zynqmp by default has cadence as console, set the ATF build dependencies based on this override. Other architectures might have different value which can be set using local.conf Signed-off-by: Sreeja Vadakattu <svadakat@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@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.inc8
1 files changed, 6 insertions, 2 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 b00af11..1f99bd2 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
@@ -38,9 +38,13 @@ LDFLAGS[unexport] = "1"
AS[unexport] = "1"
LD[unexport] = "1"
-ATF_CONSOLE ?= "cadence"
+ATF_CONSOLE ?= ""
+ATF_CONSOLE_zynqmp = "cadence"
+
DEBUG ?= ""
-EXTRA_OEMAKE_append = " ZYNQMP_CONSOLE=${ATF_CONSOLE} ${@bb.utils.contains('DEBUG', '1', ' DEBUG=${DEBUG}', '', d)}"
+EXTRA_OEMAKE_zynqmp_append = "${@' ZYNQMP_CONSOLE=${ATF_CONSOLE}' if d.getVar('ATF_CONSOLE', True) != '' else ''}"
+EXTRA_OEMAKE_append = " ${@bb.utils.contains('DEBUG', '1', ' DEBUG=${DEBUG}', '', d)}"
+
OUTPUT_DIR = "${@bb.utils.contains('DEBUG', '1', '${B}/${PLATFORM}/debug', '${B}/${PLATFORM}/release', d)}"