aboutsummaryrefslogtreecommitdiff
path: root/Config.in.legacy
diff options
context:
space:
mode:
authorGravatar Arnout Vandecappelle <arnout@mind.be>2015-04-11 01:49:02 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-04-11 08:22:28 +0200
commit53903a1520420ae92fc1a9b4ffa6df8efff266f4 (patch)
tree8e56dfc5dca568016fa3a7470ef13509a29da344 /Config.in.legacy
parent7536a7354c92e0ec2760479a9d62e792703154d7 (diff)
downloadbuildroot-53903a1520420ae92fc1a9b4ffa6df8efff266f4.tar.gz
buildroot-53903a1520420ae92fc1a9b4ffa6df8efff266f4.tar.bz2
*config: improve handling of BR2_LEGACY
In 8a46d4bf1f the randpackageconfig and allpackageyesconfig were extended with disabling all the legacy options, otherwise the resulting config couldn't be built. However, that didn't work for randconfig and allyesconfig. This commit reverts 8a46d4bf1f and replaces it with a different approach: skipping of the legacy config options is passed explicitly through the environment variable SKIP_LEGACY, which forces BR2_SKIP_LEGACY to y. The new option BR2_SKIP_LEGACY completely disables the legacy handling, which effectively removes all the legacy options from the .config. However, in that case no values are set for the legacy options so a subsequent oldconfig will query them. Therefore, run an additional olddefconfig. [Peter: fix s/BR2_LEGACY/SKIP_LEGACY/ typo] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [yann.morin.1998@free.fr: do not rely on a user-visible option, works perfectly well with only blind options set from the environment] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'Config.in.legacy')
-rw-r--r--Config.in.legacy8
1 files changed, 8 insertions, 0 deletions
diff --git a/Config.in.legacy b/Config.in.legacy
index 0fc794f758..97bc939802 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -52,6 +52,12 @@
#
# [End of example]
+config BR2_SKIP_LEGACY
+ bool
+ option env="SKIP_LEGACY"
+
+if !BR2_SKIP_LEGACY
+
config BR2_LEGACY
bool
help
@@ -1288,3 +1294,5 @@ config BR2_BFIN_FLAT
select BR2_LEGACY
endmenu
+
+endif # !SKIP_LEGACY