merge_config.sh configuration merge_config.sh
$ cd linux $ git checkout v4.9 $ make x86_64_defconfig $ grep -E 'CONFIG_(DEBUG_INFO|GDB_SCRIPTS)[= ]' .config
The substitution process does not work, unfortunately:
./scripts/kconfig/merge_config.sh arch/x86/configs/x86_64_defconfig \ <( printf 'CONFIG_DEBUG_INFO=y\nCONFIG_GDB_SCRIPTS=y\n' )
due to: https://unix.stackexchange.com/a/164109/32558
merge_config.sh is a simple interface for the make alldefconfig .
When cross-compiling, ARCH should be exported when merge_config.sh run, for example:
export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-gnu- make defconfig ./scripts/kconfig/merge_config.sh .config .config-fragment
The combined output file can be specified explicitly using the KCONFIG_CONFIG environment KCONFIG_CONFIG ; otherwise, it just overwrites .config :
KCONFIG_CONFIG=some/path/.config ./scripts/kconfig/merge_config.sh .config .config-fragment
Buildroot automates it using BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES : how to configure the Linux kernel in Buildroot?
Related: https://unix.stackexchange.com/questions/19905/how-to-non-interactively-configure-the-linux-kernel-build Moved 20 days earlier :-)
Ciro Santilli ζ°η ζΉι δΈεΏ 996ICU ε
ε δΊδ»Ά Sep 11 '16 at 21:32 2016-09-11 21:32
source share