[PATCH 0/3 v3] kconfig: get the CONFIG_ prefix from the environment

From: Yann E. MORIN
Date: Fri Oct 19 2012 - 19:06:42 EST


Hello All!

This little patch series allows one to override the CONFIG_ prefix at
runtime, without the need to rebuild the frontends.

This will be useful to have, to share the same kconfig frontends between
different projects that may use different prefix. For example:
- busybox and uClibc use the standard 'CONFIG_'
- crosstool-NG uses 'CT_'
- PTXdist uses 'PTXCONF_'
- buildroot does not use a prefix at all
- and so on...

[PATCH 1/3] kconfig: remove CONFIG_ from string constants
[PATCH 2/3] kconfig: add a function to get the CONFIG_ prefix
[PATCH 3/3] kconfig: get CONFIG_ prefix from environment

This is part of my efforts to get a generic package that encapsulates the
kconfig frontends and parser into a standalone package, to make it easy
for third-party projects to easily sync (and ultimately share) their
kconfig infrastructure:
kconfig-frontends
http://ymorin.is-a-geek.org/projects/kconfig-frontends

Changes in v3:
- simplify the CONFIG_prefix() function (Michal)
- rebase on-top master to date
Changes in v2:
- call getenv() only once
- don't touch code when not strictly neeeded (don't fold not-so-long lines)
- rebase on-top 3.7-rc1

Regards,
Yann E. MORIN.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/