From ee9051f25a435125a6ec4e51b2a6a2db701268b1 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Mon, 27 Oct 2014 14:21:57 +1000 Subject: u-boot-xlnx.inc: Add support for building working SPL 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 Signed-off-by: Nathan Rossi --- 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 ee6b32c2..a2816439 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_zynq = "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 + -- cgit v1.2.3-54-g00ecf