Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2015-04-13 22:00:06 +1000
committerSunil Mohan Adapa <sunil@medhas.org>2015-04-19 17:51:16 +0530
commit8e3b8f6118398f5fccb581294f46bd50b96dffde (patch)
tree874e5de35e0edc57488eaa5633fe798b6b913283
parent8906e5afc9a3926cb7c91f8fc89b0b972924fa25 (diff)
Make the size of the generated image parametrable
-rw-r--r--Makefile3
-rwxr-xr-xbin/mk_freedombox_image2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e70813b..892f5ee 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ TODAY := $(shell date +%Y-%m-%d)
NAME = build/freedombox-unstable_$(TODAY)_$(BUILD)
WEEKLY_DIR = torrent/freedombox-unstable_$(TODAY)
IMAGE = $(NAME).img
+IMAGE_SIZE = 4G
ARCHIVE = $(NAME).tar.bz2
SIGNATURE = $(ARCHIVE).sig
SUITE = sid
@@ -30,7 +31,7 @@ SIGN = -gpg --output $(SIGNATURE) --detach-sig $(ARCHIVE)
MAKE_IMAGE = ARCHITECTURE=$(ARCHITECTURE) DESTINATION=$(DESTINATION) \
MACHINE=$(MACHINE) SOURCE=$(SOURCE) MIRROR=$(MIRROR) SUITE=$(SUITE) OWNER=$(OWNER) \
BUILD_MIRROR=$(BUILD_MIRROR) ENABLE_NONFREE=$(ENABLE_NONFREE) \
- taskset 0x01 bin/mk_freedombox_image $(NAME)
+ IMAGE_SIZE=$(IMAGE_SIZE) taskset 0x01 bin/mk_freedombox_image $(NAME)
# build DreamPlug USB or SD card image
dreamplug: prep
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index b436010..2c68920 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -151,7 +151,7 @@ sudo -H \
$VMDEBOOTSTRAP \
--log $(dirname $IMAGE)/freedombox.log \
--log-level debug \
- --size 4G \
+ --size $IMAGE_SIZE \
--image $IMAGE.img \
--hostname freedombox \
--verbose \