summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
l---------config/libc/eglibc-glibc-common.in1
-rw-r--r--config/libc/eglibc.in61
-rw-r--r--config/libc/glibc-eglibc-common.in69
-rw-r--r--config/libc/glibc.in63
4 files changed, 73 insertions, 121 deletions
diff --git a/config/libc/eglibc-glibc-common.in b/config/libc/eglibc-glibc-common.in
new file mode 120000
index 0000000..b1ac70d
--- /dev/null
+++ b/config/libc/eglibc-glibc-common.in
@@ -0,0 +1 @@
+glibc-eglibc-common.in \ No newline at end of file
diff --git a/config/libc/eglibc.in b/config/libc/eglibc.in
index ea93410..df9e782 100644
--- a/config/libc/eglibc.in
+++ b/config/libc/eglibc.in
@@ -69,63 +69,4 @@ config EGLIBC_CHECKOUT
Note that crosstool-NG will *not* update your working copy, you will
have to do that yourself.
-config LIBC_EGLIBC_EXTRA_CONFIG
- string
- prompt "eglibc extra config"
- default ""
- help
- Extra flags to pass onto ./configure when configuring eglibc.
-
- Eg.: --enable-static-nss
-
-config LIBC_EGLIBC_EXTRA_CFLAGS
- string
- prompt "eglibc extra target CFLAGS"
- default ""
- help
- Extra target CFLAGS to use when building eglibc.
-
-config LIBC_EXTRA_CC_ARGS
- string
- prompt "gcc extra flags"
- default ""
- help
- Extra flags to pass gcc when building eglibc.
-
- Seldom used, except for sparc64 which seems to need the flag -64
- to be passed onto gcc.
-
-config LIBC_EGLIBC_USE_PORTS
- bool
- prompt "Use the ports addon"
- default n
- help
- The ports addon contains some architecture ports that are not available
- in the official glibc distribution.
-
- For example, this is the case for ARM with glibc >= 2.4
-
- Say n only if you're sure that your architecture is in the official
- glibc distribution for your chosen version.
-
-config LIBC_ADDONS
- bool
- prompt "Pass extra addons list"
- default n
- help
- If you say Y here, you'll be able to give the list of addons you want to
- include in your C library.
-
-config LIBC_ADDONS_LIST
- string
- prompt "Extra addons"
- default ""
- depends on LIBC_ADDONS
- help
- Extra addons to include in eglibc. Space separated list.
-
- You need to specify neither linuxthreads nor nptl, as they are added
- automagically for you depending on the threading model you choosed
- earlier.
-
- Eg.: crypt (for very old glibces)
+source config/libc/eglibc-glibc-common.in
diff --git a/config/libc/glibc-eglibc-common.in b/config/libc/glibc-eglibc-common.in
new file mode 100644
index 0000000..cba9715
--- /dev/null
+++ b/config/libc/glibc-eglibc-common.in
@@ -0,0 +1,69 @@
+# This file contains the common configuration options
+# that apply to both glibc and eglibc.
+#
+# Please note:
+# the symlink is a hack around the fact that mconf can not parse
+# the same file more than once, and errors out if it is the case.
+# If mconf is updated to accept multiple inclusion of the same
+# file, then the symlink can go (and the includers be updated).
+
+config LIBC_GLIBC_EXTRA_CONFIG
+ string
+ prompt "extra config"
+ default ""
+ help
+ Extra flags to pass onto ./configure when configuring.
+
+ Eg.: --enable-static-nss
+
+config LIBC_GLIBC_EXTRA_CFLAGS
+ string
+ prompt "extra target CFLAGS"
+ default ""
+ help
+ Extra target CFLAGS to use when building.
+
+config LIBC_EXTRA_CC_ARGS
+ string
+ prompt "gcc extra flags"
+ default ""
+ help
+ Extra flags to pass gcc when building.
+
+ Seldom used, except for sparc64 which seems to need the flag -64
+ to be passed onto gcc.
+
+config LIBC_GLIBC_USE_PORTS
+ bool
+ prompt "Use the ports addon"
+ default n
+ help
+ The ports addon contains some architecture ports that are not available
+ in the official distribution.
+
+ For example, this is the case for ARM with for 2.4 and above.
+
+ Say n only if you're sure that your architecture is in the official
+ distribution for your chosen version.
+
+config LIBC_ADDONS
+ bool
+ prompt "Pass extra addons list"
+ default n
+ help
+ If you say Y here, you'll be able to give the list of addons you want to
+ include in your C library.
+
+config LIBC_ADDONS_LIST
+ string
+ prompt "Extra addons"
+ default ""
+ depends on LIBC_ADDONS
+ help
+ Extra addons to include. Space separated list.
+
+ You need to specify neither linuxthreads nor nptl, as they are added
+ automagically for you depending on the threading model you choosed
+ earlier.
+
+ Eg.: crypt (for very old libces)
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index 4cdc4b7..6dc9f5c 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -58,36 +58,10 @@ config LIBC_VERSION
# CT_INSERT_VERSION_STRING_ABOVE
# Don't remove above line!
-config LIBC_GLIBC_EXTRA_CONFIG
- string
- prompt "glibc extra config"
- default ""
- help
- Extra flags to pass onto ./configure when configuring glibc.
-
- Eg.: --enable-static-nss
-
-config LIBC_GLIBC_EXTRA_CFLAGS
- string
- prompt "glibc extra target CFLAGS"
- default ""
- help
- Extra target CFLAGS to use when building glibc.
-
-config LIBC_EXTRA_CC_ARGS
- string
- prompt "gcc extra flags"
- default ""
- help
- Extra flags to pass gcc when building glibc.
-
- Seldom used, except for sparc64 which seems to need the flag -64
- to be passed onto gcc.
-
# Please note: This is not used for now (no sh support).
config LIBC_GLIBC_CONFIGPARMS
string
- prompt "Extra config params (READ HELP)"
+# prompt "Extra config params (READ HELP)"
default "" if ARCH != "sh3" && ARCH != "sh4"
default "no-z-defs=yes" if ARCH = "sh3" || ARCH = "sh4"
help
@@ -100,37 +74,4 @@ config LIBC_GLIBC_CONFIGPARMS
Note: this is awkward, doesn't work well if you need more than one
line in configparms
-config LIBC_GLIBC_USE_PORTS
- bool
- prompt "Use the ports addon"
- default n
- help
- The ports addon contains some architecture ports that are not available
- in the official glibc distribution.
-
- For example, this is the case for ARM with glibc >= 2.4
-
- Say n only if you're sure that your architecture is in the official
- glibc distribution for your chosen version.
-
-config LIBC_ADDONS
- bool
- prompt "Pass extra addons list"
- default n
- help
- If you say Y here, you'll be able to give the list of addons you want to
- include in your C library.
-
-config LIBC_ADDONS_LIST
- string
- prompt "Extra addons"
- default ""
- depends on LIBC_ADDONS
- help
- Extra addons to include in glibc. Space separated list.
-
- You need to specify neither linuxthreads nor nptl, as they are added
- automagically for you depending on the threading model you choosed
- earlier.
-
- Eg.: crypt (for very old glibces)
+source config/libc/glibc-eglibc-common.in