mbox series

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

Message ID 20230203-arm64-defconfigs-v1-0-cd0694a05f13@kernel.org (mailing list archive)
Headers show
Series arm64: configs: Provide slimmed down configuration for guests | expand

Message

Mark Brown Feb. 10, 2023, 7:52 p.m. UTC
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.  Instead define a new config
fragement which turns off options from defconfig which enable platform
support, currently this just covers the ARCH_ options that control SoC
specific drivers as validation for this approach - if people are happy
with this approach we can build on it to further reduce the size of the
new configuration.

The resulting configuration builds about 25% faster for me.

v2:
 - Rework to base on turning off options from defconfig rather than 
   splitting out a base configuration and then adding things to it.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (3):
      scripts: merge_config: Add option to suppress warning on overrides
      kbuild: Provide a version of merge_into_defconfig without override warnings
      arm64: configs: Add virtconfig

 arch/arm64/Makefile             |  6 ++++++
 arch/arm64/configs/virt.config  | 39 +++++++++++++++++++++++++++++++++++++++
 scripts/Makefile.defconf        | 14 ++++++++++++++
 scripts/kconfig/merge_config.sh | 25 ++++++++++++++++---------
 4 files changed, 75 insertions(+), 9 deletions(-)
---
base-commit: 4fafd96910add124586b549ad005dcd179de8a18
change-id: 20230203-arm64-defconfigs-c04cf5fa6288

Best regards,

Comments

Mark Brown Feb. 10, 2023, 11:51 p.m. UTC | #1
On Fri, Feb 10, 2023 at 07:52:46PM +0000, Mark Brown wrote:
> 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.

Sorry, this is v2 of 

   https://lore.kernel.org/linux-arm-kernel/20230203-arm64-defconfigs-v1-0-6d0d03a6dbd2@kernel.org/#r

but it seems b4 didn't pick up that it was v2 (I think due to me messing
up moving between machines).
patchwork-bot+linux-soc@kernel.org Feb. 13, 2023, 7:30 p.m. UTC | #2
Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <arnd@arndb.de>:

On Fri, 10 Feb 2023 19:52:46 +0000 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [1/3] scripts: merge_config: Add option to suppress warning on overrides
    https://git.kernel.org/soc/soc/c/46dff8d7e381
  - [2/3] kbuild: Provide a version of merge_into_defconfig without override warnings
    https://git.kernel.org/soc/soc/c/a63971257e66
  - [3/3] arm64: configs: Add virtconfig
    https://git.kernel.org/soc/soc/c/c6cd63f5af39

You are awesome, thank you!