From: Jaewon Lee <[email protected]> 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 <[email protected]> Signed-off-by: Bhargava Sreekantappa Gayathri <[email protected]> Signed-off-by: Manjukumar Matha <[email protected]> --- .../recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() { -- 2.7.4 -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
