eglibc: Configure based on DISTRO_FEATURES_EGLIBC
PATCH 1/1 eglibc: Configure based on DISTRO_FEATURES_EGLIBC
* Let distros decide what features to enable if not selected it will turn off all possible knobs
* Enable all knobs for angstrom and distros based on sane-toolchain
--- conf/distro/include/angstrom-eglibc.inc | 8 ++- conf/distro/include/sane-toolchain-eglibc.inc | 8 ++ recipes/eglibc/eglibc-options.inc | 89 +++++++++++++------------ recipes/eglibc/eglibc.inc | 4 +- 4 files changed, 62 insertions(+), 47 deletions(-)
conf/distro/include/angstrom-eglibc.inc +7 -1
@@ -26,4 +26,10 @@ BUILD_OPTIMIZATION_sparc = "-O2" TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel', 'mips64', 'mips64el']]}" CXXFLAGS += "-fvisibility-inlines-hidden" - +DISTRO_FEATURES_EGLIBC ?= "ipv6 backtrace big-macros bsd cxx-tests catgets \ + charsets crypt crypt-ufc db-aliases envz fcvt fmtmsg \ + fstab ftraverse getlogin idn inet inet-anl libm \ + libm-big locales locale-code memusage nis nsswitch \ + rcmd rtld-debug spawn streams sunrpc utmp utmpx \ + wordexp posix-clang-wchar posix-regexp \ + posix-regexp-glibc posix-wchar-io"
conf/distro/include/sane-toolchain-eglibc.inc +8 -0
@@ -24,3 +24,11 @@ BUILD_OPTIMIZATION_sparc = "-O2" TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel', 'mips64', 'mips64el']]}" CXXFLAGS += "-fvisibility-inlines-hidden" + +DISTRO_FEATURES_EGLIBC ?= "ipv6 backtrace big-macros bsd cxx-tests catgets \ + charsets crypt crypt-ufc db-aliases envz fcvt fmtmsg \ + fstab ftraverse getlogin idn inet inet-anl libm \ + libm-big locales locale-code memusage nis nsswitch \ + rcmd rtld-debug spawn streams sunrpc utmp utmpx \ + wordexp posix-clang-wchar posix-regexp \ + posix-regexp-glibc posix-wchar-io"
recipes/eglibc/eglibc-options.inc +45 -44
95 lines not on this page · raw message
recipes/eglibc/eglibc.inc +2 -2
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.eglibc.org/home" SECTION = "libs" PRIORITY = "required" LICENSE = "LGPL" -INC_PR = "r20" +INC_PR = "r21" # nptl needs unwind support in gcc, which can't be built without glibc. DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers" #this leads to circular deps, so lets not add it yet
@@ -44,5 +44,5 @@ do_move_ports() { } OE_FEATURES := "${@features_to_eglibc_settings(d)}" do_configure_prepend() { - echo '${OE_FEATURES}' > ${S}/option-groups.config + echo '${OE_FEATURES}' > ${B}/option-groups.config }
Signature · 1 line
1.7.2.3
Op 12 jan 2011, om 09:48 heeft Khem Raj het volgende geschreven:
Quoted 8 lines
* Let distros decide what features to enable if not selected it will turn off all possible knobs
* Enable all knobs for angstrom and distros based on sane-toolchain
Signed-off-by Khem Raj <[email protected]>
That email address will stop to exist soon :)
Quoted 16 lines
---
conf/distro/include/angstrom-eglibc.inc | 8 ++- conf/distro/include/sane-toolchain-eglibc.inc | 8 ++ recipes/eglibc/eglibc-options.inc | 89 +++++++++++++------------ recipes/eglibc/eglibc.inc | 4 +- 4 files changed, 62 insertions(+), 47 deletions(-)conf/distro/include/angstrom-eglibc.inc +0
-0@@ -26,4 +26,10 @@ BUILD_OPTIMIZATION_sparc = "-O2"
TARGET_LINK_HASH_STYLE= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"CXXFLAGS += "-fvisibility-inlines-hidden"
conf/distro/include/angstrom-eglibc.inc BUILD_OPTIMIZATION_sparc = "-O2" · line 35
Quoted 8 lines
conf/distro/include/angstrom-eglibc.inc +7
-1- +DISTRO_FEATURES_EGLIBC ?= "ipv6 backtrace big-macros bsd cxx-tests catgets \ + charsets crypt crypt-ufc db-aliases envz fcvt fmtmsg \ + fstab ftraverse getlogin idn inet inet-anl libm \ + libm-big locales locale-code memusage nis nsswitch \ + rcmd rtld-debug spawn streams sunrpc utmp utmpx \ + wordexp posix-clang-wchar posix-regexp \ + posix-regexp-glibc posix-wchar-io"
Can we double-soft assign (??=) it in eglibc.inc as well?
regards,
Koen
Quoted 6 lines · Koen Kooi
Op 12 jan 2011, om 09:48 heeft Khem Raj het volgende geschreven:
Quoted 3 lines
* Let distros decide what features to enable if not selected it will turn off all possible knobs
Quoted 7 lines
Quoted 5 lines
* Enable all knobs for angstrom and distros based on sane-toolchain
Signed-off-by Khem Raj<[email protected]>That email address will stop to exist soon :)
ok
Quoted 16 lines
Quoted 16 lines
---
conf/distro/include/angstrom-eglibc.inc | 8 ++- conf/distro/include/sane-toolchain-eglibc.inc | 8 ++ recipes/eglibc/eglibc-options.inc | 89 +++++++++++++------------ recipes/eglibc/eglibc.inc | 4 +- 4 files changed, 62 insertions(+), 47 deletions(-)conf/distro/include/angstrom-eglibc.inc +0
-0@@ -26,4 +26,10 @@ BUILD_OPTIMIZATION_sparc = "-O2"
TARGET_LINK_HASH_STYLE= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel', 'mips64', 'mips64el']]}"
Quoted 11 lines
conf/distro/include/angstrom-eglibc.inc BUILD_OPTIMIZATION_sparc = "-O2" · line 35
Quoted 9 lines
CXXFLAGS += "-fvisibility-inlines-hidden"
conf/distro/include/angstrom-eglibc.inc +7
-1- +DISTRO_FEATURES_EGLIBC ?= "ipv6 backtrace big-macros bsd cxx-tests catgets \ + charsets crypt crypt-ufc db-aliases envz fcvt fmtmsg \ + fstab ftraverse getlogin idn inet inet-anl libm \ + libm-big locales locale-code memusage nis nsswitch \ + rcmd rtld-debug spawn streams sunrpc utmp utmpx \ + wordexp posix-clang-wchar posix-regexp \ + posix-regexp-glibc posix-wchar-io"Can we double-soft assign (??=) it in eglibc.inc as well?
hmmm could be done. infact then we dont need to modify angstrom-eglibc.inc and sane-toolchain-eglibc.inc just having it in eglibc.inc will feed all the beasts.
Quoted 4 lines
regards,
Koen