summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/recipes-bsp
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2018-04-27 10:12:46 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2018-07-18 15:42:14 -0700
commitfa428a998a93650aa8a149b67b3a7e4cac17d9e8 (patch)
treef6ecb9bdd8f8400684257d801473fc639aeba25a /meta-xilinx-bsp/recipes-bsp
parent2d7b1a22d08f0d7db60e148c5e11ea2df735b6b8 (diff)
downloadmeta-xilinx-fa428a998a93650aa8a149b67b3a7e4cac17d9e8.tar.gz
arm-trusted-firmware.inc: Add support for atf to use 2nd UART
Add ZYNQMP_CONSOLE flag to EXTRA_OEMAKE to add support for the 2nd UART. If ZYNQMP_CONSOLE is set to cadence or cadence0, it will use UART 0 and if set to cadence1, it will use UART 1. The default value is set to cadence. Change do_configure to perform make clean. Without this change,you must manually clean sstate before building with the new value of ZYNQMP_CONSOLE, which is not the desired behavior. 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>
Diffstat (limited to 'meta-xilinx-bsp/recipes-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc7
1 files changed, 6 insertions, 1 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 02bbc732..000ba61c 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
@@ -28,6 +28,7 @@ ATF_BASE_NAME[vardepsexclude] = "DATETIME"
28COMPATIBLE_MACHINE = "zynqmp" 28COMPATIBLE_MACHINE = "zynqmp"
29PLATFORM_zynqmp = "zynqmp" 29PLATFORM_zynqmp = "zynqmp"
30 30
31
31# requires CROSS_COMPILE set by hand as there is no configure script 32# requires CROSS_COMPILE set by hand as there is no configure script
32export CROSS_COMPILE="${TARGET_PREFIX}" 33export CROSS_COMPILE="${TARGET_PREFIX}"
33 34
@@ -37,8 +38,12 @@ LDFLAGS[unexport] = "1"
37AS[unexport] = "1" 38AS[unexport] = "1"
38LD[unexport] = "1" 39LD[unexport] = "1"
39 40
41ATF_CONSOLE ?= "cadence"
42
43EXTRA_OEMAKE += "ZYNQMP_CONSOLE=${ATF_CONSOLE}"
44
40do_configure() { 45do_configure() {
41 : 46 oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM}
42} 47}
43 48
44do_compile() { 49do_compile() {