summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-11-13 06:04:31 +0000
committerFelix Fietkau2024-11-13 06:12:21 +0000
commit4c65359af49b6ccecd98987f842db5eba985f64b (patch)
treeb84a50b3644aa03554c12a4704809ded73e8b669
parentf84187035e96d6d9912deebc25822910a7d539a5 (diff)
downloadopenwrt-4c65359af49b6ccecd98987f842db5eba985f64b.tar.gz
build: fix including busybox, procd and apk/opkg in imagebuilder
Since the image builder pulls package lists from metadata directly, add procd and busybox as depdendencies to base-files. As for the package manager itself, since it can be disabled it needs to be added directly in the image builder makefile Fixes: 44598c233dd9 ("build: remove broken dependency of metadata on toplevel .config variables") Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/base-files/Makefile6
-rw-r--r--package/system/procd/Makefile3
-rw-r--r--package/utils/busybox/Makefile2
-rw-r--r--target/imagebuilder/files/Makefile5
4 files changed, 10 insertions, 6 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 4bcb4882d7..7ac4ea557f 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -39,7 +39,11 @@ endif
define Package/base-files
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
+ DEPENDS:= \
+ +netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring \
+ +NAND_SUPPORT:ubi-utils +fstools +fwtool \
+ +SELINUX:procd-selinux +!SELINUX:procd +SECCOMP:procd-seccomp \
+ +SELINUX:busybox-selinux +!SELINUX:busybox
TITLE:=Base filesystem for OpenWrt
URL:=http://openwrt.org/
VERSION:=$(PKG_RELEASE)~$(lastword $(subst -, ,$(REVISION)))
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 9ff6fb80f7..86de4babfd 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -50,7 +50,6 @@ define Package/procd
$(call Package/procd/Default)
VARIANT:=default
CONFLICTS:=procd-selinux
- DEFAULT:=y if !SELINUX
endef
define Package/procd-selinux
@@ -59,7 +58,6 @@ define Package/procd-selinux
TITLE += with SELinux support
PROVIDES:=procd
VARIANT:=selinux
- DEFAULT:=y if SELINUX
endef
define Package/procd-ujail
@@ -75,7 +73,6 @@ define Package/procd-seccomp
CATEGORY:=Base system
DEPENDS:=@SECCOMP +libubox +libblobmsg-json
TITLE:=OpenWrt process seccomp helper + utrace
- DEFAULT:=y if SECCOMP
endef
define Package/uxc
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 7b591db716..4ef470df75 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -56,7 +56,6 @@ define Package/busybox
$(call Package/busybox/Default)
CONFLICTS:=busybox-selinux
VARIANT:=default
- DEFAULT:=y if !SELINUX
endef
define Package/busybox-selinux
@@ -65,7 +64,6 @@ define Package/busybox-selinux
DEPENDS += +libselinux
VARIANT:=selinux
PROVIDES:=busybox
- DEFAULT:=y if SELINUX
endef
define Package/busybox/description
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index 72b36b0862..c92ab74306 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -138,6 +138,11 @@ _call_info: FORCE
echo 'Available Profiles:'
echo; $(PROFILE_LIST)
+ifneq ($(CONFIG_USE_APK),)
+ DEFAULT_PACKAGES += apk-mbedtls
+else
+ DEFAULT_PACKAGES += opkg
+endif
BUILD_PACKAGES:=$(sort $(DEFAULT_PACKAGES) $($(USER_PROFILE)_PACKAGES) kernel)
# "-pkgname" in the package list means remove "pkgname" from the package list
BUILD_PACKAGES:=$(filter-out $(filter -%,$(BUILD_PACKAGES)) $(patsubst -%,%,$(filter -%,$(BUILD_PACKAGES))),$(BUILD_PACKAGES))