]> code.ossystems Code Review - openembedded-core.git/commit
eglibc: modified option-groups.h generation
authorJuro Bystricky <jurobystricky@hotmail.com>
Thu, 27 Nov 2014 18:32:59 +0000 (10:32 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Dec 2014 17:42:47 +0000 (17:42 +0000)
commit7f1bdc331304a61a4836a5752bca210450b6c5b5
tree9ec5822ae1ba2198236c9377227c1214d5384951
parent9e4b25893cc8e15e390b8f25545416ef431f0b88
eglibc: modified option-groups.h generation

option-groups.h only explicitely #defines options that are enabled.
EGLIBC options are typically pre-processed under the assumption that if
an option is not explicitely defined then it evaluates as 0.
This assumption is correct, but it generates a compiler warning
message each time an undefined symbol is being evaluated.
In order to remove the warnings, each EGLIBC option is now defined
as 1 if the option is enabled or as 0 otherwise.
The consequence is we cannot use #ifdef OPTION_XXX when evaluating
the option, we must always use #if OPTION_XXX.

[YOCTO #7001]

Signed-off-by: Juro Bystricky <jurobystricky@hotmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch
meta/recipes-core/glibc/glibc/option-groups.patch