Author: blogic
Date: 2014-06-24 20:12:47 +0200 (Tue, 24 Jun 2014)
New Revision: 41311

Modified:
   trunk/include/image.mk
Log:
image.mk: introduce Image/Build/UbinizeImage make target

paramters:
$(1) board name
$(2) ubinize-image options (e.g. --no-kernel and/or --uboot-env)
$(3) rootfstype (e.g. squashfs or ubifs)
$(4) kernel image file
$(5) options to pass-through to ubinize (i.e. $($(PROFILE)_UBI_OPTS)))

Signed-off-by: Daniel Golle <[email protected]>

Modified: trunk/include/image.mk
===================================================================
--- trunk/include/image.mk      2014-06-24 18:12:41 UTC (rev 41310)
+++ trunk/include/image.mk      2014-06-24 18:12:47 UTC (rev 41311)
@@ -141,6 +141,13 @@
        (cd $(KDIR_TMP); $(TAR) cvf \
                $(BIN_DIR)/$(IMG_PREFIX)-$(1)-ubi-sysupgrade.tar 
sysupgrade-$(1))
    endef
+   define Image/Build/UbinizeImage
+       sh $(TOPDIR)/scripts/ubinize-image.sh $(2) \
+               "$(KDIR)/root.$(3)" "$(4)" \
+               "$(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(3)-ubinized.bin" \
+               $(5)
+   endef
+
 endif
 
 ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to