summaryrefslogtreecommitdiff
path: root/common/tools/flashfs/Makefile
diff options
context:
space:
mode:
authorOlivier Dufour2013-02-05 11:27:57 +0100
committerCyril Jourdan2013-02-11 13:22:45 +0100
commit03cdc92525306fc272048366ad07dc7f586459e4 (patch)
tree2eff5d4fafb9e273d2eac8dad1ee38386f443405 /common/tools/flashfs/Makefile
parentb9477e3a00ef54fa789fff1da33a3c48c2f7aabc (diff)
common/tools/flashfs: add autoswitch flashfs, refs #3745
Diffstat (limited to 'common/tools/flashfs/Makefile')
-rwxr-xr-xcommon/tools/flashfs/Makefile14
1 files changed, 12 insertions, 2 deletions
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)