Commit Graph

12 Commits

Author SHA1 Message Date
John Moon
463dfbb7e8 ANDROID: build: Remove test_mapping definitions
Kleaf test_mapping rules are no longer used upstream and were being
skipped in our builds anyway.

Remove the test_mapping rules.

Change-Id: If8689f4572b1d1dce2c8ba03075444fa3af7d86b
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-27 09:25:18 -07:00
John Moon
c38cee9986 ANDROID: build: Fix output directory layout
With a recent change to the output directory handling from
build_with_bazel.py, some dist directory paths incorrectly used
hyphens instead of underscores.

Fix this issue by mirroring the logic in msm_common.bzl which handles
these paths properly.

Also, run buildifier to fix format of Bazel build files.

Change-Id: Ia82073f059c54f4a7f523c5bd91afdc755c70df1
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-22 20:40:11 -07:00
qctecmdr
f101e041aa Merge "ANDROID: build: Use new device tree functions" 2023-03-17 18:24:59 -07:00
Vamsi Krishna Lanka
c35e636e07 ANDROID: build: Replace the combine vms rule with getter
Combine vms rule isn't needed anymore, replace
it with getter to support combine vms only if
such rules are available.

Change-Id: Ib64caa177c7ac43b3b1376e5923db47f1adeabf9
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2023-03-02 10:35:13 -08:00
John Moon
f66b1a4c8d ANDROID: build: Use new device tree functions
We've updated the vendor device tree platform map to be exposed via
macros instead of the raw map.

Update our use of the raw map to use the macros instead.

Change-Id: I5f49c42d0e39a7625342bab438f9892fe3993cf5
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-02-27 18:11:52 -08:00
Vamsi Krishna Lanka
fb6545c2b1 build: Add Bazel Support for pineapple allyes config build
Currently, only legacy build.sh support exists for Pineapple allyes config.
Add Bazel support for these builds.

Change-Id: I6ee869762f9061c433383fe720769e0dd874facf
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2023-02-06 11:18:52 -08:00
John Moon
44d8ea46ce ANDROID: build: Add vendor DTS tree to extensions
Currently, no vendor device tree sources are built by Bazel by
default.

Add the vendor device tree builds as the default.

Change-Id: I28eb38e07ba84a3aa91ab13a6b8fd29db9277f96
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-01-25 16:29:37 -08:00
John Moon
9abecb5d93 ANDROID: build: Add skip flags to Bazel for easier source selection
Currently, there's no way to select sources from Bazel extension
hooks based on projects being skipped.

Add Bazel config_settings to allow users to configure build sources
via command line flags. Automatically provide these flags when
building with build_with_bazel.py.

Change-Id: Ifecb58443b14dfd666b6407725fd3a4c287bae05
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-01-20 15:05:25 -08:00
John Moon
a1505002f0 ANDROID: build: Add ability to build init_boot.img from ramdisk
Currently, the Bazel build does not have any hooks to supply a
ramdisk to the init_boot.img build.

Add the hook and feed the output to the kernel_images rule to
generate init_boot.img.

Change-Id: I2fbfda609fde6842aede3e9d16c02923a2368eb0
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-01-19 17:34:29 -08:00
John Moon
f59bdfb286 build: Add top-level rule definition in bazel extensions
Currently, the only rules that can be defined in msm_kernel_extensions.bzl
are invoked for each target. If a rule just needs to be declared once at
the top level, there's no way to do that.

Add and invoke a new macro from the top-level to enable this functionality.

Change-Id: I239c0e44f6938dee7dda4c0cb1434f9bf925b13c
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-14 15:06:47 -08:00
John Moon
8503690aa2 build: Add support for Bazel VM builds
Currently, only legacy build.sh support exists for VM
builds.

Add Bazel support for these builds.

Change-Id: I10b221aa4a6633240b984eff333e15f5cd8b82cd
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-14 15:05:22 -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