uboot-zynq: copy U-Boot images to STAGING_DIR

Create a directory inside STAGING_DIR and copy U-Boot
output images, so they can be used later when creating the
sdcard image

Additionally, like others targets, override the default
install method to avoid copying the images to bin directory

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
This commit is contained in:
Luis Araneda 2018-09-03 22:39:58 -03:00 committed by John Crispin
parent e62df3dd8b
commit 306a60fcfe

View file

@ -49,6 +49,15 @@ UBOOT_TARGETS := \
zybo \ zybo \
zybo_z7 zybo_z7
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(CP) $(PKG_BUILD_DIR)/spl/boot.bin $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-boot.bin
$(CP) $(PKG_BUILD_DIR)/u-boot.img $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-u-boot.img
endef
define Package/u-boot/install/default
endef
Build/Exports:=$(Host/Exports) Build/Exports:=$(Host/Exports)
$(eval $(call BuildPackage/U-Boot)) $(eval $(call BuildPackage/U-Boot))