From c808a4a7efd0342cb565958dcd43bdd75d432ded Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Sat, 12 Oct 2013 21:44:48 +0000 Subject: 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 SVN-Revision: 38375 --- target/linux/kirkwood/image/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'target/linux/kirkwood') 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)) -- cgit v1.2.3