From 03cdc92525306fc272048366ad07dc7f586459e4 Mon Sep 17 00:00:00 2001 From: Olivier Dufour Date: Tue, 5 Feb 2013 11:27:57 +0100 Subject: common/tools/flashfs: add autoswitch flashfs, refs #3745 --- common/tools/flashfs/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'common/tools/flashfs/Makefile') diff --git a/common/tools/flashfs/Makefile b/common/tools/flashfs/Makefile index 9070c8ffeb..2e283e295f 100755 --- a/common/tools/flashfs/Makefile +++ b/common/tools/flashfs/Makefile @@ -6,19 +6,29 @@ BLOCK_SIZE= 65536 #for spansion S29GL064A10 # and at least 5 x (size of a block) FLASHDISK_SIZE_200 = 524288 FLASHDISK_SIZE_500 = 1048576 +FLASHDISK_SIZE_AUTOSWITCH = 1048576 DIR=$(CURDIR) FLASHFS_BIN = mkfs.jffs2 IMAGE_500 = $(DIR)/image_500 IMAGE_200 = $(DIR)/image_200 +IMAGE_AUTOSWITCH = $(DIR)/image_autoswitch TMP_IMAGE = /tmp/fimage FLASHDISK_500 = $(DIR)/flashfs.500.jffs2 FLASHDISK_200 = $(DIR)/flashfs.200.jffs2 +FLASHDISK_AUTOSWITCH = $(DIR)/flashfs.autoswitch.jffs2 -all: buildjffs2-500 buildjffs2-200 +all: buildjffs2-500 buildjffs2-200 autoswitch + +autoswitch: buildjffs2-AUTOSWITCH + +help: + @echo ' all - make all flashfs' + @echo ' autoswitch - make autoswitch specific flashfs' + @echo ' clean - clean generated binaries' clean: - rm -rf $(FLASHDISK_500) $(FLASHDISK_200) $(TMP_IMAGE) + rm -rf $(FLASHDISK_500) $(FLASHDISK_200) $(FLASHDISK_AUTOSWITCH) $(TMP_IMAGE) buildjffs2-%: rm -rf $(TMP_IMAGE) -- cgit v1.2.3