Commit Graph

6 Commits

Author SHA1 Message Date
John Moon
0dec7d25a5 Revert "build: adding top-level DDK headers definition"
This reverts commit 7f1305d0f5.

Upstream ACK adds their own all_headers target, so remove ours and
make way for theirs instead.

Change-Id: I7bec32507c3da1b6c98d94392682082bd35e73e4
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-12-07 09:48:54 -08:00
John Moon
c2170f5e11 build: Change paths to Bazel extensions
The canonical location of msm_kernel_extensions.bzl is changing.

Update the load() calls to the new location.

Change-Id: I27df6131de155cd0592cad5d57202ca01c4affb5
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-20 17:40:14 -08:00
John Moon
7f1305d0f5 build: adding top-level DDK headers definition
Currently, kernel_module() Kleaf rules will automatically include
kernel headers based on the input kernel_build parameter.

The new ddk_module() rule requires kernel headers to be explicitly
exported to the build system.

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