diff options
author | Ross Burton <ross.burton@arm.com> | 2025-07-11 16:51:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-14 17:49:48 +0100 |
commit | 728d87c9bdec7d987e88512fb40d535f70b24e14 (patch) | |
tree | 3ec0f23a105ee29414e7d26b4d86971fc758b4e0 | |
parent | 5a8e96ed11248ede2cc81b88ba7496db5d1a7905 (diff) | |
download | poky-728d87c9bdec7d987e88512fb40d535f70b24e14.tar.gz |
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>
-rw-r--r-- | meta/recipes-devtools/clang/clang-cross-canadian_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/clang-cross_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/clang-crosssdk_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/clang_git.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/common.inc | 2 |
5 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-devtools/clang/clang-cross-canadian_git.bb b/meta/recipes-devtools/clang/clang-cross-canadian_git.bb index 456c0d61bc..0e84d3ac9a 100644 --- a/meta/recipes-devtools/clang/clang-cross-canadian_git.bb +++ b/meta/recipes-devtools/clang/clang-cross-canadian_git.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception; | |||
7 | SECTION = "devel" | 7 | SECTION = "devel" |
8 | 8 | ||
9 | PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 9 | PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
10 | BPN = "clang" | ||
10 | 11 | ||
11 | require common-clang.inc | 12 | require common-clang.inc |
12 | require common-source.inc | 13 | require common-source.inc |
diff --git a/meta/recipes-devtools/clang/clang-cross_git.bb b/meta/recipes-devtools/clang/clang-cross_git.bb index 323cc0d880..99e48522a0 100644 --- a/meta/recipes-devtools/clang/clang-cross_git.bb +++ b/meta/recipes-devtools/clang/clang-cross_git.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception; | |||
7 | SECTION = "devel" | 7 | SECTION = "devel" |
8 | 8 | ||
9 | PN = "clang-cross-${TARGET_ARCH}" | 9 | PN = "clang-cross-${TARGET_ARCH}" |
10 | BPN = "clang" | ||
10 | 11 | ||
11 | require common-clang.inc | 12 | require common-clang.inc |
12 | require common-source.inc | 13 | require common-source.inc |
diff --git a/meta/recipes-devtools/clang/clang-crosssdk_git.bb b/meta/recipes-devtools/clang/clang-crosssdk_git.bb index ef162ef153..234d463578 100644 --- a/meta/recipes-devtools/clang/clang-crosssdk_git.bb +++ b/meta/recipes-devtools/clang/clang-crosssdk_git.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception; | |||
7 | SECTION = "devel" | 7 | SECTION = "devel" |
8 | 8 | ||
9 | PN = "clang-crosssdk-${SDK_SYS}" | 9 | PN = "clang-crosssdk-${SDK_SYS}" |
10 | BPN = "clang" | ||
10 | 11 | ||
11 | require common-clang.inc | 12 | require common-clang.inc |
12 | require common-source.inc | 13 | require common-source.inc |
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb index 23dfbb5deb..2b5d3a2752 100644 --- a/meta/recipes-devtools/clang/clang_git.bb +++ b/meta/recipes-devtools/clang/clang_git.bb | |||
@@ -17,6 +17,8 @@ SECTION = "devel" | |||
17 | require common-clang.inc | 17 | require common-clang.inc |
18 | require common-source.inc | 18 | require common-source.inc |
19 | 19 | ||
20 | BPN = "clang" | ||
21 | |||
20 | INHIBIT_DEFAULT_DEPS:class-native = "1" | 22 | INHIBIT_DEFAULT_DEPS:class-native = "1" |
21 | 23 | ||
22 | LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 24 | LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
diff --git a/meta/recipes-devtools/clang/common.inc b/meta/recipes-devtools/clang/common.inc index 37d37ec197..a9d6f899c0 100644 --- a/meta/recipes-devtools/clang/common.inc +++ b/meta/recipes-devtools/clang/common.inc | |||
@@ -71,5 +71,3 @@ B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | |||
71 | # The real WORKDIR location isn't a dependency for the shared workdir. | 71 | # The real WORKDIR location isn't a dependency for the shared workdir. |
72 | src_patches[vardepsexclude] = "WORKDIR" | 72 | src_patches[vardepsexclude] = "WORKDIR" |
73 | should_apply[vardepsexclude] += "PN" | 73 | should_apply[vardepsexclude] += "PN" |
74 | |||
75 | BPN = "clang" | ||