Skip to contentSkip to conversation

eglibc: Configure based on DISTRO_FEATURES_EGLIBC

PATCH Superseded Khem Raj 2 participants 3 messages Jan 12, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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
index f0ef802..1e3b971 100644
@@ -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
index daab0f8..75fd8e3 100644
@@ -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
index c9765dd..02209eb 100644
@@ -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
#1 lore raw

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

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
index f0ef802..1e3b971 100644
@@ -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

author
#2 lore raw
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

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
index f0ef802..1e3b971 100644
@@ -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