aboutsummaryrefslogtreecommitdiff
path: root/Config.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:25 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:25 -0800
commitee88353f0c125cdc2ee7a56187fde3a10e4ff918 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Config.mk
parentf4a0b4d282a1718ac6e3fff10d02aa877e294324 (diff)
downloadgenext2fs-ee88353f0c125cdc2ee7a56187fde3a10e4ff918.tar.gz
auto import from //depot/cupcake/@135843
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk19
1 files changed, 0 insertions, 19 deletions
diff --git a/Config.mk b/Config.mk
deleted file mode 100644
index be6e9f7..0000000
--- a/Config.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# $(1): src directory
-# $(2): output file
-# $(3): label (if any)
-# $(4): if true, add journal
-define build-userimage-ext2-target
- @mkdir -p $(dir $(2))
- $(hide) num_blocks=`du -sk $(1) | tail -n1 | awk '{print $$1;}'`;\
- if [ $$num_blocks -lt 20480 ]; then extra_blocks=3072; \
- else extra_blocks=20480; fi ; \
- num_blocks=`expr $$num_blocks + $$extra_blocks` ; \
- num_inodes=`find $(1) | wc -l` ; num_inodes=`expr $$num_inodes + 500`; \
- $(MKEXT2IMG) -a -d $(1) -b $$num_blocks -N $$num_inodes -m 0 $(2)
- $(if $(strip $(3)),\
- $(hide) $(TUNE2FS) -L $(strip $(3)) $(2))
- $(if $(strip $(4)),\
- $(hide) $(TUNE2FS) -j $(2))
- $(TUNE2FS) -C 1 $(2)
- $(E2FSCK) -fy $(2) ; [ $$? -lt 4 ]
-endef