[oe] (e)glibc-package: enable binary locale generation for powerpc

Tom Rini trini at embeddedalley.com
Sat May 30 22:24:20 UTC 2009


On Tue, May 19, 2009 at 11:04:38PM -0000, Roman Khimov wrote:

> It works there, so add to whitelist.

Acked-by: Tom Rini <trini at embeddedalley.com>

(And pushed just now, forgot to Ackby, wait for patchwork then push).

> 
> ---
> recipes/eglibc/eglibc-package.bbclass |    4 +++-
>  recipes/glibc/glibc-package.bbclass   |    6 ++++--
>  2 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes/eglibc/eglibc-package.bbclass b/recipes/eglibc/eglibc-package.bbclass
> index 22ff52b..f2acc96 100644
> --- a/recipes/eglibc/eglibc-package.bbclass
> +++ b/recipes/eglibc/eglibc-package.bbclass
> @@ -24,7 +24,7 @@ python __anonymous () {
>  ENABLE_BINARY_LOCALE_GENERATION ?= "0"
>  
>  # BINARY_LOCALE_ARCHES is a space separated list of regular expressions
> -BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64"
> +BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc"
>  
>  PACKAGES = "eglibc-dbg eglibc catchsegv sln nscd ldd localedef eglibc-utils eglibc-dev eglibc-doc eglibc-locale libsegfault eglibc-extra-nss eglibc-thread-db eglibc-pcprofile"
>  PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-* glibc-binary-localedata-* eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* locale-base-*"
> @@ -289,6 +289,8 @@ python package_do_split_gconvs () {
>  		target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
>  		if target_arch in ("i486", "i586", "i686"):
>  			target_arch = "i386"
> +		elif target_arch == "powerpc":
> +			target_arch = "ppc"
>  		kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
>  		if kernel_ver is None:
>  			qemu = "qemu-%s  -s 1048576" % target_arch
> diff --git a/recipes/glibc/glibc-package.bbclass b/recipes/glibc/glibc-package.bbclass
> index ac7e0f3..78738c2 100644
> --- a/recipes/glibc/glibc-package.bbclass
> +++ b/recipes/glibc/glibc-package.bbclass
> @@ -24,7 +24,7 @@ python __anonymous () {
>  ENABLE_BINARY_LOCALE_GENERATION ?= "0"
>  
>  # BINARY_LOCALE_ARCHES is a space separated list of regular expressions
> -BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64"
> +BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc"
>  
>  # Set this to zero if you don't want ldconfig in the output package
>  USE_LDCONFIG ?= "1"
> @@ -250,7 +250,9 @@ python package_do_split_gconvs () {
>  	def output_locale_binary(name, locale, encoding):
>  		target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
>  		if target_arch in ("i486", "i586", "i686"):
> -		   target_arch = "i386"
> +			target_arch = "i386"
> +		elif target_arch == "powerpc":
> +			target_arch = "ppc"
>  
>  		kernel_ver = bb.data.getVar("OLDEST_KERNEL", d, 1)
>  		if kernel_ver is None:
-- 
Tom Rini




More information about the Openembedded-devel mailing list