From 12c50908a3bbc1a51a7649dcf405ae470eec0cd2 Mon Sep 17 00:00:00 2001 From: John Moon Date: Thu, 1 Dec 2022 11:05:16 -0800 Subject: [PATCH] ANDROID: Fix libfdt dependency Currently, when building the DT lexer and parser for the host, it's possible for a system DT header to be included instead of the local version. This issue was caught by accidentally building the host tools with a cross-toolchain which did not supply the header. To fix, add the correct dependency supplying the header to the dtc_gen rule. Change-Id: Icb6546b3f52c721697434394d6659301aa888ad2 Signed-off-by: John Moon --- BUILD.dtc | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.dtc b/BUILD.dtc index 5503b13a49a1..81ecf50c10f6 100644 --- a/BUILD.dtc +++ b/BUILD.dtc @@ -47,6 +47,7 @@ cc_library( ":parser", ] + glob(["*.h"]), includes = ["."], + deps = [":libfdt"], visibility = ["//visibility:public"], )