在scripts/kconfig路径下有一个merge_config.sh,可以用于将将两个defconfig merge成一个.
使用用法如下:
./scripts/kconfig/merge_config.sh -m arch/arm64/configs/defconfig arch/arm64/configs/usb-config
mv -f .config .merged.config
make KCONFIG_ALLCONFIG=.merged.config alldefconfig
其中merge_config.sh 可以带一个option,这里主要用-m。
usage() {
echo "Usage: $0 [OPTIONS] [CONFIG [...]]"
echo " -h display this help text"
echo " -m only merge the fragments, do not execute the make command"
echo " -n use allnoconfig instead of alldefconfig"
echo " -r list redundant entries when merging fragments"
echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead."
}
这里一定要用KCONFIG_ALLCONFIG 来制定用的是.merged.config alldefconfig,负责默认用的defconfig
使用用法如下:
./scripts/kconfig/merge_config.sh -m arch/arm64/configs/defconfig arch/arm64/configs/usb-config
mv -f .config .merged.config
make KCONFIG_ALLCONFIG=.merged.config alldefconfig
其中merge_config.sh 可以带一个option,这里主要用-m。
usage() {
echo "Usage: $0 [OPTIONS] [CONFIG [...]]"
echo " -h display this help text"
echo " -m only merge the fragments, do not execute the make command"
echo " -n use allnoconfig instead of alldefconfig"
echo " -r list redundant entries when merging fragments"
echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead."
}
这里一定要用KCONFIG_ALLCONFIG 来制定用的是.merged.config alldefconfig,负责默认用的defconfig