Skip to content

Commit

Permalink
clang-common: Rename task add_distro_vendor -> do_preconfigure
Browse files Browse the repository at this point in the history
Move the dependency anchor to do_preconfigure instead of do_patch
since do_patch may get deleted when using devtool etc. so it helps
with working on developing clang using devtool

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed May 25, 2024
1 parent ce35c39 commit 3a31fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions recipes-devtools/clang/common-source.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ deltask do_patch

SRC_URI = ""

do_configure[depends] += "llvm-project-source-${PV}:do_patch"
do_configure[depends] += "llvm-project-source-${PV}:do_preconfigure"
do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack"
do_create_spdx[depends] += "llvm-project-source-${PV}:do_patch"
do_create_spdx[depends] += "llvm-project-source-${PV}:do_preconfigure"

# spdx shared workdir detection fails as not WORKDIR is altered but S and B
# return always true to fix that
Expand Down
7 changes: 4 additions & 3 deletions recipes-devtools/clang/llvm-project-source.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ CLANG_EXTRA_OE_VENDORS ?= "${TARGET_VENDOR} ${SDK_VENDOR}"
CLANG_EXTRA_OE_DISTRO ?= "poky:poky"
# Match with MULTILIB_GLOBAL_VARIANTS
MULTILIB_VARIANTS = "lib32 lib64 libx32"
python add_distro_vendor() {

python do_preconfigure() {
import subprocess
case = ""
triple = ""
Expand Down Expand Up @@ -92,5 +93,5 @@ python add_distro_vendor() {
}

do_patch[vardepsexclude] = "MULTILIBS"
do_patch[postfuncs] += "add_distro_vendor"
do_create_spdx[depends] += "${PN}:do_patch"
addtask do_preconfigure after do_patch
do_create_spdx[depends] += "${PN}:do_preconfigure"

0 comments on commit 3a31fc4

Please sign in to comment.