- add option to create a jffs2 filesystem in srec format. Thanks to Xride.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 26 Mar 2007 10:31:56 +0000 (10:31 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 26 Mar 2007 10:31:56 +0000 (10:31 -0000)
target/jffs2/Config.in
target/jffs2/jffs2root.mk

index fec5faa658914dee1f52f96210adad12e8211803..c7c8e9f0cfe72fc28b2e7d29d7227e32370e773a 100644 (file)
@@ -32,6 +32,11 @@ config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
        depends on BR2_TARGET_ROOTFS_JFFS2
        default 0x20000
 
+config BR2_JFFS2_TARGET_SREC
+       bool "RootFS in SREC file formet"
+       depends on BR2_TARGET_ROOTFS_JFFS2
+       default n
+
 config BR2_TARGET_ROOTFS_JFFS2_PAD
        bool "Pad output"
        depends on BR2_TARGET_ROOTFS_JFFS2
index 2b9c0f85a45827b0d7cb4271d81d93ebd4d9fe69..5e9cc1ddacb8d6e693e4e7efd5194fe1666c4815 100644 (file)
@@ -71,6 +71,10 @@ endif
        $(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
        -@rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
        @ls -l $(JFFS2_TARGET)
+ifeq ($(BR2_JFFS2_TARGET_SREC),y)
+       $(TARGET_CROSS)objcopy -I binary -O srec --adjust-vma 0xa1000000 $(JFFS2_TARGET) $(JFFS2_TARGET).srec
+       @ls -l $(JFFS2_TARGET).srec
+endif
 
 JFFS2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_COPYTO)))
 #"))