Commit 2a113281f5cd2febbab21a93c8943f8d3eece4d3

Authored by Sam Ravnborg
1 parent 0f855aa64b

kconfig: use $K64BIT to set 64BIT with all*config targets

The variable K64BIT can now be used to select the
value of CONFIG_64BIT.

This is for example useful for powerpc to generate
allmodconfig for both bit sizes - like this:
make ARCH=powerpc K64BIT=y
make ARCH=powerpc K64BIT=n

To use this the Kconfig file must use "64BIT" as the
config value to select between 32 and 64 bit.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>

Showing 2 changed files with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -194,6 +194,8 @@
194 194 "make *config" checks for a file named "all{yes/mod/no/random}.config"
195 195 for symbol values that are to be forced. If this file is not found,
196 196 it checks for a file named "all.config" to contain forced values.
  197 + Finally it checks the environment variable K64BIT and if found, sets
  198 + the config symbol "64BIT" to the value of the K64BIT variable.
197 199  
198 200 NOTES on "make config":
199 201 - having unnecessary drivers will make the kernel bigger, and can
scripts/kconfig/conf.c
... ... @@ -591,6 +591,7 @@
591 591 conf_read_simple(name, S_DEF_USER);
592 592 else if (!stat("all.config", &tmpstat))
593 593 conf_read_simple("all.config", S_DEF_USER);
  594 + conf_set_env_sym("K64BIT", "64BIT", S_DEF_USER);
594 595 break;
595 596 default:
596 597 break;