diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-12 05:39:32 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-12 05:39:32 +0000 |
commit | 536e98effda4d9fe856befd7f5ac8123ea6e86fd (patch) | |
tree | a687185dc86d693ac570953026e68f0a0d06a126 /package/mtd/20050122 | |
parent | 03d65319620f61c7757b2b051a3a9d21cba91aab (diff) | |
download | buildroot-novena-536e98effda4d9fe856befd7f5ac8123ea6e86fd.tar.gz buildroot-novena-536e98effda4d9fe856befd7f5ac8123ea6e86fd.zip |
Add support for summarising JFFS2 images. With support in the kernel this improves mount time significantly.
Diffstat (limited to 'package/mtd/20050122')
-rw-r--r-- | package/mtd/20050122/mtd.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/package/mtd/20050122/mtd.mk b/package/mtd/20050122/mtd.mk index 72832fa59..443b5c459 100644 --- a/package/mtd/20050122/mtd.mk +++ b/package/mtd/20050122/mtd.mk @@ -25,11 +25,12 @@ endif ############################################################# # -# 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)/util/mkfs.jffs2 +SUMTOOL := $(MTD_HOST_DIR)/util/sumtool ifeq ($(strip $(BR2_PACKAGE_MTD_SNAPSHOT)),y) $(DL_DIR)/$(MTD_SOURCE): @@ -55,11 +56,15 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE) touch $@ endif -$(MTD_HOST_DIR)/util/mkfs.jffs2: $(MTD_HOST_DIR)/.unpacked +$(MKFS_JFFS2): $(MTD_HOST_DIR)/.unpacked CFLAGS=-I$(LINUX_HEADERS_DIR)/include $(MAKE) CC="$(HOSTCC)" CROSS= \ LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR)/util mkfs.jffs2 -mtd-host: $(MKFS_JFFS2) +$(SUMTOOL): $(MTD_HOST_DIR)/.unpacked + CFLAGS=-I$(LINUX_HEADERS_DIR)/include $(MAKE) CC="$(HOSTCC)" CROSS= \ + LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR)/util sumtool + +mtd-host: $(MKFS_JFFS2) $(SUMTOOL) mtd-host-source: $(DL_DIR)/$(MTD_SOURCE) |