summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-04-23 06:51:05 (GMT)
committerAlexey Neyman <stilor@att.net>2017-04-23 07:24:41 (GMT)
commit2f286ce5ab5f9938e504549726bf25acc5bdfe4b (patch)
tree62c4d52f6fcaddbf35bd66e84d618fdbaa335e3f /maintainer
parentf4c94242d450eb84b3f6fb533e86a6eaacee3152 (diff)
Retire BACKEND stuff
... it is possible to just not set it in the configuration, why force it? It just increases the complexity in Kconfig. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rwxr-xr-xmaintainer/gen-kconfig.sh52
1 files changed, 16 insertions, 36 deletions
diff --git a/maintainer/gen-kconfig.sh b/maintainer/gen-kconfig.sh
index 4cb6567..364844d 100755
--- a/maintainer/gen-kconfig.sh
+++ b/maintainer/gen-kconfig.sh
@@ -10,12 +10,10 @@ grep=${GREP:-grep}
#
# Usage:
# generate a choice:
-# gen_choice <out-file> <label> <config-prefix> <base-dir> \
-# <conditionals> entry [entry...]
+# gen_choice <out-file> <label> <config-prefix> <base-dir>
#
# generate a menuconfig:
-# gen_menu <out-file> <label> <config-prefix> <base-dir> \
-# entry [entry...]
+# gen_menu <out-file> <label> <config-prefix> <base-dir>
#
# where:
# out-file
@@ -35,18 +33,6 @@ grep=${GREP:-grep}
# base directory containing config files
# eg. config/arch, config/kernel...
#
-# conditionals (valid only for choice)
-# generate backend conditionals if Y/y, don't if anything else
-# if 'Y' (or 'y'), a dependency on the backen mode will be added
-# to each entry
-#
-# entry [entry...]
-# a list of entry/ies toadd to the choice/menuconfig
-# eg.:
-# arm mips sh x86...
-# linux cygwin mingw32 solaris...
-# ...
-#
# Helper: find the base names of all *.in files in a given directory
get_components() {
@@ -66,7 +52,6 @@ gen_choice() {
local label="${2}"
local cfg_prefix="${3}"
local base_dir="${4}"
- local cond="${5}"
local file entry _entry
# Generate the part-1
@@ -84,9 +69,6 @@ gen_choice() {
printf 'config %s_%s\n' "${cfg_prefix}" "${_entry}"
printf ' bool\n'
printf ' prompt "%s"\n' "${entry}"
- if [ "${cond}" = "Y" -o "${cond}" = "y" ]; then
- printf ' depends on %s_%s_AVAILABLE\n' "${cfg_prefix}" "${_entry}"
- fi
"${sed}" -r -e '/^## depends on /!d; s/^## / /;' ${file} 2>/dev/null
"${sed}" -r -e '/^## select /!d; s/^## / /;' ${file} 2>/dev/null
if "${grep}" -E '^## help' ${file} >/dev/null 2>&1; then
@@ -97,21 +79,19 @@ gen_choice() {
done
printf 'endchoice\n'
+ printf '\n'
+ printf 'config %s\n' "${cfg_prefix}"
for entry in `get_components ${base_dir}`; do
file="${base_dir}/${entry}.in"
_entry=$(printf '%s\n' "${entry}" |"${sed}" -r -s -e 's/[-.+]/_/g;')
- printf '\n'
- if [ "${cond}" = "Y" -o "${cond}" = "y" ]; then
- printf 'config %s_%s_AVAILABLE\n' "${cfg_prefix}" "${_entry}"
- printf ' bool\n'
- printf ' default y if'
- printf ' BACKEND_%s = "%s"' "${cfg_prefix}" "${entry}"
- printf ' || BACKEND_%s = ""' "${cfg_prefix}"
- printf ' || ! BACKEND\n'
- fi
- printf 'if %s_%s\n' "${cfg_prefix}" "${_entry}"
- printf 'config %s\n' "${cfg_prefix}"
printf ' default "%s" if %s_%s\n' "${entry}" "${cfg_prefix}" "${_entry}"
+ done
+
+ printf '\n'
+ for entry in `get_components ${base_dir}`; do
+ file="${base_dir}/${entry}.in"
+ _entry=$(printf '%s\n' "${entry}" |"${sed}" -r -s -e 's/[-.+]/_/g;')
+ printf 'if %s_%s\n' "${cfg_prefix}" "${_entry}"
printf 'source "%s"\n' "${file}"
printf 'endif\n'
done
@@ -171,10 +151,10 @@ gen_menu() {
}
mkdir -p config/gen
-gen_choice config/gen/arch.in "Target Architecture" "ARCH" "config/arch" "Y"
-gen_choice config/gen/kernel.in "Target OS" "KERNEL" "config/kernel" "Y"
-gen_choice config/gen/cc.in "Compiler" "CC" "config/cc" "N"
-gen_choice config/gen/binutils.in "Binutils" "BINUTILS" "config/binutils" "N"
-gen_choice config/gen/libc.in "C library" "LIBC" "config/libc" "Y"
+gen_choice config/gen/arch.in "Target Architecture" "ARCH" "config/arch"
+gen_choice config/gen/kernel.in "Target OS" "KERNEL" "config/kernel"
+gen_choice config/gen/cc.in "Compiler" "CC" "config/cc"
+gen_choice config/gen/binutils.in "Binutils" "BINUTILS" "config/binutils"
+gen_choice config/gen/libc.in "C library" "LIBC" "config/libc"
gen_menu config/gen/debug.in "Debug facilities" "DEBUG" "config/debug"
gen_menu config/gen/companion_tools.in "Companion tools" "COMP_TOOLS" "config/companion_tools"