aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index bd05920..cf9c4f0 100644
--- a/Makefile
+++ b/Makefile
@@ -64,10 +64,16 @@ DCH = test -f debian/changelog || \
dch --create --package cryptech-novena-$(1) --newversion '${CRYPTECH_PACKAGE_VERSION}' \
'Version ${CRYPTECH_VERSION} of Cryptech $(2) for the Novena PVT-1 development board.'
-# Where to find the reprepro repository. The "reprepro" target will
-# initialize this if it doesn't exist.
+# Reprepro repository location and release codename. The "reprepro"
+# target will initialize this if it doesn't exist.
+#
+# Support for multiple distributions (codenames) not implemented yet.
+# Not sure if there's any way to do it without generating separate
+# packages for each codename (which would be rather tedious,
+# particularly for the RTL package).
REPOSITORY := $(abspath ${HOME}/repository)
+CODENAME := wheezy
all: init sw rtl
@@ -85,12 +91,11 @@ rtl:
cd rtl; debuild -S -uc -us
cd rtl; debuild -b -uc -us -aarmhf
-
reprepro: ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options
- for i in *.changes; do reprepro -b ${REPOSITORY} include $$i; done
+ for f in *.changes; do reprepro -b ${REPOSITORY} --ignore=wrongdistribution include ${CODENAME} $$f; done
+ for f in *.dsc; do reprepro -b ${REPOSITORY} --ignore=wrongdistribution includedsc ${CODENAME} $$f; done
${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options:
install -D reprepro-conf/$(notdir $@) ${REPOSITORY}/conf/$(notdir $@)
-
.PHONY: all init sw rtl reprepro