mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
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>
This commit is contained in:
@@ -4,5 +4,5 @@ DESCRIPTION = "The cross-canadian GNU cc and gcc C compilers for ${TARGET_ARCH}
|
||||
PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
BPN = "gcc"
|
||||
|
||||
DEPENDS = "virtual/${HOST_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc gettext-nativesdk"
|
||||
DEPENDS = "virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc gettext"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ require gcc-cross-canadian.inc
|
||||
require gcc-configure-sdk.inc
|
||||
require gcc-package-sdk.inc
|
||||
|
||||
DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
||||
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
|
||||
DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc nativesdk-elfutils"
|
||||
RDEPENDS_${PN} += "nativesdk-mpfr nativesdk-libmpc nativesdk-elfutils"
|
||||
|
||||
SYSTEMHEADERS = "/usr/include"
|
||||
SYSTEMLIBS = "${target_base_libdir}/"
|
||||
|
||||
@@ -6,5 +6,5 @@ SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
|
||||
|
||||
GCCMULTILIB = "--disable-multilib"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc-nativesdk gettext-native"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/nativesdk-${TARGET_PREFIX}libc-for-gcc gettext-native"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/${TARGET_PREFIX}g++-crosssdk"
|
||||
|
||||
@@ -4,14 +4,11 @@ INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
|
||||
|
||||
PKGSUFFIX = ""
|
||||
PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
|
||||
|
||||
PACKAGES = "\
|
||||
${PN} \
|
||||
${PN}-dev \
|
||||
${PN}-dbg \
|
||||
libgcov${PKGSUFFIX}-dev \
|
||||
libgcov-dev \
|
||||
"
|
||||
|
||||
FILES_${PN} = "${base_libdir}/libgcc*.so.*"
|
||||
@@ -19,7 +16,7 @@ FILES_${PN}-dev = " \
|
||||
${base_libdir}/libgcc*.so \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/*crt* \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
|
||||
FILES_libgcov${PKGSUFFIX}-dev = " \
|
||||
FILES_libgcov-dev = " \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
|
||||
"
|
||||
FILES_${PN}-dbg += "${base_libdir}/.debug/"
|
||||
@@ -72,4 +69,4 @@ do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
|
||||
INSANE_SKIP_${PN}-dev = "staticdev"
|
||||
INSANE_SKIP_${MLPREFIX}libgcov${PKGSUFFIX}-dev = "staticdev"
|
||||
INSANE_SKIP_${MLPREFIX}libgcov-dev = "staticdev"
|
||||
|
||||
Reference in New Issue
Block a user