Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignan Lavu <vignan.lavu@gmail.com>2015-01-16 17:56:26 +0530
committerVignan Lavu <vignan.lavu@gmail.com>2015-01-18 00:02:36 +0530
commit3a1065b30abc6b62e895574a81b814857f7dcb01 (patch)
tree260eb81b3fef83eacbcd8003325d69c83760a9f8 /Makefile
parentdbfa5d26ea5bb1b6d0bdcb0f03d6330cb7bf52f6 (diff)
Ability to set specific components based on targets
main component for virtualbox target main contrib non-free components for others targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 93c2a16..dd6830b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ ARCHITECTURE = armel
MACHINE = dreamplug
# card usb hdd
DESTINATION = card
+# yes no
+ENABLE_NONFREE = no
BUILD = $(MACHINE)-$(ARCHITECTURE)-$(DESTINATION)
TODAY := `date +%Y-%m-%d`
NAME = build/freedombox-unstable_$(TODAY)_$(BUILD)
@@ -27,7 +29,7 @@ SIGN = -gpg --output $(SIGNATURE) --detach-sig $(ARCHIVE)
# hang. (See Debian bug #769983 for details.)
MAKE_IMAGE = ARCHITECTURE=$(ARCHITECTURE) DESTINATION=$(DESTINATION) \
MACHINE=$(MACHINE) SOURCE=$(SOURCE) MIRROR=$(MIRROR) SUITE=$(SUITE) OWNER=$(OWNER) \
- BUILD_MIRROR=$(BUILD_MIRROR) \
+ BUILD_MIRROR=$(BUILD_MIRROR) ENABLE_NONFREE=$(ENABLE_NONFREE) \
taskset 0x01 bin/mk_freedombox_image $(NAME)
# build DreamPlug USB or SD card image
@@ -35,6 +37,7 @@ dreamplug: prep
$(eval ARCHITECTURE = armel)
$(eval MACHINE = dreamplug)
$(eval DESTINATION = card)
+ $(eval ENABLE_NONFREE = yes)
$(MAKE_IMAGE)
$(TAR) $(ARCHIVE) $(IMAGE)
@echo ""
@@ -46,6 +49,7 @@ raspberry: prep
$(eval ARCHITECTURE = armel)
$(eval MACHINE = raspberry)
$(eval DESTINATION = card)
+ $(eval ENABLE_NONFREE = yes)
$(MAKE_IMAGE)
$(TAR) $(ARCHIVE) $(IMAGE)
@echo ""
@@ -57,6 +61,7 @@ beaglebone: prep
$(eval ARCHITECTURE = armhf)
$(eval MACHINE = beaglebone)
$(eval DESTINATION = card)
+ $(eval ENABLE_NONFREE = yes)
$(MAKE_IMAGE)
$(TAR) $(ARCHIVE) $(IMAGE)
@echo ""