Skip to content

Commit 2a11328

Browse files
committed
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 <[email protected]> Cc: Roman Zippel <[email protected]>
1 parent 0f855aa commit 2a11328

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ CONFIGURING the kernel:
194194
"make *config" checks for a file named "all{yes/mod/no/random}.config"
195195
for symbol values that are to be forced. If this file is not found,
196196
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.
197199

198200
NOTES on "make config":
199201
- having unnecessary drivers will make the kernel bigger, and can

scripts/kconfig/conf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ int main(int ac, char **av)
591591
conf_read_simple(name, S_DEF_USER);
592592
else if (!stat("all.config", &tmpstat))
593593
conf_read_simple("all.config", S_DEF_USER);
594+
conf_set_env_sym("K64BIT", "64BIT", S_DEF_USER);
594595
break;
595596
default:
596597
break;

0 commit comments

Comments
 (0)