Commit ba4ad9d2 authored by Thomas De Schampheleire's avatar Thomas De Schampheleire Committed by Peter Korsgaard
Browse files

deprecated handling: introduce BR2_DEPRECATED_SINCE_xxxx_xx



In order to keep better track of when a feature got deprecated, and hence
when it can be removed, a new set of symbols BR2_DEPRECATED_SINCE_xxxx_xx is
introduced. These symbols are automatically selected when BR2_DEPRECATED is
selected, and thus are transparent to the user.
A deprecated feature will no longer depend on BR2_DEPRECATED directly, but
rather on the appropriate BR2_DEPRECATED_SINCE_xxxx_xx. If that symbol does
not yet exist, it has to be created in Config.in.
When removing a deprecated feature, one should also check whether this was
the last feature using the BR2_DEPRECATED_SINCE_xxxx_xx symbol, in which
case the latter can be removed from Config.in.

A followup patch will make sure the overview is added to the list of
deprecated features in the manual, so that a buildroot core developer can
easily determine which features to remove in a given development cycle.

Signed-off-by: default avatarThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent b4a28e6c
Loading
Loading
Loading
Loading
+41 −1
Original line number Diff line number Diff line
@@ -254,6 +254,46 @@ config BR2_DEPRECATED
	help
	  This option hides outdated/obsolete versions of packages.

if BR2_DEPRECATED

config BR2_DEPRECATED_SINCE_2010_05
	bool
	default y

config BR2_DEPRECATED_SINCE_2010_11
	bool
	default y

config BR2_DEPRECATED_SINCE_2012_05
	bool
	default y

config BR2_DEPRECATED_SINCE_2012_11
	bool
	default y

config BR2_DEPRECATED_SINCE_2013_02
	bool
	default y

config BR2_DEPRECATED_SINCE_2013_05
	bool
	default y

config BR2_DEPRECATED_SINCE_2013_08
	bool
	default y

config BR2_DEPRECATED_SINCE_2013_11
	bool
	default y

config BR2_DEPRECATED_SINCE_2014_02
	bool
	default y

endif

config BR2_ENABLE_DEBUG
	bool "build packages with debugging symbols"
	help
@@ -443,7 +483,7 @@ config BR2_PREFER_STATIC_LIB
config BR2_HAVE_DOCUMENTATION
	bool "documentation on the target"
	# We no longer want to support a toolchain on the target
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2012_11
	help
	  Install the documentation, including manual pages and info
	  pages, on the target.
+4 −4
Original line number Diff line number Diff line
@@ -11,16 +11,16 @@ choice

config BR2_mips_1
	bool "mips I (generic)"
	depends on !BR2_ARCH_IS_64 && BR2_DEPRECATED
	depends on !BR2_ARCH_IS_64 && BR2_DEPRECATED_SINCE_2013_11
config BR2_mips_2
	bool "mips II"
	depends on !BR2_ARCH_IS_64 && BR2_DEPRECATED
	depends on !BR2_ARCH_IS_64 && BR2_DEPRECATED_SINCE_2013_11
config BR2_mips_3
	bool "mips III"
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2013_11
config BR2_mips_4
	bool "mips IV"
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2013_11
config BR2_mips_32
	bool "mips 32"
	depends on !BR2_ARCH_IS_64
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ config BR2_TARGET_ROOTFS_SQUASHFS4
	bool "4.x"

config BR2_TARGET_ROOTFS_SQUASHFS3
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2010_05
	bool "3.x"

endchoice
+1 −1
Original line number Diff line number Diff line
config BR2_PACKAGE_AUTOCONF
	bool "autoconf"
	# We no longer support a toolchain on the target
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2012_11
	select BR2_PACKAGE_PERL
	help
	  Extensible program for developing configure scripts.  These
+1 −1
Original line number Diff line number Diff line
config BR2_PACKAGE_AUTOMAKE
	bool "automake"
	# We no longer support a toolchain on the target
	depends on BR2_DEPRECATED
	depends on BR2_DEPRECATED_SINCE_2012_11
	select BR2_PACKAGE_AUTOCONF
	select BR2_PACKAGE_PERL
	help
Loading