Skip to content

Commit

Permalink
Fix incorrect task dependencies from ${B}
Browse files Browse the repository at this point in the history
Some tasks may reference ${B} for llvm-source which in general would not exist.
It has dependencies on HOST_SYS and TARGET_SYS which are not appropriate for a
shared recipe like llvm-source. This causes problems for the archiver and
multiconfigs in particlar.

Set B to something else to avoid these task hash issues.

Fixes issues kraj#885

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed May 25, 2024
1 parent 3498f1f commit dc79c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-devtools/clang/common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SRC_URI = "\
GCCPIE ??= ""

S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/llvm-project-${PV}.src"
B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"

# We need to ensure that for the shared work directory, the do_patch signatures match
# The real WORKDIR location isn't a dependency for the shared workdir.
Expand Down
2 changes: 2 additions & 0 deletions recipes-devtools/clang/llvm-project-source.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ TARGET_OS = "linux"
baselib = "lib"
PACKAGE_ARCH = "all"

B = "${WORKDIR}/build"

# space separated list of additional distro vendor values we want to support e.g.
# "yoe webos" or "-yoe -webos" '-' is optional
CLANG_EXTRA_OE_VENDORS ?= "${TARGET_VENDOR} ${SDK_VENDOR}"
Expand Down

0 comments on commit dc79c30

Please sign in to comment.