mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -4,15 +4,18 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BUSYBOX_VERSION = 1.32.0
|
||||
BUSYBOX_SITE = http://www.busybox.net/downloads
|
||||
BUSYBOX_VERSION = 1.35.0
|
||||
BUSYBOX_SITE = https://www.busybox.net/downloads
|
||||
BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2
|
||||
BUSYBOX_LICENSE = GPL-2.0
|
||||
BUSYBOX_LICENSE_FILES = LICENSE
|
||||
BUSYBOX_LICENSE = GPL-2.0, bzip2-1.0.4
|
||||
BUSYBOX_LICENSE_FILES = LICENSE archival/libarchive/bz/LICENSE
|
||||
BUSYBOX_CPE_ID_VENDOR = busybox
|
||||
|
||||
define BUSYBOX_HELP_CMDS
|
||||
@echo ' busybox-menuconfig - Run BusyBox menuconfig'
|
||||
endef
|
||||
# 0003-awk-fix-use-after-free-CVE-2022-30065.patch
|
||||
BUSYBOX_IGNORE_CVES += CVE-2022-30065
|
||||
# 0004-libbb-sockaddr2str-ensure-only-printable-characters-.patch
|
||||
# 0005-nslookup-sanitize-all-printed-strings-with-printable.patch
|
||||
BUSYBOX_IGNORE_CVES += CVE-2022-28391
|
||||
|
||||
BUSYBOX_CFLAGS = \
|
||||
$(TARGET_CFLAGS)
|
||||
@@ -42,6 +45,7 @@ BUSYBOX_DEPENDENCIES = \
|
||||
$(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \
|
||||
$(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \
|
||||
$(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \
|
||||
$(if $(BR2_PACKAGE_IPCALC),ipcalc) \
|
||||
$(if $(BR2_PACKAGE_IPROUTE2),iproute2) \
|
||||
$(if $(BR2_PACKAGE_IPUTILS),iputils) \
|
||||
$(if $(BR2_PACKAGE_KMOD),kmod) \
|
||||
@@ -50,7 +54,7 @@ BUSYBOX_DEPENDENCIES = \
|
||||
$(if $(BR2_PACKAGE_MTD),mtd) \
|
||||
$(if $(BR2_PACKAGE_NET_TOOLS),net-tools) \
|
||||
$(if $(BR2_PACKAGE_NETCAT),netcat) \
|
||||
$(if $(BR2_PACKAGE_NETCAT_OPENSBSD),netcat-openbsd) \
|
||||
$(if $(BR2_PACKAGE_NETCAT_OPENBSD),netcat-openbsd) \
|
||||
$(if $(BR2_PACKAGE_NMAP),nmap) \
|
||||
$(if $(BR2_PACKAGE_NTP),ntp) \
|
||||
$(if $(BR2_PACKAGE_PCIUTILS),pciutils) \
|
||||
@@ -93,8 +97,11 @@ BUSYBOX_MAKE_ENV += \
|
||||
endif
|
||||
|
||||
BUSYBOX_MAKE_OPTS = \
|
||||
AR="$(TARGET_AR)" \
|
||||
NM="$(TARGET_NM)" \
|
||||
RANLIB="$(TARGET_RANLIB)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
ARCH=$(NORMALIZED_ARCH) \
|
||||
PREFIX="$(TARGET_DIR)" \
|
||||
EXTRA_LDFLAGS="$(BUSYBOX_LDFLAGS)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
@@ -105,6 +112,7 @@ ifndef BUSYBOX_CONFIG_FILE
|
||||
BUSYBOX_CONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_BUSYBOX_CONFIG))
|
||||
endif
|
||||
|
||||
BUSYBOX_KCONFIG_SUPPORTS_DEFCONFIG = NO
|
||||
BUSYBOX_KCONFIG_FILE = $(BUSYBOX_CONFIG_FILE)
|
||||
BUSYBOX_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES))
|
||||
BUSYBOX_KCONFIG_EDITORS = menuconfig xconfig gconfig
|
||||
@@ -207,6 +215,13 @@ define BUSYBOX_INSTALL_UDHCPC_SCRIPT
|
||||
fi
|
||||
endef
|
||||
|
||||
define BUSYBOX_INSTALL_ZCIP_SCRIPT
|
||||
if grep -q CONFIG_ZCIP=y $(@D)/.config; then \
|
||||
$(INSTALL) -m 0755 -D $(@D)/examples/zcip.script \
|
||||
$(TARGET_DIR)/usr/share/zcip/default.script; \
|
||||
fi
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_INIT_BUSYBOX),y)
|
||||
|
||||
define BUSYBOX_SET_INIT
|
||||
@@ -326,6 +341,12 @@ define BUSYBOX_INSTALL_TELNET_SCRIPT
|
||||
$(TARGET_DIR)/etc/init.d/S50telnet ; \
|
||||
fi
|
||||
endef
|
||||
define BUSYBOX_INSTALL_TELNET_SERVICE
|
||||
if grep -q CONFIG_FEATURE_TELNETD_STANDALONE=y $(@D)/.config; then \
|
||||
$(INSTALL) -D -m 0644 package/busybox/telnetd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/telnetd.service ; \
|
||||
fi
|
||||
endef
|
||||
|
||||
# Add /bin/{a,hu}sh to /etc/shells otherwise some login tools like dropbear
|
||||
# can reject the user connection. See man shells.
|
||||
@@ -365,6 +386,7 @@ define BUSYBOX_INSTALL_TARGET_CMDS
|
||||
$(BUSYBOX_INSTALL_INDIVIDUAL_BINARIES)
|
||||
$(BUSYBOX_INSTALL_INITTAB)
|
||||
$(BUSYBOX_INSTALL_UDHCPC_SCRIPT)
|
||||
$(BUSYBOX_INSTALL_ZCIP_SCRIPT)
|
||||
$(BUSYBOX_INSTALL_MDEV_CONF)
|
||||
endef
|
||||
|
||||
@@ -377,6 +399,10 @@ define BUSYBOX_INSTALL_INIT_OPENRC
|
||||
$(BUSYBOX_INSTALL_TELNET_SCRIPT)
|
||||
endef
|
||||
|
||||
define BUSYBOX_INSTALL_INIT_SYSTEMD
|
||||
$(BUSYBOX_INSTALL_TELNET_SERVICE)
|
||||
endef
|
||||
|
||||
define BUSYBOX_INSTALL_INIT_SYSV
|
||||
$(BUSYBOX_INSTALL_MDEV_SCRIPT)
|
||||
$(BUSYBOX_INSTALL_LOGGING_SCRIPT)
|
||||
|
||||
Reference in New Issue
Block a user