summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2024-08-08 15:31:18 +0000
committerPaul Spooren2024-08-08 23:47:05 +0000
commit44b6df31841200200e374086a44e37c56621741f (patch)
tree171b43831d649e2945d854308453ba277a63d486
parent74553537f1a38ea1f8541091ae1048471a9c2f09 (diff)
downloadopenwrt-44b6df31841200200e374086a44e37c56621741f.tar.gz
sdk: fix APK key creation
The keys are created differently compared to the old OPKG keys. Instead of being part of base-files/configure, they are created as a Makefile requirement of `package/compile`, which is a cleaner solution. This requirement would only be added to non SDK environments, however APK always requires keys to be available. Add an `else` case for the SDK and create keys. Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--package/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile
index 9e3bb52b65..9de36b13c9 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -85,6 +85,10 @@ ifneq ($(CONFIG_USE_APK),)
else
$(curdir)/compile: $(curdir)/system/opkg/host/compile
endif
+else
+ifneq ($(CONFIG_USE_APK),)
+ $(curdir)/compile: $(BUILD_KEY_APK_SEC) $(BUILD_KEY_APK_PUB)
+endif
endif
$(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(curdir)/merge-index