*config: improve handling of BR2_LEGACY
authorArnout Vandecappelle <arnout@mind.be>
Fri, 10 Apr 2015 23:49:02 +0000 (01:49 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 11 Apr 2015 06:22:28 +0000 (08:22 +0200)
commit53903a1520420ae92fc1a9b4ffa6df8efff266f4
tree8e56dfc5dca568016fa3a7470ef13509a29da344
parent7536a7354c92e0ec2760479a9d62e792703154d7
*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>
Config.in.legacy
Makefile