From 3669c28e90ad710e38ad2381ef0292d706fa9ffd Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 24 Feb 2025 14:13:08 +0800 Subject: clang: set BPN = "clang" for clang cross,crosssdk,cross-canadian recipes Similar gcc recipes in oe-core [1], set BPN = "clang" in common.inc for clang cross,crosssdk,cross-canadian recipes, but the recipe compiler-rt-sanitizers, compiler-rt, libclc, libcxx, openmp which shares sources with clang are not affected Due to commit [2], the BPN of llvm-project-source is not affected by this commit [1] https://github.com/openembedded/openembedded-core/commit/a2c5509520d5c3e082f55844e6545d0309565f8f [2] https://github.com/kraj/meta-clang/commit/e7517e1910a7d49abb4782fa0778f0b958f7717d Signed-off-by: Hongxu Jia --- recipes-devtools/clang/common.inc | 2 ++ recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 2 ++ recipes-devtools/clang/compiler-rt_git.bb | 2 ++ recipes-devtools/clang/libclc_git.bb | 2 ++ recipes-devtools/clang/libcxx_git.bb | 2 ++ recipes-devtools/clang/openmp_git.bb | 2 ++ 6 files changed, 12 insertions(+) diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 4d70528..582820d 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -64,3 +64,5 @@ B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" # The real WORKDIR location isn't a dependency for the shared workdir. src_patches[vardepsexclude] = "WORKDIR" should_apply[vardepsexclude] += "PN" + +BPN = "clang" diff --git a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb index b42c709..1cee81b 100644 --- a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb +++ b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb @@ -10,6 +10,8 @@ SECTION = "base" require clang.inc require common-source.inc +BPN = "compiler-rt-sanitizers" + inherit cmake pkgconfig python3native diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 7bc81af..f88e4a2 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -12,6 +12,8 @@ SECTION = "base" require clang.inc require common-source.inc +BPN = "compiler-rt" + inherit cmake cmake-native pkgconfig python3native diff --git a/recipes-devtools/clang/libclc_git.bb b/recipes-devtools/clang/libclc_git.bb index 0d43133..1e2f837 100644 --- a/recipes-devtools/clang/libclc_git.bb +++ b/recipes-devtools/clang/libclc_git.bb @@ -5,6 +5,8 @@ SECTION = "libs" require clang.inc require common-source.inc +BPN = "libclc" + TOOLCHAIN = "clang" LIC_FILES_CHKSUM = "file://libclc/LICENSE.TXT;md5=7cc795f6cbb2d801d84336b83c8017db" diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 816d037..85c467c 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb @@ -10,6 +10,8 @@ require common-source.inc inherit cmake cmake-native python3native +BPN = "libcxx" + PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "unwind unwind-shared", "", d)}" PACKAGECONFIG:append:armv5 = " no-atomics" PACKAGECONFIG:remove:class-native = "compiler-rt" diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb index 549df0e..398479b 100644 --- a/recipes-devtools/clang/openmp_git.bb +++ b/recipes-devtools/clang/openmp_git.bb @@ -8,6 +8,8 @@ SECTION = "libs" require clang.inc require common-source.inc +BPN = "openmp" + TOOLCHAIN = "clang" LIC_FILES_CHKSUM = "file://openmp/LICENSE.TXT;md5=d75288d1ce0450b28b8d58a284c09c79" -- cgit v1.2.3-54-g00ecf