diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb new file mode 100644 index 00000000..052a65d4 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb @@ -0,0 +1,37 @@ +include u-boot-xlnx.inc +include u-boot-xlnx-2015.04.inc + +COMPATIBLE_MACHINE = "zynq" + +PROVIDES = "virtual/boot-bin" + +SPL_BINARY = "boot.bin" +UBOOT_MAKE_TARGET ?= "boot.bin" + +inherit zynq7-platform-paths + +DEPENDS += "virtual/zynq7-platform-init" + +do_configure_prepend() { + [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ] && \ + cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ${S}/board/xilinx/zynq/ + [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ] && \ + cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ${S}/board/xilinx/zynq/ +} + +do_install () { + if [ "x${SPL_BINARY}" != "x" ]; then + install -d ${D}/boot + install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} + ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARY} + fi +} + +do_deploy () { + if [ "x${SPL_BINARY}" != "x" ]; then + install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} + rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK} + ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARY} + ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} + fi +} |