clang: move BPN assignment from common.inc

There's a BPN assignment in common.inc which means all recipes need to
either be called clang, or set BPN themselves.

Move the assignment to the clang recipes. For now I'm leaving the
existing BPN assignments in the other recipes, in case there are complex
multilib-related reasons to retain them.

(From OE-Core rev: fc7e8c3e5c19a1885bec564c8fc07df5a13c8bd4)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2025-07-11 16:51:34 +01:00
committed by Richard Purdie
parent 5a8e96ed11
commit 728d87c9bd
5 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;
SECTION = "devel"
PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}"
BPN = "clang"
require common-clang.inc
require common-source.inc

View File

@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;
SECTION = "devel"
PN = "clang-cross-${TARGET_ARCH}"
BPN = "clang"
require common-clang.inc
require common-source.inc

View File

@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;
SECTION = "devel"
PN = "clang-crosssdk-${SDK_SYS}"
BPN = "clang"
require common-clang.inc
require common-source.inc

View File

@@ -17,6 +17,8 @@ SECTION = "devel"
require common-clang.inc
require common-source.inc
BPN = "clang"
INHIBIT_DEFAULT_DEPS:class-native = "1"
LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed"

View File

@@ -71,5 +71,3 @@ 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"