aboutsummaryrefslogtreecommitdiffstats
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
parent2d7b1a22d08f0d7db60e148c5e11ea2df735b6b8 (diff)
downloadmeta-xilinx-fa428a998a93650aa8a149b67b3a7e4cac17d9e8.tar.gz
meta-xilinx-fa428a998a93650aa8a149b67b3a7e4cac17d9e8.tar.bz2
meta-xilinx-fa428a998a93650aa8a149b67b3a7e4cac17d9e8.zip
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>
-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 02bbc73..000ba61 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"
COMPATIBLE_MACHINE = "zynqmp"
PLATFORM_zynqmp = "zynqmp"
+
# requires CROSS_COMPILE set by hand as there is no configure script
export CROSS_COMPILE="${TARGET_PREFIX}"
@@ -37,8 +38,12 @@ LDFLAGS[unexport] = "1"
AS[unexport] = "1"
LD[unexport] = "1"
+ATF_CONSOLE ?= "cadence"
+
+EXTRA_OEMAKE += "ZYNQMP_CONSOLE=${ATF_CONSOLE}"
+
do_configure() {
- :
+ oe_runmake clean -C ${S} BUILD_BASE=${B} PLAT=${PLATFORM}
}
do_compile() {