diff options
author | Luka Perkov <luka@openwrt.org> | 2013-10-12 21:44:48 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-10-12 21:44:48 +0000 |
commit | f6ccd395dd5507deba988e759f621b474ec6ed70 (patch) | |
tree | 36738cce01797b24ab49d1c3b9a6a14c96f0551c /target/linux/kirkwood/image | |
parent | 3684777fc7caaf330420b52b980b6dad661362d1 (diff) | |
download | upstream-f6ccd395dd5507deba988e759f621b474ec6ed70.tar.gz upstream-f6ccd395dd5507deba988e759f621b474ec6ed70.tar.bz2 upstream-f6ccd395dd5507deba988e759f621b474ec6ed70.zip |
ubifs: enable building modular images
Now it is possible to build ubi/ubifs images for only selected boards inside
single target.
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood/image')
-rw-r--r-- | target/linux/kirkwood/image/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index b3d25f56b0..c63f606c69 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -8,8 +8,6 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk NAND_BLOCKSIZE := 2048:128k -UBIFS_OPTS := -m 2048 -e 126KiB -c 4096 -U -UBINIZE_OPTS := -m 2048 -p 128KiB -s 512 define Image/BuildKernel $(CP) $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage @@ -60,4 +58,18 @@ define Image/Build/squashfs ) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img endef +define Image/Build/ubifs + + ifdef UBIFS_OPTS + $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img + endif +endef + +define Image/Build/ubi + + ifdef UBI_OPTS + $(call Image/Build/ubifs,$(1)) + endif +endef + $(eval $(call BuildImage)) |