diff options
author | John Crispin <john@openwrt.org> | 2014-06-24 18:12:47 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-24 18:12:47 +0000 |
commit | d0a54744e911bc019b93f426608f60b329ea688b (patch) | |
tree | bd2900af17fc08dd5194d3e7104b9c855162ce96 /include/image.mk | |
parent | aca708e4e605f566e7043d4753b830aeb3e42d2e (diff) | |
download | upstream-d0a54744e911bc019b93f426608f60b329ea688b.tar.gz upstream-d0a54744e911bc019b93f426608f60b329ea688b.tar.bz2 upstream-d0a54744e911bc019b93f426608f60b329ea688b.zip |
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 <daniel@makrotopia.org>
SVN-Revision: 41311
Diffstat (limited to 'include/image.mk')
-rw-r--r-- | include/image.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk index 66ac497849..a77de27238 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)-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),) |