aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/Makefile
diff options
context:
space:
mode:
authorGravatar Mark Brown <broonie@kernel.org> 2023-02-10 19:52:49 +0000
committerGravatar Arnd Bergmann <arnd@arndb.de> 2023-02-13 20:18:29 +0100
commitc6cd63f5af3921c484be5789cf23e0f276de3a2f (patch)
treec24523df9ef392811d8cd325c82ad831fb9a994d /arch/arm64/Makefile
parentkbuild: Provide a version of merge_into_defconfig without override warnings (diff)
downloadlinux-c6cd63f5af3921c484be5789cf23e0f276de3a2f.tar.gz
linux-c6cd63f5af3921c484be5789cf23e0f276de3a2f.tar.bz2
linux-c6cd63f5af3921c484be5789cf23e0f276de3a2f.zip
arm64: configs: Add virtconfig
Provide a slimline configuration intended to be booted on virtual machines, with the goal of providing a light configuration which will boot on and enable features available in mach-virt. This is defined in terms of the standard defconfig, with an additional virt.config fragment which disables options unneeded in a virtual configuration. As a first step we just disable all the ARCH_ configuration options, disabling the build of all the SoC specific drivers. This results in a kernel that builds about 25% faster in my testing, if this approach works for people we can add further options. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230203-arm64-defconfigs-v1-3-cd0694a05f13@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64/Makefile')
-rw-r--r--arch/arm64/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index d62bd221828f..d7dfe00df7d2 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -215,6 +215,12 @@ ifdef CONFIG_COMPAT_VDSO
endif
endif
+include $(srctree)/scripts/Makefile.defconf
+
+PHONY += virtconfig
+virtconfig:
+ $(call merge_into_defconfig_override,defconfig,virt)
+
define archhelp
echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'