summaryrefslogtreecommitdiff
path: root/package/mtd/mtd-utils/mtd.mk
diff options
context:
space:
mode:
authorHamish Moffatt <hamish@cloud.net.au>2008-02-12 05:39:32 +0000
committerHamish Moffatt <hamish@cloud.net.au>2008-02-12 05:39:32 +0000
commit536e98effda4d9fe856befd7f5ac8123ea6e86fd (patch)
treea687185dc86d693ac570953026e68f0a0d06a126 /package/mtd/mtd-utils/mtd.mk
parent03d65319620f61c7757b2b051a3a9d21cba91aab (diff)
Add support for summarising JFFS2 images. With support in the kernel this improves mount time significantly.
Diffstat (limited to 'package/mtd/mtd-utils/mtd.mk')
-rw-r--r--package/mtd/mtd-utils/mtd.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/package/mtd/mtd-utils/mtd.mk b/package/mtd/mtd-utils/mtd.mk
index 2274de923..86acc93bd 100644
--- a/package/mtd/mtd-utils/mtd.mk
+++ b/package/mtd/mtd-utils/mtd.mk
@@ -13,11 +13,12 @@ MTD_NAME:=mtd-utils-$(MTD_VERSION)
#############################################################
#
-# Build mkfs.jffs2 for use on the local host system if
+# Build mkfs.jffs2 and sumtool for use on the local host system if
# needed by target/jffs2root.
#
#############################################################
MKFS_JFFS2 := $(MTD_HOST_DIR)/mkfs.jffs2
+SUMTOOL := $(MTD_HOST_DIR)/sumtool
$(DL_DIR)/$(MTD_SOURCE):
$(WGET) -P $(DL_DIR) $(MTD_SITE)/$(MTD_SOURCE)
@@ -33,13 +34,19 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
touch $@
-$(MTD_HOST_DIR)/mkfs.jffs2: $(MTD_HOST_DIR)/.unpacked
+$(MKFS_JFFS2): $(MTD_HOST_DIR)/.unpacked
CC="$(HOSTCC)" CROSS= CFLAGS=-I$(LINUX_HEADERS_DIR)/include \
$(MAKE) LINUXDIR=$(LINUX_DIR) \
BUILDDIR=$(MTD_HOST_DIR) \
-C $(MTD_HOST_DIR) mkfs.jffs2
-mtd-host: $(MKFS_JFFS2)
+$(SUMTOOL): $(MTD_HOST_DIR)/.unpacked
+ CC="$(HOSTCC)" CROSS= CFLAGS=-I$(LINUX_HEADERS_DIR)/include \
+ $(MAKE) LINUXDIR=$(LINUX_DIR) \
+ BUILDDIR=$(MTD_HOST_DIR) \
+ -C $(MTD_HOST_DIR) sumtool
+
+mtd-host: $(MKFS_JFFS2) $(SUMTOOL)
mtd-host-source: $(DL_DIR)/$(MTD_SOURCE)