Skip to contentSkip to conversation

configs: introduce a minimalist defconfig

PATCH New Yann E. MORIN 3 participants 3 messages Dec 24, 2017 – Dec 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: introduce a minimalist defconfig

It is very often interesting to start from a minimalist configuration with no package and no filesystem.

Re-use the existing minimalist configuration and promote it to a full defconfig.

This thus contains options that default to 'y', like the paranoid wrapper and busybox-show-others, as the defconfig is used by test-pkg too.

Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>
---
 support/config-fragments/minimal.config => configs/minimal_defconfig | 2 ++
 utils/genrandconfig                                                  | 2 +-
 utils/test-pkg                                                       | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
 rename support/config-fragments/minimal.config => configs/minimal_defconfig (82%)
configs/minimal_defconfig renamed from support/config-fragments/minimal.config +2 -0
similarity index 82%
rename from support/config-fragments/minimal.config
rename to configs/minimal_defconfig
index 71344e2c69..88406fdf4d 100644
@@ -4,5 +4,7 @@ BR2_INIT_NONE=y
 BR2_SYSTEM_BIN_SH_NONE=y
 # BR2_PACKAGE_BUSYBOX is not set
 # BR2_TARGET_ROOTFS_TAR is not set
+
+# For test-pkg, we also want those options to be forcibly 'y'
 BR2_COMPILER_PARANOID_UNSAFE_PATH=y
 BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
utils/genrandconfig +1 -1
index 883322552c..d193b99e8b 100755
@@ -343,7 +343,7 @@ def gen_config(args):
 
     # Combine with the minimal configuration
     minimalconfigfile = os.path.join(args.buildrootdir,
-                                     'support/config-fragments/minimal.config')
+                                     'configs/minimal_defconfig')
     with open(minimalconfigfile) as minimalf:
         configlines += minimalf.readlines()
 
utils/test-pkg +1 -1
index 1b7046eac4..0e8b2f973b 100755
@@ -99,7 +99,7 @@ build_one() {
     mkdir -p "${dir}"
 
     support/kconfig/merge_config.sh -O "${dir}" \
-        "${toolchainconfig}" "support/config-fragments/minimal.config" "${cfg}" \
+        "${toolchainconfig}" "configs/minimal_defconfig" "${cfg}" \
         > /dev/null
     # We want all the options from the snippet to be present as-is (set
     # or not set) in the actual .config; if one of them is not, it means
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 configs: introduce a minimalist defconfig

Hello,

Quoted 6 lines · Yann E. MORIN

It is very often interesting to start from a minimalist configuration with no package and no filesystem.

Re-use the existing minimalist configuration and promote it to a full defconfig.

Quoted 7 lines

This thus contains options that default to 'y', like the paranoid wrapper and busybox-show-others, as the defconfig is used by test-pkg too.

Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>

I'm not too sure of the value of this. Our defconfigs are meant to allow generating a working Linux system for a specific HW platform. This minimalist_defconfig would heavily deviate from this principle, and could confuse newcomers who want to build a "minimal" system.

I'd say this minimalist configuration is more of an internal thing, for advanced Buildroot developers, and we should keep it "hidden" where it is today.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 configs: introduce a minimalist defconfig

Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 6 lines · Yann E. MORIN

It is very often interesting to start from a minimalist configuration with no package and no filesystem.

Re-use the existing minimalist configuration and promote it to a full defconfig.

Quoted 7 lines

This thus contains options that default to 'y', like the paranoid wrapper and busybox-show-others, as the defconfig is used by test-pkg too.

Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>
Quoted 8 lines

I'm not too sure of the value of this. Our defconfigs are meant to allow generating a working Linux system for a specific HW platform. This minimalist_defconfig would heavily deviate from this principle, and could confuse newcomers who want to build a "minimal" system.

I'd say this minimalist configuration is more of an internal thing, for advanced Buildroot developers, and we should keep it "hidden" where it is today.

I agree. It is handy for doing quick builds when developing on Buildroot, but I also don't see how useful it is for users.

Signature · 1 line
Bye, Peter Korsgaard