summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-06-21 22:41:22 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-06-21 22:41:22 +0200
commit2ba018ecde6ddb500708e6d56fae380d2f7698e8 (patch)
tree8b57c030420f2779d82de1d5d71b367ae3c8ff86
parente5192ac18f866321025be72ddb34f9874bc9f5b2 (diff)
downloadembtoolkit-2ba018ecde6ddb500708e6d56fae380d2f7698e8.tar.gz
embtoolkit-2ba018ecde6ddb500708e6d56fae380d2f7698e8.tar.bz2
embtoolkit-2ba018ecde6ddb500708e6d56fae380d2f7698e8.tar.xz
Rootfs: build jffs2 root filesystem if selected
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--mk/rootfs.mk14
1 files changed, 10 insertions, 4 deletions
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
index 3e464fb..c6874dc 100644
--- a/mk/rootfs.mk
+++ b/mk/rootfs.mk
@@ -1,4 +1,4 @@
-#########################################################################################
+################################################################################
# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
#
@@ -14,13 +14,13 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-#########################################################################################
+################################################################################
#
# \file rootfs.mk
# \brief rootfs.mk of Embtoolkit
# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# \date June 2009
-#########################################################################################
+################################################################################
ifeq ($(CONFIG_EMBTK_HAVE_ROOTFS),y)
#makedevs
@@ -53,11 +53,17 @@ else
@cp -d $(SYSROOT)/usr/sbin/* $(ROOTFS)/usr/sbin/
@$(TOOLS)/bin/$(STRICT_GNU_TARGET)-strip $(ROOTFS)/usr/sbin/*
endif
- $(FAKEROOT_BIN) -s $(EMBTK_ROOT)/.fakeroot.001 -- $(MAKEDEVS_DIR)/makedevs \
+ $(FAKEROOT_BIN) -s $(EMBTK_ROOT)/.fakeroot.001 -- \
+ $(MAKEDEVS_DIR)/makedevs \
-d $(EMBTK_ROOT)/src/devices_table.txt $(ROOTFS)
cd $(ROOTFS) ; $(FAKEROOT_BIN) -i $(EMBTK_ROOT)/.fakeroot.001 -- \
tar cjf rootfs-$(STRICT_GNU_TARGET).tar.bz2 * ; \
mv rootfs-$(STRICT_GNU_TARGET).tar.bz2 $(EMBTK_ROOT)
+ifeq ($(CONFIG_EMBTK_ROOTFS_HAVE_MTDUTILS),y)
+ $(FAKEROOT_BIN) -i $(EMBTK_ROOT)/.fakeroot.001 -- \
+ $(HOSTTOOLS)/usr/sbin/mkfs.jffs2 -n -e 128 -r $(ROOTFS) \
+ -o $(EMBTK_ROOT)/rootfs-$(STRICT_GNU_TARGET).jffs2
+endif
rootfs_clean: $(ROOTFS_COMPONENTS_CLEAN)
@rm -rf rootfs-*