mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
Use Linux kernel defconfig format (issue #416)
This reduces the amount of noise in the Linux kernel config files by only storing the differences from the stock configuration. It adds a new makefile target 'linux.saveconfig' to convert the build tree's .config file into config/linux-linuxboot.config.
This commit is contained in:
parent
c7c4b9919c
commit
f4e25dd216
File diff suppressed because it is too large
Load Diff
@ -25,11 +25,12 @@ linux_hash := $(linux-$(linux_version)_hash)
|
|||||||
$(build)/$(linux_dir)/.configured: $(linux_kconfig)
|
$(build)/$(linux_dir)/.configured: $(linux_kconfig)
|
||||||
|
|
||||||
linux_configure := \
|
linux_configure := \
|
||||||
$(MAKE) -C .. \
|
mkdir -p "$(build)/$(linux_dir)" \
|
||||||
|
&& cp "$(pwd)/$(linux_kconfig)" "$(build)/$(linux_dir)/.config" \
|
||||||
|
&& $(MAKE) -C .. \
|
||||||
CROSS_COMPILE="$(CROSS)" \
|
CROSS_COMPILE="$(CROSS)" \
|
||||||
O="$(build)/$(linux_dir)" \
|
O="$(build)/$(linux_dir)" \
|
||||||
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
|
olddefconfig \
|
||||||
oldconfig \
|
|
||||||
|
|
||||||
linux_output += arch/x86/boot/bzImage
|
linux_output += arch/x86/boot/bzImage
|
||||||
|
|
||||||
@ -88,7 +89,6 @@ EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches
|
|||||||
|
|
||||||
linux_target := \
|
linux_target := \
|
||||||
O="$(build)/$(linux_dir)" \
|
O="$(build)/$(linux_dir)" \
|
||||||
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
|
|
||||||
CROSS_COMPILE="$(CROSS)" \
|
CROSS_COMPILE="$(CROSS)" \
|
||||||
AFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
AFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
||||||
CFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
CFLAGS_KERNEL="$(EXTRA_FLAGS)" \
|
||||||
@ -148,9 +148,18 @@ $(build)/$(BOARD)/bzImage: $(build)/$(linux_dir)/.build
|
|||||||
|
|
||||||
|
|
||||||
# menuconfig target allows us to easily reconfigure this Linux kernel
|
# menuconfig target allows us to easily reconfigure this Linux kernel
|
||||||
|
# Afterwars make linux.saveconfig to generate a minimal config from it
|
||||||
linux.menuconfig:
|
linux.menuconfig:
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
-C "$(build)/$(linux_base_dir)" \
|
-C "$(build)/$(linux_base_dir)" \
|
||||||
O="$(build)/$(linux_dir)" \
|
O="$(build)/$(linux_dir)" \
|
||||||
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
|
|
||||||
menuconfig \
|
menuconfig \
|
||||||
|
|
||||||
|
# The config file in the repo is stored as a "defconfig" format
|
||||||
|
# which only includes the options that have changed from the defaults.
|
||||||
|
linux.saveconfig:
|
||||||
|
$(MAKE) \
|
||||||
|
-C "$(build)/$(linux_base_dir)" \
|
||||||
|
O="$(build)/$(linux_dir)" \
|
||||||
|
savedefconfig
|
||||||
|
mv "$(build)/$(linux_dir)/defconfig" "$(pwd)/$(linux_kconfig)"
|
||||||
|
Loading…
Reference in New Issue
Block a user