Skip to content

Commit cecc46e

Browse files
fionerajacky8hyf
authored andcommitted
fix: dtc compiler should have exec transition
With a target transition, the dtc compiler would be resolved to the target arch instead of the exec arch. As it builds a platform independent binary, this should be a exec transition.
1 parent 816491c commit cecc46e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

devicetree/private/toolchain.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ _common_attrs = {
6969
doc = doc,
7070
mandatory = False,
7171
allow_single_file = True,
72-
# Don't apply the exec transition here, because the toolchain itself should apply
73-
# the transition.
74-
cfg = "target",
72+
cfg = "exec",
7573
executable = True,
7674
)
7775
for name, doc in TOOLCHAIN_TOOLS.items()

0 commit comments

Comments
 (0)