From ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 22 Dec 2011 17:43:33 +0000 Subject: 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 --- meta/recipes-core/eglibc/eglibc-locale.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'meta/recipes-core/eglibc/eglibc-locale.inc') 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" # default to disabled ENABLE_BINARY_LOCALE_GENERATION ?= "0" -ENABLE_BINARY_LOCALE_GENERATION_pn-eglibc-locale-nativesdk = "0" +ENABLE_BINARY_LOCALE_GENERATION_pn-nativesdk-eglibc-locale = "0" #enable locale generation on these arches # BINARY_LOCALE_ARCHES is a space separated list of regular expressions @@ -29,16 +29,13 @@ LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1" PR = "r22" -PKGSUFFIX = "" -PKGSUFFIX_virtclass-nativesdk = "-nativesdk" +PROVIDES = "virtual/libc-locale" -PROVIDES = "virtual/libc-locale${PKGSUFFIX}" - -PACKAGES = "localedef${PKGSUFFIX} ${PN}-dbg" +PACKAGES = "localedef ${PN}-dbg" PACKAGES_DYNAMIC = "locale-base-* \ eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \ - glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*" + glibc-gconv-* glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*" # Create a eglibc-binaries package ALLOW_EMPTY_${BPN}-binaries = "1" @@ -67,7 +64,7 @@ DESCRIPTION_localedef = "eglibc: compile locale definition files" # Explicitly add ${MLPREFIX} for FILES_eglibc-gconv. FILES_${MLPREFIX}eglibc-gconv = "${libdir}/gconv/*" FILES_${PN}-dbg += "${libdir}/gconv/.debug/*" -FILES_localedef${PKGSUFFIX} = "${bindir}/localedef" +FILES_localedef = "${bindir}/localedef" LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}" @@ -93,6 +90,6 @@ do_install () { inherit libc-package -do_install[depends] += "virtual/${MLPREFIX}libc${PKGSUFFIX}:do_populate_sysroot" +do_install[depends] += "virtual/${MLPREFIX}libc:do_populate_sysroot" BBCLASSEXTEND = "nativesdk" -- cgit v1.2.3-54-g00ecf