[meta-xilinx] [PATCHv2 1/2] u-boot-xlnx.inc : Add support for building working SPL.

Philip Balister philip at balister.org
Thu Oct 23 13:49:55 PDT 2014


You need to add the files ps7_init.[ch] via a board specific
SRC_URI append. The ps7 files should be GPL licensed to avoid
license headaches.

Signed-off-by: Philip Balister <philip at balister.org>
---
 recipes-bsp/u-boot/u-boot-xlnx.inc | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc
index ee6b32c..b578e45 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -4,7 +4,17 @@ LICENSE = "GPLv2+"
 
 XILINX_EXTENSION = "-xilinx"
 
-FILESEXTRAPATHS += "${THISDIR}/u-boot-xlnx:"
 SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https"
 
+SPL_BINARY = "boot.bin"
+UBOOT_SUFFIX = "img"
+
+do_configure_prepend () {
+	if test -e ${WORKDIR}/ps7_init.h; then
+		cp ${WORKDIR}/ps7_init.h ${S}/board/xilinx/zynq/
+		cp ${WORKDIR}/ps7_init.c ${S}/board/xilinx/zynq/
+	fi
+}
+
 include u-boot-extra.inc
+
-- 
1.8.3.1




More information about the meta-xilinx mailing list