Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2a2cffe

Browse files
author
Yifan Hong
committed
ANDROID: Use DTC from PATH.
Instead of using a hard-coded path to DTC, infer its path from PATH. This change removes the dependency on the ${BUILDTOOLS_PREBUILT_BIN}/dtc symlink, so the build infrastructure is free to reset PATH to a place where the actual DTC binary exists. This change is needed to set --incompatible_disable_hermetic_tools_symlink_source to true by default. Test: bazel run //common:db845c_dist Fixes: a71e480 ("ANDROID: build.config: Set DTC to absolute path") Bug: 291816237 Change-Id: I75dac41802bd66a1b6c0c61d90b5b378b943b593 Signed-off-by: Yifan Hong <[email protected]>
1 parent 83379c3 commit 2a2cffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.config.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LLVM=1
44
DEPMOD=depmod
55
CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-${CLANG_VERSION}/bin
66
BUILDTOOLS_PREBUILT_BIN=build/kernel/build-tools/path/linux-x86
7-
DTC=${ROOT_DIR}/${BUILDTOOLS_PREBUILT_BIN}/dtc
7+
DTC=$(command -v dtc)
88

99
KCFLAGS="${KCFLAGS} -D__ANDROID_COMMON_KERNEL__"
1010
EXTRA_CMDS=''

0 commit comments

Comments
 (0)