projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6330c58
)
fix jffs2 images
author
Nicolas Thill
<nico@openwrt.org>
Sun, 22 Jul 2007 18:29:59 +0000
(18:29 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Sun, 22 Jul 2007 18:29:59 +0000
(18:29 +0000)
SVN-Revision: 8107
include/image.mk
patch
|
blob
|
history
diff --git
a/include/image.mk
b/include/image.mk
index 5fc87efa1d951e8d0127feb7fff688ca45bf918c..a421edd97f2e30558637c5cd361d502e0393ef1e 100644
(file)
--- a/
include/image.mk
+++ b/
include/image.mk
@@
-35,14
+35,15
@@
endef
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2),y)
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
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
endef
endif