Selaa lähdekoodia

imagebuilder: move handling of DEFAULT_PACKAGES into shareable place

It seems, that handling of DEFAULT_PACKAGES is needed in more places, so
lets move it into dedicated include file so it can be easily shared.

Signed-off-by: Petr Štetiar <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16986
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 40be892a020e37869cdc188cd9a09bb7dc0a6872)
Petr Štetiar 11 kuukautta sitten
vanhempi
sitoutus
c22410e7a9
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 5 0
      include/default-packages.mk
  2. 1 0
      target/imagebuilder/files/Makefile

+ 5 - 0
include/default-packages.mk

@@ -0,0 +1,5 @@
+ifneq ($(CONFIG_USE_APK),)
+  DEFAULT_PACKAGES += apk-mbedtls
+else
+  DEFAULT_PACKAGES += opkg
+endif

+ 1 - 0
target/imagebuilder/files/Makefile

@@ -26,6 +26,7 @@ include $(INCLUDE_DIR)/debug.mk
 include $(INCLUDE_DIR)/depends.mk
 include $(INCLUDE_DIR)/rootfs.mk
 
+include $(INCLUDE_DIR)/default-packages.mk
 include $(INCLUDE_DIR)/version.mk
 export REVISION
 export SOURCE_DATE_EPOCH