Commit Graph

4 Commits

Author SHA1 Message Date
John Moon
0d3933f9e4 ANDROID: build: Switch to hermetic tools for DTC build
Currently, the DTC build will use host tools for lex and bison runs.

With the hermetic_genrule from Kleaf, it's easy to use the hermetic
tools instead which obviates the need for lex and bison on the host.

Switch to hermetic_genrule.

Change-Id: Ib505cf3833c8ecec275c50f9c44ff74efe39b649
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-08-29 10:39:29 -07:00
John Moon
1a3639b2f2 ANDROID: build: Set DTC target compatibility
Currently, there's no guarantee that the device tree compiler in our
build is being built for the host target.

Use native Bazel compatibility attributes to make sure DTC is only
built for linux (not Android).

Change-Id: Ibe06aa76004caf6e087f11e29679c045c68ab129
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-03-27 14:06:58 -07:00
John Moon
12c50908a3 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 <quic_johmoo@quicinc.com>
2022-12-01 11:05:16 -08:00
John Moon
59ff6820c9 ANDROID: enable pineapple kleaf build
Kleaf replaces build.sh. Define pineapple target in Bazel
so it may be built with the following command:

tools/bazel run //msm-kernel:pineapple_gki

Change-Id: If78ea5482898f92b751cad8542401ba12d9663bf
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-10-31 11:09:02 -07:00