uboot-imx6: install images into STAGING_DIR_IMAGE
authorFelix Fietkau <nbd@nbd.name>
Sun, 26 Aug 2018 11:47:23 +0000 (13:47 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:51 +0000 (17:47 +0100)
Will be used by a new combined image for cubox

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from eab7bcc8e1e321ecd43ec4af69207e7f53c53837)

package/boot/uboot-imx6/Makefile

index dd3a9967366b5d77dc81cd82b67b02b30648733d..6973cda5aefd42c95e3e391c2bef0233b7e69c5f 100644 (file)
@@ -72,4 +72,11 @@ UBOOT_TARGETS := \
 
 UBOOT_MAKE_FLAGS += u-boot.imx
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
+       $(foreach img,$(UBOOT_IMAGE), \
+               $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
+       )
+endef
+
 $(eval $(call BuildPackage/U-Boot))