mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 03:52:24 +02:00
fix jffs2 images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8107 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6762e5d4cc
commit
bf318f4532
@ -35,14 +35,15 @@ endef
|
||||
|
||||
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||
ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2),y)
|
||||
define Image/mkfs/jffs2/sub
|
||||
@# FIXME: removing this line will cause the foreach loop below to execute the next statement only on the first iteration, don't ask why ;)
|
||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(BUILD_DIR)/root
|
||||
$(call add_jffs2_mark,$(KDIR)/root.jffs2-$(1))
|
||||
$(call Image/Build,jffs2-$(1))
|
||||
endef
|
||||
define Image/mkfs/jffs2
|
||||
rm -rf $(BUILD_DIR)/root/jffs
|
||||
|
||||
$(foreach SZ,$(JFFS2_BLOCKSIZE),\
|
||||
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(SZ)) -o $(KDIR)/root.jffs2-$(SZ) -d $(BUILD_DIR)/root; \
|
||||
$(call add_jffs2_mark,$(KDIR)/root.jffs2-$(SZ)); \
|
||||
$(call Image/Build,jffs2-$(SZ)) \
|
||||
)
|
||||
$(foreach SZ,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/sub,$(SZ)))
|
||||
endef
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user