build: target_config_lib: do not build unused packages for targets without opkg (#2051)

Normally, we build all nonshared packages (which includes all kernel
modules) to generate an opkg feed for later package installations by
users. On targets without opkg, this just wastes time - disable it.
This commit is contained in:
Matthias Schiffer 2020-06-11 02:16:49 +02:00 committed by GitHub
parent 60d7288255
commit b3edfd292a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ lib.check_devices()
if not lib.opkg then if not lib.opkg then
lib.config('SIGNED_PACKAGES', false) lib.config('SIGNED_PACKAGES', false)
lib.config('CLEAN_IPKG', true) lib.config('CLEAN_IPKG', true)
lib.config('ALL_NONSHARED', false)
lib.packages {'-opkg'} lib.packages {'-opkg'}
end end

View File

@ -40,7 +40,7 @@ config('PACKAGE_kmod-jool', false) -- fails to build
config('BUSYBOX_CUSTOM', true) config('BUSYBOX_CUSTOM', true)
config('BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS', false) config('BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS', false)
config('PACKAGE_ATH_DEBUG', true) try_config('PACKAGE_ATH_DEBUG', true)
try_config('TARGET_SQUASHFS_BLOCK_SIZE', 256) try_config('TARGET_SQUASHFS_BLOCK_SIZE', 256)