Changeset 8107


Ignore:
Timestamp:
2007-07-22T20:29:59+02:00 (11 years ago)
Author:
nico
Message:

fix jffs2 images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/image.mk

    r8065 r8107  
    3636ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) 
    3737  ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2),y) 
     38    define Image/mkfs/jffs2/sub 
     39                @# FIXME: removing this line will cause the foreach loop below to execute the next statement only on the first iteration, don't ask why ;) 
     40                $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(BUILD_DIR)/root 
     41                $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(1)) 
     42                $(call Image/Build,jffs2-$(1)) 
     43    endef 
    3844    define Image/mkfs/jffs2 
    3945                rm -rf $(BUILD_DIR)/root/jffs 
    40                  
    41                 $(foreach SZ,$(JFFS2_BLOCKSIZE),\ 
    42                         $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e $(patsubst %k,%KiB,$(SZ)) -o $(KDIR)/root.jffs2-$(SZ) -d $(BUILD_DIR)/root; \ 
    43                         $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(SZ)); \ 
    44                         $(call Image/Build,jffs2-$(SZ)) \ 
    45                 ) 
     46                $(foreach SZ,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/sub,$(SZ))) 
    4647    endef 
    4748  endif 
Note: See TracChangeset for help on using the changeset viewer.