aboutsummaryrefslogtreecommitdiffstats
path: root/package/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-06 19:39:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-06 19:39:51 +0000
commit741a0576ad3184f0f061ff8fd056f933986d110d (patch)
tree15696903dfd2ffe65ef465923203876f48a2088b /package/Makefile
parent5731f502797636762931a6447703043ae297adae (diff)
downloadupstream-741a0576ad3184f0f061ff8fd056f933986d110d.tar.gz
upstream-741a0576ad3184f0f061ff8fd056f933986d110d.tar.bz2
upstream-741a0576ad3184f0f061ff8fd056f933986d110d.zip
build: add integration for managing opkg package feed keys
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45286 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/Makefile')
-rw-r--r--package/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile
index a6b34be0f4..d5212f09a8 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -143,6 +143,14 @@ $(curdir)/index: FORCE
$(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages && \
gzip -9c Packages > Packages.gz; \
); done
+ifdef CONFIG_SIGNED_PACKAGES
+ @echo Signing package index...
+ @for d in $(PACKAGE_SUBDIRS); do ( \
+ [ -d $(PACKAGE_DIR)/$$d ] && \
+ cd $(PACKAGE_DIR)/$$d || continue; \
+ $(STAGING_DIR_HOST)/bin/usign -S -m Packages -s $(BUILD_KEY); \
+ ); done
+else
ifeq ($(call qstrip,$(CONFIG_OPKGSMIME_KEY)),)
@echo Signing key has not been configured
else
@@ -161,6 +169,7 @@ else
); done
endif
endif
+endif
$(curdir)/preconfig: