summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-locale.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-22 17:43:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-02 05:52:06 -0700
commitad23395cd1f6c0cbfcc6980b6071d589f9f6cde0 (patch)
tree9965e27a93c73af1ccf9cdb24c588faabc90370a /meta/recipes-core/eglibc/eglibc-locale.inc
parent58a8a38aa294edb74dde70d70a7e5faf49444b78 (diff)
downloadpoky-ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0.tar.gz
nativesdk: Switch to using nativesdk as a prefix, not a suffix
As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. (From OE-Core rev: 81813c0e322dc04ce4b069117188d8a54dfddb8c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-locale.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-locale.inc15
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index d6bdcb5f2e..296afdef6e 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -17,7 +17,7 @@ do_compile[noexec] = "1"
17 17
18# default to disabled 18# default to disabled
19ENABLE_BINARY_LOCALE_GENERATION ?= "0" 19ENABLE_BINARY_LOCALE_GENERATION ?= "0"
20ENABLE_BINARY_LOCALE_GENERATION_pn-eglibc-locale-nativesdk = "0" 20ENABLE_BINARY_LOCALE_GENERATION_pn-nativesdk-eglibc-locale = "0"
21 21
22#enable locale generation on these arches 22#enable locale generation on these arches
23# BINARY_LOCALE_ARCHES is a space separated list of regular expressions 23# BINARY_LOCALE_ARCHES is a space separated list of regular expressions
@@ -29,16 +29,13 @@ LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1"
29 29
30PR = "r22" 30PR = "r22"
31 31
32PKGSUFFIX = "" 32PROVIDES = "virtual/libc-locale"
33PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
34 33
35PROVIDES = "virtual/libc-locale${PKGSUFFIX}" 34PACKAGES = "localedef ${PN}-dbg"
36
37PACKAGES = "localedef${PKGSUFFIX} ${PN}-dbg"
38 35
39PACKAGES_DYNAMIC = "locale-base-* \ 36PACKAGES_DYNAMIC = "locale-base-* \
40 eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \ 37 eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \
41 glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*" 38 glibc-gconv-* glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*"
42 39
43# Create a eglibc-binaries package 40# Create a eglibc-binaries package
44ALLOW_EMPTY_${BPN}-binaries = "1" 41ALLOW_EMPTY_${BPN}-binaries = "1"
@@ -67,7 +64,7 @@ DESCRIPTION_localedef = "eglibc: compile locale definition files"
67# Explicitly add ${MLPREFIX} for FILES_eglibc-gconv. 64# Explicitly add ${MLPREFIX} for FILES_eglibc-gconv.
68FILES_${MLPREFIX}eglibc-gconv = "${libdir}/gconv/*" 65FILES_${MLPREFIX}eglibc-gconv = "${libdir}/gconv/*"
69FILES_${PN}-dbg += "${libdir}/gconv/.debug/*" 66FILES_${PN}-dbg += "${libdir}/gconv/.debug/*"
70FILES_localedef${PKGSUFFIX} = "${bindir}/localedef" 67FILES_localedef = "${bindir}/localedef"
71 68
72LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}" 69LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}"
73 70
@@ -93,6 +90,6 @@ do_install () {
93 90
94inherit libc-package 91inherit libc-package
95 92
96do_install[depends] += "virtual/${MLPREFIX}libc${PKGSUFFIX}:do_populate_sysroot" 93do_install[depends] += "virtual/${MLPREFIX}libc:do_populate_sysroot"
97 94
98BBCLASSEXTEND = "nativesdk" 95BBCLASSEXTEND = "nativesdk"