diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-10 05:54:42 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-11 11:44:22 +0100 |
| commit | bb44b988271e6aa4f749dd50c93bec9f68ffa9b4 (patch) | |
| tree | 5a23a4b971c6f10eab85cce54a4385194ceff9f7 | |
| parent | 8b7e9ea7893a2d746cb695dc4c29a7c5a9e39d4c (diff) | |
| download | poky-bb44b988271e6aa4f749dd50c93bec9f68ffa9b4.tar.gz | |
llvm: use OECMAKE_SOURCEPATH to specify cmake dir
Instead of pushing an `llvm` sourcedir into S, specify it through the
OECMAKE_SOURCEPATH so that all the patches are applied to the topdir and
debug paths also use top path to map.
(From OE-Core rev: 43019c7b303da865a563fd672a699175b3d11e5a)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/llvm/llvm_20.1.2.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_20.1.2.bb b/meta/recipes-devtools/llvm/llvm_20.1.2.bb index 4c93c1bfec..c9cb466c57 100644 --- a/meta/recipes-devtools/llvm/llvm_20.1.2.bb +++ b/meta/recipes-devtools/llvm/llvm_20.1.2.bb | |||
| @@ -24,15 +24,17 @@ MAJ_MIN_VERSION = "${@oe.utils.trim_version("${PV}", 2)}" | |||
| 24 | LLVM_RELEASE = "${PV}" | 24 | LLVM_RELEASE = "${PV}" |
| 25 | 25 | ||
| 26 | SRC_URI = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz \ | 26 | SRC_URI = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz \ |
| 27 | file://0007-llvm-allow-env-override-of-exe-path.patch;striplevel=2 \ | 27 | file://0007-llvm-allow-env-override-of-exe-path.patch \ |
| 28 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch;striplevel=2 \ | 28 | file://0001-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch \ |
| 29 | file://llvm-config \ | 29 | file://llvm-config \ |
| 30 | " | 30 | " |
| 31 | SRC_URI[sha256sum] = "f0a4a240aabc9b056142d14d5478bb6d962aeac549cbd75b809f5499240a8b38" | 31 | SRC_URI[sha256sum] = "f0a4a240aabc9b056142d14d5478bb6d962aeac549cbd75b809f5499240a8b38" |
| 32 | UPSTREAM_CHECK_URI = "https://github.com/llvm/llvm-project" | 32 | UPSTREAM_CHECK_URI = "https://github.com/llvm/llvm-project" |
| 33 | UPSTREAM_CHECK_REGEX = "llvmorg-(?P<pver>\d+(\.\d+)+)" | 33 | UPSTREAM_CHECK_REGEX = "llvmorg-(?P<pver>\d+(\.\d+)+)" |
| 34 | 34 | ||
| 35 | S = "${WORKDIR}/llvm-project-${PV}.src/llvm" | 35 | S = "${WORKDIR}/llvm-project-${PV}.src" |
| 36 | |||
| 37 | OECMAKE_SOURCEPATH = "${S}/llvm" | ||
| 36 | 38 | ||
| 37 | LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install" | 39 | LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install" |
| 38 | 40 | ||
