[oe-commits] Khem Raj : eglibc-options.inc: Account of DISTRO_FEATURES_EGLIBC being not defined.

git version control git at git.openembedded.org
Wed Jan 12 22:35:50 UTC 2011


Module: openembedded.git
Branch: master
Commit: d72fd8495db50076a30aa79f17f1fb072aeff79a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d72fd8495db50076a30aa79f17f1fb072aeff79a

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Jan 12 14:32:10 2011 -0800

eglibc-options.inc: Account of DISTRO_FEATURES_EGLIBC being not defined.

* Thanks Bernhard

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/eglibc/eglibc-options.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/eglibc/eglibc-options.inc b/recipes/eglibc/eglibc-options.inc
index 5e21d3c..0af0aab 100644
--- a/recipes/eglibc/eglibc-options.inc
+++ b/recipes/eglibc/eglibc-options.inc
@@ -9,7 +9,7 @@ def eglibc_cfg(feature, features, tokens, cnf ):
 # Map distro features to eglibc options settings
 def features_to_eglibc_settings(d):
         cnf = ([])
-        distro_features = bb.data.getVar('DISTRO_FEATURES_EGLIBC', d, True).split()
+        distro_features = (bb.data.getVar('DISTRO_FEATURES_EGLIBC', d, True) or '').split() 
         eglibc_cfg('ipv6',      distro_features, 'OPTION_EGLIBC_ADVANCED_INET6', cnf)
         eglibc_cfg('backtrace',      distro_features, 'OPTION_EGLIBC_BACKTRACE', cnf)
         eglibc_cfg('big-macros',      distro_features, 'OPTION_EGLIBC_BIG_MACROS', cnf)





More information about the Openembedded-commits mailing list