]> git.ipfire.org Git - thirdparty/openwrt.git/commit
sdk: add support to sign each .apk package by sdk 23104/head
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 26 Apr 2026 18:16:48 +0000 (21:16 +0300)
committerRobert Marko <robert.marko@sartura.hr>
Wed, 29 Apr 2026 10:43:54 +0000 (12:43 +0200)
commit9a6c754d7d844953a6216c71ab9af2341191ac3e
tree67b0d265383e9abc2b77dab6a534ef9be6d7fd2f
parent30c4c4301ea071945f102607e2afb19f35891d15
sdk: add support to sign each .apk package by sdk

Add support to signing each package's .apk file into SDK.
This adds into SDK the feature added by f20794a to the normal builds.

Currently SDK does not sign the compiled packages, causing untrusted
package errors at package installation. The reason is the logic of
defaulting to 'n' in BUILDBOT and 'y' elsewhere. As downloadable SDKs
are compiled by the buildbot, the option gets 'n' set as the default.
And the option is not among the few build options exposed in the SDK
menuconfig, so the user can't easily change it.

Enable the feature by default:

* Exclude the SIGN_EACH_PACKAGE option from sdk/convert-config.pl
* Default to 'y' and expose the option in the SDK config menu.

(Avoiding untrusted errors naturally requires the user to copy the
public key into the router, quite similar as with full builds.)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/23104
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/sdk/convert-config.pl
target/sdk/files/Config.in