Skip to content

core/pkg-kconfig: Fix .config generation

Romain Izard buildroot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v3 posting 2/20 of 3 patches 0 repliesSuperseded
  3. v3 posting 1/23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded

Changelog from the cover letter

v1: creation as a package option
v2: try 'make oldnoconfig' before 'yes "" | make oldconfig' and remove
the option
v3: Remove useless $(call ...), and factorize the make command
v4: Fix typo in the commit message

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3core/pkg-kconfig: Factorize make commandspackage/pkg-kconfig.mk+6 -62 replies
2/3core/pkg-kconfig: Do not use $(call ...) without parameterspackage/pkg-kconfig.mk+2 -22 replies
3/3core/pkg-kconfig: Use oldnoconfig when possiblepackage/pkg-kconfig.mk+14 -42 replies
3/3core/pkg-kconfig: Use oldnoconfig when possible+0 -02 replies
3/3core/pkg-kconfig: Use oldnoconfig when possible+0 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchArnout Vandecappelle (Essensium/Mind)Yann E. MORIN
1/3R-b
2/3R-b
3/3R-b
3/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Buildroot] [PATCH v4 0/3] core/pkg-kconfig: Fix .config generation

To use an existing file as .config for a project, it needs to be validated with 'make oldconfig'. If the file does not match all the configuration entries of the project, the user will be prompted to select the values for the new entries.

Historically, 'yes "" | make oldconfig' was used to silently select the default values for new entries. But this does not work well with the Linux kernel, as it will not select the correct option when configuring tristate choice entries.

The Linux kernel has added a 'oldnoconfig' target, since renamed 'olddefconfig', that will work correctly, but this target does not exist in all projects that rely on the kconfig workflow.

Update buildroot to use 'oldnoconfig' when available, and fallback to the default method otherwise.

Changelog:
v1: creation as a package option
v2: try 'make oldnoconfig' before 'yes "" | make oldconfig' and remove
the option
v3: Remove useless $(call ...), and factorize the make command
v4: Fix typo in the commit message

Romain Izard (3):
core/pkg-kconfig: Factorize make commands core/pkg-kconfig: Do not use $(call ...) without parameters core/pkg-kconfig: Use oldnoconfig when possible

 package/pkg-kconfig.mk | 30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)
Signature · 1 line
2.5.0