]> 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>
Wed, 31 Dec 2014 10:17:39 +0000 (10:17 +0000)
commitbce598f21ee9f21228766d4bb19fef21695981da
tree573135c715cae74514f693c256a67f7f8e1d92ce
parent1d2ab458335e3a12129c08dc81fbaf41198bdfa0
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]

(From OE-Core rev: 7f1bdc331304a61a4836a5752bca210450b6c5b5)

Signed-off-by: Juro Bystricky <jurobystricky@hotmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch
meta/recipes-core/glibc/glibc/option-groups.patch