mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)
The idea of the base class dependency is to say "yes, I need a C cross compiler" and this was never meant to be gcc specific. Looking at the codebase, whilst we code triplets into this, it does overcomplicate things as there are only ever limited, "target", "sdk" and the class extended versions like mutlilib. After much thought, we can simplify this to virtual/cross-cc and virtual/nativesdk-cross-cc. This lets us remove the "gcc" specific element as well as removing the over complicated triplet usage. At the same time, change the much less widely used "g++" variant to "c++" for similar reasons and remove the triplet from virtual/XXX-binutils too. Backwards compatibility mappings could be left but are just going to confuse things in future so we'll just require users to update. This simplification, whilst disruptive for any toolchain focused layers, will make improved toolchain selection in the future much easier. Since we no longer have overlapping variables, some code for that can just be removed. The class extension code does need to start remapping some variables but not the crosssdk target recipe names. This patch is in two pieces, this one handles the renaming with the functional changes separate in a second for easier review even if this breaks bisection. (From OE-Core rev: 4ccc3bc8266c327bcc18c9a3faf7536210dfb9f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
01c3354325
commit
90e0a0f7f4
|
@ -48,7 +48,7 @@ def get_base_dep(d):
|
|||
return ""
|
||||
return "${BASE_DEFAULT_DEPS}"
|
||||
|
||||
BASE_DEFAULT_DEPS = "virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}compilerlibs virtual/libc"
|
||||
BASE_DEFAULT_DEPS = "virtual/cross-cc virtual/compilerlibs virtual/libc"
|
||||
|
||||
BASEDEPENDS = ""
|
||||
BASEDEPENDS:class-target = "${@get_base_dep(d)}"
|
||||
|
@ -312,16 +312,6 @@ python base_eventhandler() {
|
|||
if statusheader:
|
||||
bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines)))
|
||||
|
||||
# This code is to silence warnings where the SDK variables overwrite the
|
||||
# target ones and we'd see duplicate key names overwriting each other
|
||||
# for various PREFERRED_PROVIDERS
|
||||
if isinstance(e, bb.event.RecipePreFinalise):
|
||||
if d.getVar("TARGET_PREFIX") == d.getVar("SDK_PREFIX"):
|
||||
d.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils")
|
||||
d.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc")
|
||||
d.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++")
|
||||
d.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs")
|
||||
|
||||
if isinstance(e, bb.event.RecipeParsed):
|
||||
#
|
||||
# If we have multiple providers of virtual/X and a PREFERRED_PROVIDER_virtual/X is set
|
||||
|
|
|
@ -126,8 +126,8 @@ do_populate_sysroot[vardeps] += "${SYSROOT_PREPROCESS_FUNCS}"
|
|||
do_populate_sysroot[vardepsexclude] += "BB_MULTI_PROVIDER_ALLOWED"
|
||||
|
||||
POPULATESYSROOTDEPS = ""
|
||||
POPULATESYSROOTDEPS:class-target = "virtual/${HOST_PREFIX}binutils:do_populate_sysroot"
|
||||
POPULATESYSROOTDEPS:class-nativesdk = "virtual/${HOST_PREFIX}binutils:do_populate_sysroot"
|
||||
POPULATESYSROOTDEPS:class-target = "virtual/cross-binutils:do_populate_sysroot"
|
||||
POPULATESYSROOTDEPS:class-nativesdk = "virtual/nativesdk-cross-binutils:do_populate_sysroot"
|
||||
do_populate_sysroot[depends] += "${POPULATESYSROOTDEPS}"
|
||||
|
||||
SSTATETASKS += "do_populate_sysroot"
|
||||
|
|
|
@ -111,7 +111,7 @@ do_image_wic[deptask] += "do_image_complete"
|
|||
WKS_FILE_DEPENDS_DEFAULT = '${@bb.utils.contains_any("BUILD_ARCH", [ 'x86_64', 'i686' ], "syslinux-native", "",d)}'
|
||||
WKS_FILE_DEPENDS_DEFAULT += "bmaptool-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native erofs-utils-native"
|
||||
# Unified kernel images need objcopy
|
||||
WKS_FILE_DEPENDS_DEFAULT += "virtual/${TARGET_PREFIX}binutils"
|
||||
WKS_FILE_DEPENDS_DEFAULT += "virtual/cross-binutils"
|
||||
WKS_FILE_DEPENDS_BOOTLOADERS = ""
|
||||
WKS_FILE_DEPENDS_BOOTLOADERS:x86 = "syslinux grub-efi systemd-boot os-release"
|
||||
WKS_FILE_DEPENDS_BOOTLOADERS:x86-64 = "syslinux systemd-boot os-release"
|
||||
|
|
|
@ -460,8 +460,8 @@ do_qa_unpack() {
|
|||
return
|
||||
}
|
||||
|
||||
do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"
|
||||
do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot"
|
||||
do_kernel_configme[depends] += "virtual/cross-binutils:do_populate_sysroot"
|
||||
do_kernel_configme[depends] += "virtual/cross-cc:do_populate_sysroot"
|
||||
do_kernel_configme[depends] += "bc-native:do_populate_sysroot bison-native:do_populate_sysroot"
|
||||
do_kernel_configme[depends] += "kern-tools-native:do_populate_sysroot"
|
||||
do_kernel_configme[dirs] += "${S} ${B}"
|
||||
|
|
|
@ -12,7 +12,7 @@ KERNEL_PACKAGE_NAME ??= "kernel"
|
|||
KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
|
||||
|
||||
PROVIDES += "virtual/kernel"
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native bison-native"
|
||||
DEPENDS += "virtual/cross-binutils virtual/cross-cc kmod-native bc-native bison-native"
|
||||
DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lzo", "lzop-native", "", d)}"
|
||||
DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lz4", "lz4-native", "", d)}"
|
||||
DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.zst", "zstd-native", "", d)}"
|
||||
|
|
|
@ -64,7 +64,7 @@ DEPENDS += "\
|
|||
os-release \
|
||||
systemd-boot \
|
||||
systemd-boot-native \
|
||||
virtual/${TARGET_PREFIX}binutils \
|
||||
virtual/cross-binutils \
|
||||
virtual/kernel \
|
||||
"
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ IMAGE_LINGUAS = ""
|
|||
LIBC_DEPENDENCIES = ""
|
||||
|
||||
EXTRA_OECONF:pn-gcc-cross-${TARGET_ARCH}:append = " --without-headers"
|
||||
DEPENDS:remove:pn-meta-toolchain = "virtual/libc virtual/${TARGET_PREFIX}compilerlibs"
|
||||
DEPENDS:remove:pn-meta-toolchain = "virtual/libc virtual/compilerlibs"
|
||||
|
||||
# certain compiler libs cannot be used without libc, avoid the dependence on compilerlibs
|
||||
BASEDEPENDS:remove:class-target = "virtual/${TARGET_PREFIX}compilerlibs"
|
||||
BASEDEPENDS:remove:class-target = "virtual/compilerlibs"
|
||||
|
||||
TARGET_OS = "elf"
|
||||
TARGET_OS:arm = "eabi"
|
||||
|
|
|
@ -2,16 +2,20 @@
|
|||
# Default toolchain configuration
|
||||
#
|
||||
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "binutils-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime"
|
||||
PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/cross-cc = "${MLPREFIX}gcc-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/cross-c++ = "${MLPREFIX}gcc-cross-${TARGET_ARCH}"
|
||||
PREFERRED_PROVIDER_virtual/compilerlibs = "gcc-runtime"
|
||||
PREFERRED_PROVIDER_gdb = "gdb"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/${SDK_PREFIX}binutils ?= "binutils-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/${SDK_PREFIX}gcc = "gcc-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/${SDK_PREFIX}g++ = "gcc-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/${SDK_PREFIX}compilerlibs = "nativesdk-gcc-runtime"
|
||||
PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/cross-cc:class-nativesdk = "gcc-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/cross-c++:class-nativesdk = "gcc-crosssdk-${SDK_SYS}"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/nativesdk-cross-cc = "gcc-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/nativesdk-cross-c++ = "gcc-crosssdk-${SDK_SYS}"
|
||||
PREFERRED_PROVIDER_virtual/nativesdk-compilerlibs = "nativesdk-gcc-runtime"
|
||||
|
||||
# Default libc config
|
||||
PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
|
||||
|
|
|
@ -33,7 +33,7 @@ class ClassExtender(object):
|
|||
name = name.replace("-" + self.extname, "")
|
||||
if name.startswith("virtual/"):
|
||||
# Assume large numbers of dashes means a triplet is present and we don't need to convert
|
||||
if name.count("-") >= 3 and name.endswith(("-go", "-binutils", "-gcc", "-g++")):
|
||||
if name.count("-") >= 3 and name.endswith(("-go",)):
|
||||
return name
|
||||
subs = name.split("/", 1)[1]
|
||||
if not subs.startswith(self.extname):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require glibc-common.inc
|
||||
require glibc-ld.inc
|
||||
|
||||
DEPENDS = "virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils libgcc-initial linux-libc-headers"
|
||||
DEPENDS = "virtual/cross-cc virtual/cross-binutils libgcc-initial linux-libc-headers"
|
||||
|
||||
PROVIDES = "virtual/libc"
|
||||
PROVIDES += "virtual/libintl virtual/libiconv"
|
||||
|
|
|
@ -7,7 +7,7 @@ DEPENDS = "\
|
|||
mtools-native bmaptool-native grub-native cdrtools-native \
|
||||
btrfs-tools-native squashfs-tools-native pseudo-native \
|
||||
e2fsprogs-native util-linux-native tar-native erofs-utils-native \
|
||||
virtual/${TARGET_PREFIX}binutils \
|
||||
virtual/cross-binutils \
|
||||
"
|
||||
DEPENDS:append:x86 = " syslinux-native syslinux grub-efi systemd-boot"
|
||||
DEPENDS:append:x86-64 = " syslinux-native syslinux grub-efi systemd-boot"
|
||||
|
|
|
@ -11,8 +11,8 @@ SRC_URI = "file://stack_chk.c"
|
|||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils \
|
||||
virtual/${TARGET_PREFIX}gcc \
|
||||
DEPENDS = "virtual/cross-binutils \
|
||||
virtual/cross-cc \
|
||||
"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
|
|
|
@ -20,8 +20,8 @@ S = "${WORKDIR}/git"
|
|||
|
||||
PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils \
|
||||
virtual/${TARGET_PREFIX}gcc \
|
||||
DEPENDS = "virtual/cross-binutils \
|
||||
virtual/cross-cc \
|
||||
libgcc-initial \
|
||||
linux-libc-headers \
|
||||
bsd-headers \
|
||||
|
|
|
@ -20,7 +20,7 @@ SRC_URI = "git://sourceware.org/git/newlib-cygwin.git;protocol=https;branch=main
|
|||
SRCREV="ad11e2587f83d61357a32c61c36d72ea4f39315e"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc"
|
||||
DEPENDS = "virtual/cross-cc"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/build"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require picolibc.inc
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc"
|
||||
DEPENDS = "virtual/cross-cc"
|
||||
|
||||
PROVIDES += "virtual/libc virtual/libiconv virtual/libintl"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
|
|||
PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
BPN = "binutils"
|
||||
|
||||
DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
|
||||
DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
|
||||
EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
|
||||
--enable-poison-system-directories \
|
||||
"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
inherit cross
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}binutils"
|
||||
PROVIDES = "virtual/cross-binutils"
|
||||
|
||||
PN = "binutils-cross-${TARGET_ARCH}"
|
||||
BPN = "binutils"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require binutils-cross_${PV}.bb
|
||||
|
||||
PROVIDES = "virtual/nativesdk-cross-binutils"
|
||||
|
||||
inherit crosssdk
|
||||
|
||||
PN = "binutils-crosssdk-${SDK_SYS}"
|
||||
|
|
|
@ -21,9 +21,9 @@ do_configure() {
|
|||
}
|
||||
|
||||
# target depends
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}binutils"
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}gcc"
|
||||
DEPENDS += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs"
|
||||
DEPENDS += "virtual/cross-binutils"
|
||||
DEPENDS += "virtual/cross-cc"
|
||||
DEPENDS += "virtual/${MLPREFIX}compilerlibs"
|
||||
DEPENDS += "virtual/${MLPREFIX}libc"
|
||||
|
||||
python check_prepare() {
|
||||
|
|
|
@ -11,7 +11,8 @@ CVE_PRODUCT = "gcc"
|
|||
inherit autotools gettext texinfo
|
||||
|
||||
BPN = "gcc"
|
||||
COMPILERDEP = "virtual/${TARGET_PREFIX}gcc:do_gcc_stash_builddir"
|
||||
COMPILERDEP = "${MLPREFIX}gcc-cross-${TARGET_ARCH}:do_gcc_stash_builddir"
|
||||
COMPILERDEP:class-nativesdk = "gcc-crosssdk-${SDK_SYS}:do_gcc_stash_builddir"
|
||||
|
||||
python extract_stashed_builddir () {
|
||||
src = d.expand("${COMPONENTS_DIR}/${BUILD_ARCH}/gcc-stashed-builddir-${TARGET_SYS}")
|
||||
|
|
|
@ -3,7 +3,7 @@ inherit cross-canadian
|
|||
SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)"
|
||||
PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc"
|
||||
DEPENDS = "virtual/nativesdk-cross-cc virtual/cross-cc virtual/nativesdk-cross-binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc"
|
||||
|
||||
GCCMULTILIB = "--enable-multilib"
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ inherit cross
|
|||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
EXTRADEPENDS = ""
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils ${EXTRADEPENDS} ${NATIVEDEPS}"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
|
||||
DEPENDS = "virtual/cross-binutils ${EXTRADEPENDS} ${NATIVEDEPS}"
|
||||
PROVIDES = "virtual/cross-cc virtual/c++"
|
||||
python () {
|
||||
if d.getVar("TARGET_OS").startswith("linux"):
|
||||
d.setVar("EXTRADEPENDS", "linux-libc-headers")
|
||||
|
|
|
@ -8,7 +8,7 @@ SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
|
|||
|
||||
GCCMULTILIB = "--disable-multilib"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils gettext-native ${NATIVEDEPS}"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
|
||||
DEPENDS = "virtual/nativesdk-cross-binutils gettext-native ${NATIVEDEPS}"
|
||||
PROVIDES = "virtual/nativesdk-cross-cc virtual/nativesdk-cross-c++"
|
||||
|
||||
gcc_multilib_setup[vardepsexclude] = "MULTILIB_VARIANTS"
|
||||
|
|
|
@ -156,8 +156,9 @@ do_install:append:class-target () {
|
|||
}
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ libgcc virtual/${MLPREFIX}libc"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs"
|
||||
DEPENDS = "virtual/cross-cc virtual/cross-c++ ${MLPREFIX}libgcc virtual/${MLPREFIX}libc"
|
||||
DEPENDS:class-nativesdk = "virtual/nativesdk-cross-cc virtual/nativesdk-cross-c++ ${MLPREFIX}libgcc virtual/${MLPREFIX}libc"
|
||||
PROVIDES = "virtual/${MLPREFIX}compilerlibs"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ do_install () {
|
|||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
DEPENDS = "virtual/crypt gcc-runtime virtual/${TARGET_PREFIX}gcc"
|
||||
DEPENDS = "virtual/crypt gcc-runtime virtual/cross-cc"
|
||||
|
||||
# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|
||||
DEBUG_OPTIMIZATION:append = " -Wno-error"
|
||||
|
@ -75,9 +75,9 @@ RRECOMMENDS:${PN}:append:powerpc64 = " liblsan libtsan"
|
|||
RRECOMMENDS:${PN}:append:aarch64 = " liblsan libtsan"
|
||||
RRECOMMENDS:${PN}:append:riscv64 = " liblsan libtsan"
|
||||
|
||||
do_package_write_ipk[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata"
|
||||
do_package_write_deb[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata"
|
||||
do_package_write_rpm[depends] += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs:do_packagedata"
|
||||
do_package_write_ipk[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata"
|
||||
do_package_write_deb[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata"
|
||||
do_package_write_rpm[depends] += "virtual/${MLPREFIX}compilerlibs:do_packagedata"
|
||||
|
||||
# Only x86, powerpc, sparc, s390, arm, aarch64 and loongarch64 are supported
|
||||
COMPATIBLE_HOST = '(x86_64|i.86|powerpc|sparc|s390|arm|aarch64|loongarch64|riscv64).*-linux'
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
require libgcc-common.inc
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc"
|
||||
DEPENDS = "virtual/cross-cc"
|
||||
|
||||
LICENSE = "GPL-3.0-with-GCC-exception"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require libgcc-common.inc
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ virtual/${MLPREFIX}libc"
|
||||
DEPENDS = "virtual/cross-cc virtual/cross-c++ virtual/${MLPREFIX}libc"
|
||||
|
||||
do_install:append:class-target () {
|
||||
if [ "${TCLIBC}" != "glibc" ]; then
|
||||
|
|
|
@ -49,7 +49,7 @@ do_install () {
|
|||
|
||||
# avoid virtual/libc
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}compilerlibs"
|
||||
DEPENDS = "virtual/cross-cc virtual/compilerlibs"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
|||
BPN = "gdb"
|
||||
|
||||
DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-gmp nativesdk-mpfr \
|
||||
virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc"
|
||||
virtual/nativesdk-cross-cc virtual/nativesdk-cross-binutils virtual/nativesdk-libc"
|
||||
|
||||
GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
inherit cross-canadian
|
||||
|
||||
DEPENDS = "go-native virtual/${HOST_PREFIX}go virtual/nativesdk-${HOST_PREFIX}go-runtime \
|
||||
virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
|
||||
virtual/nativesdk-${HOST_PREFIX}compilerlibs"
|
||||
virtual/nativesdk-cross-cc virtual/nativesdk-libc \
|
||||
virtual/nativesdk-compilerlibs"
|
||||
PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
|
||||
# it uses gcc on build machine during go-cross-canadian bootstrap, but
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
inherit crosssdk
|
||||
|
||||
DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/${TARGET_PREFIX}binutils"
|
||||
DEPENDS = "go-native virtual/nativesdk-cross-cc virtual/nativesdk-compilerlibs virtual/nativesdk-cross-binutils"
|
||||
PN = "go-crosssdk-${SDK_SYS}"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}go"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ LICENSE = "MIT"
|
|||
|
||||
MODIFYTOS = "0"
|
||||
|
||||
DEPENDS += "virtual/${SDK_PREFIX}gcc virtual/nativesdk-libc virtual/nativesdk-${SDK_PREFIX}compilerlibs"
|
||||
DEPENDS += "virtual/nativesdk-cross-cc virtual/nativesdk-libc virtual/nativesdk-compilerlibs"
|
||||
|
||||
SRC_URI += "file://target-rust-ccld.c"
|
||||
LIC_FILES_CHKSUM = "file://target-rust-ccld.c;md5=af4e0e29f81a34cffe05aa07c89e93e9;endline=7"
|
||||
|
|
Loading…
Reference in New Issue
Block a user