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)))
$(call Package/procd/Default)
VARIANT:=default
CONFLICTS:=procd-selinux
- DEFAULT:=y if !SELINUX
endef
define Package/procd-selinux
TITLE += with SELinux support
PROVIDES:=procd
VARIANT:=selinux
- DEFAULT:=y if SELINUX
endef
define Package/procd-ujail
CATEGORY:=Base system
DEPENDS:=@SECCOMP +libubox +libblobmsg-json
TITLE:=OpenWrt process seccomp helper + utrace
- DEFAULT:=y if SECCOMP
endef
define Package/uxc
$(call Package/busybox/Default)
CONFLICTS:=busybox-selinux
VARIANT:=default
- DEFAULT:=y if !SELINUX
endef
define Package/busybox-selinux
DEPENDS += +libselinux
VARIANT:=selinux
PROVIDES:=busybox
- DEFAULT:=y if SELINUX
endef
define Package/busybox/description
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))