aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-04 21:51:46 -0400
committerRob Austein <sra@hactrn.net>2015-07-04 21:51:46 -0400
commit3101c2147524d485c505a0710d38ca19655a7016 (patch)
tree7a6395066270d8836c0f644e440d2e3499f3c1b6
parentdf607a3ec2525988b1256f7f241470815dbc416e (diff)
Add .dsc files to repository and specify distribution codename.
-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