[OpenWrt-Devel] [PATCH] image.mk: introduce Image/Build/UbinizeImage make target
Daniel Golle
daniel at makrotopia.org
Sun Jun 22 13:58:23 EDT 2014
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 <daniel at makrotopia.org>
---
include/image.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/image.mk b/include/image.mk
index 4c49936..8ea1ef2 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -141,6 +141,13 @@ ifneq ($(CONFIG_NAND_SUPPORT),)
(cd "$(KDIR_TMP)"; $(TAR) cvf \
"$(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-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),)
--
2.0.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list