Skip to content

Commit

Permalink
clang: set BPN = "clang" for clang cross,crosssdk,cross-canadian recipes
Browse files Browse the repository at this point in the history
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] openembedded/openembedded-core@a2c5509
[2] kraj@e7517e1

Signed-off-by: Hongxu Jia <[email protected]>
  • Loading branch information
hongxu-jia authored and kraj committed Feb 25, 2025
1 parent 93dec32 commit 3669c28
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes-devtools/clang/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions recipes-devtools/clang/compiler-rt-sanitizers_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ SECTION = "base"
require clang.inc
require common-source.inc

BPN = "compiler-rt-sanitizers"

inherit cmake pkgconfig python3native


Expand Down
2 changes: 2 additions & 0 deletions recipes-devtools/clang/compiler-rt_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ SECTION = "base"
require clang.inc
require common-source.inc

BPN = "compiler-rt"

inherit cmake cmake-native pkgconfig python3native


Expand Down
2 changes: 2 additions & 0 deletions recipes-devtools/clang/libclc_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions recipes-devtools/clang/libcxx_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions recipes-devtools/clang/openmp_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3669c28

Please sign in to comment.