[PATCH 0/2] arm64: configs: Provide slimmed down configuration for guests

Mark Brown broonie at kernel.org
Mon Feb 6 08:26:32 PST 2023


It has been noted that due to the extensive platform support it
enables the arm64 defconfig is rather large and takes a while to
build in comparison with other architectures which can be a
burden when doing cross architecture work, especially when
testing is mainly in emulation.  We can mitigate this by providing
a configuration that only enables the support required to run in
mach-virt, this will be much smaller and quicker to build.

Having two completely separate configurations would mean that we'd
need to make any changes to the architecture wide configuration in
both the existing defconfig and the new configuration if we wanted to
ensure consistent default behaviour.  We can reduce this by splitting
the existing defconfig into a base fragment which enables options for
the architecture itself and one for platform configuration which has
all the platform enablement options, merging them to produce
defconfig.  We can then add another fragment enabling only options for
mach-virt and merge that with the base config to provide a new
virtconfig configuration.

The split of configurations is somewhat arbitrary, there will be some
room for discussion there, and it may be that splitting things up in
this manner is considered more trouble than it's worth.  If we're
going to start doing this then there may also be some desire for other
configurations. 

This is based on current -next since it's very late in the
release cycle.

Signed-off-by: Mark Brown <broonie at kernel.org>
---
Mark Brown (2):
      arm64: configs: Split defconfig into base and platform configs
      arm64: configs: Add virtconfig

 arch/arm64/Makefile                                |  10 ++
 arch/arm64/configs/base.config                     | 169 +++++++++++++++++++++
 arch/arm64/configs/{defconfig => platforms.config} | 169 ---------------------
 arch/arm64/configs/virt.config                     |  43 ++++++
 4 files changed, 222 insertions(+), 169 deletions(-)
---
base-commit: 4fafd96910add124586b549ad005dcd179de8a18
change-id: 20230203-arm64-defconfigs-c04cf5fa6288

Best regards,
-- 
Mark Brown <broonie at kernel.org>




More information about the linux-arm-kernel mailing list