aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/openmoko/image/Makefile
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2008-12-11 23:17:56 +0000
committerMichael Büsch <mb@bu3sch.de>2008-12-11 23:17:56 +0000
commit4571721ec22de116ad9998657e0a3c12da6405fb (patch)
tree7ae2d726c5eb8fbe19fc124125091ebc9cf5e5ad /target/linux/openmoko/image/Makefile
parent34867901d086581396b8f610974525a56b0c7c43 (diff)
downloadupstream-4571721ec22de116ad9998657e0a3c12da6405fb.tar.gz
upstream-4571721ec22de116ad9998657e0a3c12da6405fb.tar.bz2
upstream-4571721ec22de116ad9998657e0a3c12da6405fb.zip
Build the root fs.
SVN-Revision: 13608
Diffstat (limited to 'target/linux/openmoko/image/Makefile')
-rw-r--r--target/linux/openmoko/image/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/openmoko/image/Makefile b/target/linux/openmoko/image/Makefile
index 20f17590f3..34ca44b701 100644
--- a/target/linux/openmoko/image/Makefile
+++ b/target/linux/openmoko/image/Makefile
@@ -5,9 +5,17 @@
# See /LICENSE for more information.
#
+JFFS2_BLOCKSIZE := 128k
+
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
+define Image/mkfs/jffs2/sub
+ $(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad --little-endian --pagesize=0x800 --no-cleanmarkers -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(TARGET_DIR)
+ $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(1))
+ $(call Image/Build,jffs2-$(1))
+endef
+
define Build/Clean
endef
@@ -23,6 +31,7 @@ define Image/BuildKernel
endef
define Image/Build
+ cp $(KDIR)/root.jffs2-128k $(BIN_DIR)/openwrt-$(BOARD)-rootfs
endef
$(eval $(call BuildImage))