Skip to content

RFC Factor Kconfig's prefix and package name

Arnaud Lacombe linux-kbuild 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kbuild: genericizes package namescripts/kconfig/conf.c scripts/kconfig/confdata.c scripts/kconfig/gconf.c +6 more+49 -464 replies
2/2kbuild: genericizes kbuild's config prefixscripts/kconfig/confdata.c scripts/kconfig/mconf.c scripts/kconfig/menu.c +1 more+36 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] Factor Kconfig's prefix and package name

Hi,

Many projects are using Kconfig's derivate as their configuration UI. Some of these projects change the default "CONFIG_" prefix for something else. It obliges them to dig in the sources to find and replace all occurences and associated constant. Same goes for package name where when the project ship a C library, messages about a kernel may not be welcome. OOTH, a project may want to limit its changes to be able to re-sync with the kernel's Kconfig and benefits from latest features and bug fixes.

The two next patches factorizes Kconfig's prefix and package name to generic macros defined in `scripts/kconfig/lkc.h'. This allow projects to easily tune Kconfig for their need with trivial source modification.

There may have been similar patches in the past, in which case this message can be silently discarded :)

any comments appreciated !

- Arnaud

Arnaud Lacombe (2):
kbuild: genericizes package name
kbuild: genericizes kbuild's config prefix

 scripts/kconfig/conf.c              |   12 ++++----
 scripts/kconfig/confdata.c          |   48 +++++++++++++++++-----------------
 scripts/kconfig/gconf.c             |    4 +-
 scripts/kconfig/lkc.h               |    7 ++++-
 scripts/kconfig/mconf.c             |   44 ++++++++++++++++----------------
 scripts/kconfig/menu.c              |    2 +-
 scripts/kconfig/nconf.c             |   40 ++++++++++++++---------------
 scripts/kconfig/qconf.cc            |    6 ++--
 scripts/kconfig/zconf.tab.c_shipped |    2 +-
 scripts/kconfig/zconf.y             |    2 +-
 10 files changed, 85 insertions(+), 82 deletions(-)
Signature · 1 line
1.7.2.30.gc37d7.dirty