aboutsummaryrefslogtreecommitdiff
path: root/target/jffs2
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-26 10:31:56 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-26 10:31:56 +0000
commit48b3e0c94f54a7d48df5caa85769099875b4bae6 (patch)
tree08a03e3a88ee71a532346553d10c553975ae7d8c /target/jffs2
parentd458e7574628224d69f75794a2bee5254626119f (diff)
downloadbuildroot-48b3e0c94f54a7d48df5caa85769099875b4bae6.tar.gz
buildroot-48b3e0c94f54a7d48df5caa85769099875b4bae6.tar.bz2
- add option to create a jffs2 filesystem in srec format. Thanks to Xride.
Diffstat (limited to 'target/jffs2')
-rw-r--r--target/jffs2/Config.in5
-rw-r--r--target/jffs2/jffs2root.mk4
2 files changed, 9 insertions, 0 deletions
diff --git a/target/jffs2/Config.in b/target/jffs2/Config.in
index fec5faa658..c7c8e9f0cf 100644
--- a/target/jffs2/Config.in
+++ b/target/jffs2/Config.in
@@ -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
diff --git a/target/jffs2/jffs2root.mk b/target/jffs2/jffs2root.mk
index 2b9c0f85a4..5e9cc1ddac 100644
--- a/target/jffs2/jffs2root.mk
+++ b/target/jffs2/jffs2root.mk
@@ -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)))
#"))