mirror of
https://git.busybox.net/buildroot
synced 2025-12-20 01:10:56 +08:00
package/aufs{-util}: remove package
Remove support for aufs, as it is outdated and unmaintained in Buildroot. Users are encouraged to use overlayfs in place of aufs. This patch removes support for aufs package providing sources for the kernel extension, the related Buildroot kernel extension configuration, as well as the userspace utilities. This also allows to remove some special cases in configuration utilities. Signed-off-by: Titouan Christophe <titouan.christophe@mind.be> [Romain: fix legacy handling text] Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
committed by
Romain Naour
parent
289dd6bd76
commit
72c95d947f
@@ -234,9 +234,6 @@ package/asterisk/0004-install-samples-need-the-data-files.patch lib_patch.Upstre
|
||||
package/at/0001-Makefile.in-fix-make-install-for-non-root-don-t-stri.patch lib_patch.Upstream
|
||||
package/at/S99at lib_sysv.Indent lib_sysv.Variables
|
||||
package/attr/0001-build-with-older-GCCs.patch lib_patch.Upstream
|
||||
package/aufs-util/0001-remove-user-settings.patch lib_patch.Upstream
|
||||
package/aufs-util/0002-no-check-ver.patch lib_patch.Upstream
|
||||
package/aufs-util/0003-no-strip-lib.patch lib_patch.Upstream
|
||||
package/aumix/0001-fix-incorrect-makefile-am.patch lib_patch.Upstream
|
||||
package/autoconf/0001-dont-add-dirty-to-version.patch lib_patch.Upstream
|
||||
package/automake/0001-noman.patch lib_patch.Upstream
|
||||
|
||||
@@ -146,6 +146,19 @@ endif
|
||||
|
||||
comment "Legacy options removed in 2025.11"
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS
|
||||
bool "Aufs Filesystem Module patch has been removed"
|
||||
select BR2_LEGACY
|
||||
help
|
||||
aufs kernel module patch is unmaintained and has been
|
||||
removed.
|
||||
|
||||
config BR2_PACKAGE_AUFS_UTIL
|
||||
bool "aufs-util has been removed"
|
||||
select BR2_LEGACY
|
||||
help
|
||||
aufs-util package is unmaintained and has been removed.
|
||||
|
||||
config BR2_TOOLCHAIN_EXTERNAL_LINARO_ARMEB
|
||||
bool "Linaro armeb 2018.05 external toolchain is deprecated"
|
||||
select BR2_LEGACY
|
||||
|
||||
@@ -76,68 +76,6 @@ config BR2_LINUX_KERNEL_EXT_FBTFT
|
||||
|
||||
https://github.com/notro/fbtft
|
||||
|
||||
# aufs-standalone
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS
|
||||
bool "Aufs Filesystem Module patch"
|
||||
select BR2_PACKAGE_AUFS
|
||||
help
|
||||
Aufs is split in two parts: a kernel part and a userspace
|
||||
part. Enabling this option automatically selects the aufs
|
||||
standalone (module) package and patches the Linux kernel
|
||||
built by Buildroot with the aufs kernel part (ie fs/aufs).
|
||||
|
||||
It is important to use the correct branch of aufs-standalone.
|
||||
|
||||
if BR2_LINUX_KERNEL_EXT_AUFS
|
||||
|
||||
choice
|
||||
bool "aufs-standalone series"
|
||||
help
|
||||
Select the major series of this version. This must match the
|
||||
major version of your kernel (e.g. for kernels 3.x, select
|
||||
aufs3.x; for kernels 4.x, select aufs4.x; for kernels 5.x,
|
||||
select aufs5.x ).
|
||||
|
||||
Note: neither aufs1.x nor aufs2.x (both for kernels older than
|
||||
3.x) are supported.
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3
|
||||
bool "aufs3.x"
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4
|
||||
bool "aufs4.x"
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5
|
||||
bool "aufs5.x"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS_SERIES
|
||||
int
|
||||
default 3 if BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3
|
||||
default 4 if BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4
|
||||
default 5 if BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5
|
||||
|
||||
config BR2_LINUX_KERNEL_EXT_AUFS_VERSION
|
||||
string "aufs-standalone version"
|
||||
default ""
|
||||
help
|
||||
The version you choose must match that of your kernel.
|
||||
Usually, the sha1 of the cset you want to use; avoid using a
|
||||
branch name as this yields non-reproducible builds.
|
||||
|
||||
See the following resources to see what versions are
|
||||
available:
|
||||
|
||||
For aufs3.x:
|
||||
https://sourceforge.net/p/aufs/aufs3-standalone/ref/master/branches/
|
||||
For aufs4.x:
|
||||
https://github.com/sfjro/aufs4-standalone/branches/all
|
||||
For aufs5.x:
|
||||
https://github.com/sfjro/aufs5-standalone/branches/all
|
||||
|
||||
endif # aufs
|
||||
|
||||
# kernel extensions from br2-external trees, if any
|
||||
source "$BR2_BASE_DIR/.br2-external.in.linux"
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# Patch the linux kernel with aufs extension
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINUX_EXTENSIONS += aufs
|
||||
|
||||
define AUFS_PREPARE_KERNEL
|
||||
if test -d $(@D)/fs/aufs/; then \
|
||||
echo "Your kernel already supports AUFS."; \
|
||||
exit 1; \
|
||||
fi
|
||||
$(APPLY_PATCHES) $(@D) $(AUFS_DIR) \
|
||||
aufs$(BR2_PACKAGE_AUFS_SERIES)-kbuild.patch \
|
||||
aufs$(BR2_PACKAGE_AUFS_SERIES)-base.patch \
|
||||
aufs$(BR2_PACKAGE_AUFS_SERIES)-mmap.patch \
|
||||
aufs$(BR2_PACKAGE_AUFS_SERIES)-standalone.patch
|
||||
cp -r $(AUFS_DIR)/fs/aufs/ $(@D)/fs/
|
||||
cp $(AUFS_DIR)/include/uapi/linux/aufs_type.h $(@D)/include/uapi/linux/
|
||||
endef
|
||||
@@ -208,8 +208,6 @@ endmenu
|
||||
|
||||
menu "Filesystem and flash utilities"
|
||||
source "package/abootimg/Config.in"
|
||||
source "package/aufs/Config.in"
|
||||
source "package/aufs-util/Config.in"
|
||||
source "package/autofs/Config.in"
|
||||
source "package/bmap-tools/Config.in"
|
||||
source "package/bmap-writer/Config.in"
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
install: drop setting ownership
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -21,7 +21,7 @@
|
||||
override CPPFLAGS += -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
|
||||
override CFLAGS += -O -Wall
|
||||
INSTALL ?= install
|
||||
-Install = ${INSTALL} -o root -g root -p
|
||||
+Install = ${INSTALL} -p
|
||||
ManDir = /usr/share/man
|
||||
|
||||
#
|
||||
@@ -1,24 +0,0 @@
|
||||
Makefile: do not check version
|
||||
|
||||
The aufs-util package tries to ensure that its version is compatible
|
||||
with the one in the running kernel. However, this test is flawed: the
|
||||
version string in the aufs4x branch for aufs-util is aufs3.x, so it does
|
||||
not match the version in the kernel when it is aufs4.x.
|
||||
|
||||
Disengage this check, ion the assumption the user knows what he is
|
||||
doing.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -62,7 +62,7 @@
|
||||
$(foreach v, CPPFLAGS CFLAGS INSTALL Install ManDir LibUtilHdr, \
|
||||
$(eval MAKE += ${v}="$${${v}}"))
|
||||
|
||||
-all: ver_test ${Man} ${Bin} ${Etc}
|
||||
+all: ${Man} ${Bin} ${Etc}
|
||||
${MAKE} -C libau $@
|
||||
ln -sf ./libau/libau*.so .
|
||||
$(call MakeFHSM, $@)
|
||||
@@ -1,18 +0,0 @@
|
||||
install: do not strip libs when installing
|
||||
|
||||
We want unstripped binaries in staging; stripping is done by Buildroot
|
||||
as a whole in target-finalize if needed, anyway.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff --git a/libau/Makefile b/libau/Makefile
|
||||
--- a/libau/Makefile
|
||||
+++ b/libau/Makefile
|
||||
@@ -37,7 +37,6 @@
|
||||
ln -sf $< $@
|
||||
${LibSo}.${LibSoMajor}: ${LibSo}.${LibSoMajor}.${LibSoMinor}
|
||||
ln -sf $< $@
|
||||
-${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS += -s
|
||||
${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDLIBS += -ldl -lpthread
|
||||
${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
|
||||
${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} ${LDFLAGS} \
|
||||
@@ -1,36 +0,0 @@
|
||||
comment "aufs-util needs a linux kernel and a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_LINUX_KERNEL || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_AUFS_UTIL
|
||||
bool "aufs-util"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Aufs command line utilities.
|
||||
|
||||
Needs a kernel with aufs support. A kernel
|
||||
extension package is available.
|
||||
|
||||
http://sourceforge.net/p/aufs/aufs-util/
|
||||
|
||||
if BR2_PACKAGE_AUFS_UTIL
|
||||
|
||||
config BR2_PACKAGE_AUFS_UTIL_VERSION
|
||||
string "aufs-util version"
|
||||
default ""
|
||||
help
|
||||
The version you choose must match that of the aufs support
|
||||
in your kernel. Usually, this is aufs3.x for 3.x kernels and
|
||||
aufs4.x for 4.x kernels.
|
||||
|
||||
Usually, the sha1 of the cset you want to use; avoid using a
|
||||
branch name as this yields non-reproducible builds.
|
||||
|
||||
See the following resources to see what versions are
|
||||
available:
|
||||
|
||||
https://sourceforge.net/p/aufs/aufs-util/ci/master/tree/
|
||||
|
||||
endif
|
||||
@@ -1,59 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# aufs-util
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# linux-headers
|
||||
AUFS_UTIL_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_UTIL_VERSION))
|
||||
AUFS_UTIL_SITE = https://git.code.sf.net/p/aufs/aufs-util
|
||||
AUFS_UTIL_SITE_METHOD = git
|
||||
AUFS_UTIL_LICENSE = GPL-2.0
|
||||
AUFS_UTIL_LICENSE_FILES = COPYING
|
||||
|
||||
AUFS_UTIL_DEPENDENCIES = linux
|
||||
|
||||
# Building aufs-util requires access to the kernel headers of aufs,
|
||||
# which are only available in the kernel build directory, which is why
|
||||
# we add -I$(LINUX_DIR)/include/uapi. These headers have not been
|
||||
# prepared for usage by userspace, so to workaround this we have to
|
||||
# defined the "__user" macro as empty.
|
||||
AUFS_UTIL_HOST_CPPFLAGS = \
|
||||
$(HOST_CPPFLAGS) \
|
||||
-I$(LINUX_DIR)/include/uapi \
|
||||
-D__user=
|
||||
|
||||
AUFS_UTIL_CPPFLAGS = \
|
||||
$(TARGET_CPPFLAGS) \
|
||||
-I$(LINUX_DIR)/include/uapi \
|
||||
-D__user=
|
||||
|
||||
# rdu64 is supposed to provide the LFS variant of readdir(),
|
||||
# readdir64(). However, because Buildroot is always LFS-enabled,
|
||||
# readdir() is always the LFS variant. Drop rdu64 from the build, as
|
||||
# it causes build failures due to multiple implementations of
|
||||
# readdir64().
|
||||
define AUFS_UTIL_REMOVE_RDU64
|
||||
$(SED) 's% rdu64.o%%' $(@D)/libau/Makefile
|
||||
endef
|
||||
|
||||
AUFS_UTIL_POST_PATCH_HOOKS += AUFS_UTIL_REMOVE_RDU64
|
||||
|
||||
# First, we build the host tools, needed to build the target tools.
|
||||
define AUFS_UTIL_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CPPFLAGS="$(AUFS_UTIL_HOST_CPPFLAGS)" \
|
||||
HOSTCC="$(HOSTCC)" HOSTLD="$(HOSTLD)" \
|
||||
INSTALL="$(INSTALL)" c2sh c2tmac
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CPPFLAGS="$(AUFS_UTIL_CPPFLAGS)" \
|
||||
INSTALL="$(INSTALL)" all
|
||||
endef
|
||||
|
||||
define AUFS_UTIL_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) INSTALL="$(INSTALL)" DESTDIR="$(TARGET_DIR)" install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -1,16 +0,0 @@
|
||||
# Automatically selected by the corresponding linux extension
|
||||
config BR2_PACKAGE_AUFS
|
||||
bool
|
||||
|
||||
if BR2_PACKAGE_AUFS
|
||||
|
||||
# Both come from the selection of the linux extension.
|
||||
config BR2_PACKAGE_AUFS_SERIES
|
||||
int
|
||||
default BR2_LINUX_KERNEL_EXT_AUFS_SERIES
|
||||
|
||||
config BR2_PACKAGE_AUFS_VERSION
|
||||
string
|
||||
default BR2_LINUX_KERNEL_EXT_AUFS_VERSION
|
||||
|
||||
endif
|
||||
@@ -1,24 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# aufs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AUFS_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_VERSION))
|
||||
AUFS_LICENSE = GPL-2.0
|
||||
AUFS_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AUFS_SERIES),3)
|
||||
AUFS_SITE = https://git.code.sf.net/p/aufs/aufs3-standalone
|
||||
AUFS_SITE_METHOD = git
|
||||
else ifeq ($(BR2_PACKAGE_AUFS_SERIES),4)
|
||||
AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION))
|
||||
else ifeq ($(BR2_PACKAGE_AUFS_SERIES),5)
|
||||
AUFS_SITE = $(call github,sfjro,aufs5-standalone,$(AUFS_VERSION))
|
||||
endif
|
||||
|
||||
ifeq ($(BR_BUILDING):$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),y:y:)
|
||||
$(error No aufs version specified)
|
||||
endif
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -75,9 +75,6 @@ def test_Ifdef(testname, filename, string, expected):
|
||||
|
||||
|
||||
get_package_prefix_from_filename = [
|
||||
('linux extension',
|
||||
'linux/linux-ext-aufs.mk',
|
||||
['aufs', 'AUFS']),
|
||||
('linux tool',
|
||||
'package/linux-tools/linux-tool-gpio.mk.in',
|
||||
['gpio', 'GPIO']),
|
||||
|
||||
@@ -149,9 +149,6 @@ async def fixup_config(sysinfo, configfile):
|
||||
configlines.remove('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH=""\n')
|
||||
configlines.append('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"\n')
|
||||
|
||||
if 'BR2_PACKAGE_AUFS_UTIL=y\n' in configlines and \
|
||||
'BR2_PACKAGE_AUFS_UTIL_VERSION=""\n' in configlines:
|
||||
return False
|
||||
if 'BR2_PACKAGE_A10DISP=y\n' in configlines:
|
||||
return False
|
||||
|
||||
@@ -252,11 +249,6 @@ async def fixup_config(sysinfo, configfile):
|
||||
'BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y\n' in configlines:
|
||||
configlines.remove('BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y')
|
||||
|
||||
if 'BR2_LINUX_KERNEL_EXT_AUFS=y\n' in configlines and \
|
||||
'BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""\n' in configlines:
|
||||
configlines.remove('BR2_LINUX_KERNEL_EXT_AUFS=y\n')
|
||||
configlines.remove('BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""\n')
|
||||
|
||||
if 'BR2_PACKAGE_LINUX_BACKPORTS=y\n' in configlines and \
|
||||
'BR2_PACKAGE_LINUX_BACKPORTS_USE_CUSTOM_CONFIG=y\n' in configlines and \
|
||||
'BR2_PACKAGE_LINUX_BACKPORTS_CUSTOM_CONFIG_FILE=""\n' in configlines:
|
||||
|
||||
Reference in New Issue
Block a user