Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recipes: Update to match OE-Core virtual/cross-* changes #1051

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
recipes: Update to match OE-Core virtual/cross-* changes
Update meta-clang to match OE-Core changes to use recipe specific virtual
providers (without yet switching to the new switching mechanism).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rpurdie committed Jan 21, 2025
commit f67efb87919727d03a07b0e1a1147931bfb31a83
2 changes: 1 addition & 1 deletion classes/clang.bbclass
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ def clang_base_deps(d):
elif (d.getVar('LIBCPLUSPLUS').find('-stdlib=libc++') != -1):
ret += " libcxx "
else:
ret += " virtual/${TARGET_PREFIX}compilerlibs "
ret += " virtual/${MLPREFIX}compilerlibs "
return ret
return ""

2 changes: 1 addition & 1 deletion conf/layer.conf
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ BBFILES_DYNAMIC += " \
"

PREFERRED_PROVIDER_libgcc-initial = "libgcc-initial"
#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs_forcevariable = "libcxx"
#PREFERRED_PROVIDER_virtual/${MLPREFIX}compilerlibs:forcevariable = "libcxx"
PREFERRED_PROVIDER_libunwind = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm android", "libcxx", "libunwind", d)}"
INHERIT += "clang"

2 changes: 1 addition & 1 deletion recipes-core/musl/musl_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DEPENDS:append:toolchain-clang = " clang-cross-${TARGET_ARCH}"
DEPENDS:remove:toolchain-clang = "virtual/${TARGET_PREFIX}gcc"
DEPENDS:remove:toolchain-clang = "virtual/cross-cc"
TOOLCHAIN:x86-x32 = "gcc"

# crashes seen in malloc@plt
2 changes: 1 addition & 1 deletion recipes-devtools/clang/clang-cross-canadian_git.bb
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ require clang.inc
require common-source.inc
inherit cross-canadian

DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc"
DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/nativesdk-cross-binutils virtual/nativesdk-libc"
# We have to point gcc at a sysroot but we don't need to rebuild if this changes
# e.g. we switch between different machines with different tunes.
EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH"
2 changes: 1 addition & 1 deletion recipes-devtools/clang/clang-cross_git.bb
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ PN = "clang-cross-${TARGET_ARCH}"
require clang.inc
require common-source.inc
inherit cross
DEPENDS += "clang-native virtual/${TARGET_PREFIX}binutils"
DEPENDS += "clang-native virtual/cross-binutils"

do_install() {
install -d ${D}${bindir}
2 changes: 1 addition & 1 deletion recipes-devtools/clang/clang-crosssdk_git.bb
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ PN = "clang-crosssdk-${SDK_SYS}"
require clang.inc
require common-source.inc
inherit crosssdk
DEPENDS += "clang-native nativesdk-clang-glue virtual/${TARGET_PREFIX}binutils virtual/nativesdk-libc"
DEPENDS += "clang-native nativesdk-clang-glue virtual/nativesdk-cross-binutils virtual/nativesdk-libc"

do_install() {
install -d ${D}${bindir}
2 changes: 1 addition & 1 deletion recipes-devtools/clang/clang_git.bb
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ EXTRA_OECMAKE:append:class-target = "\
"

DEPENDS = "binutils zlib zstd libffi libxml2 libxml2-native ninja-native swig-native"
DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS} virtual/${TARGET_PREFIX}binutils nativesdk-python3"
DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS} virtual/nativesdk-cross-binutils nativesdk-python3"
DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} python3 compiler-rt libcxx"

RRECOMMENDS:${PN} = "binutils"
2 changes: 1 addition & 1 deletion recipes-devtools/clang/compiler-rt-sanitizers_git.bb
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ INSANE_SKIP:${PN} = "dev-so libdir"
INSANE_SKIP:${PN}-dbg = "libdir"

#PROVIDES:append:class-target = "\
# virtual/${TARGET_PREFIX}compilerlibs \
# virtual/${MLPREFIX}compilerlibs \
# libgcc \
# libgcc-initial \
# libgcc-dev \
2 changes: 1 addition & 1 deletion recipes-devtools/clang/compiler-rt_git.bb
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ INSANE_SKIP:${PN} = "dev-so libdir"
INSANE_SKIP:${PN}-dbg = "libdir"

#PROVIDES:append:class-target = "\
# virtual/${TARGET_PREFIX}compilerlibs \
# virtual/${MLPREFIX}compilerlibs \
# libgcc \
# libgcc-initial \
# libgcc-dev \
2 changes: 1 addition & 1 deletion recipes-devtools/clang/libcxx_git.bb
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ PACKAGECONFIG[compiler-rt] = "-DLIBCXX_USE_COMPILER_RT=ON -DLIBCXXABI_USE_COMPIL
PACKAGECONFIG[unwind-shared] = "-DLIBUNWIND_ENABLE_SHARED=ON,-DLIBUNWIND_ENABLE_SHARED=OFF,,"

DEPENDS += "ninja-native"
DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs"
DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${MLPREFIX}compilerlibs"
DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS} nativesdk-compiler-rt"
DEPENDS:append:class-native = " clang-native compiler-rt-native"