94 Commits

Author SHA1 Message Date
338ed913f3 ANDROID: GKI: Convert NFC support as GKI module
CONFIG_NFC: NFC subsystem support

Bug: 232431151
Test: TH
Change-Id: Idc4d8c6656a8c4e36a695d9c9eb18fe20793bc76
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 48a868ee068a7fb0989a94ab244b1ce3d26cffba)
2022-11-15 18:11:52 +00:00
dd503c2c08 ANDROID: GKI: Convert VLAN 8021Q as gki module
Sets following feature to module:
CONFIG_VLAN_8021Q: Create 8021Q vlan interfaces.

Bug: 232431151
Test: TH
Change-Id: I4728f03b04bb49f65838564c96f88d232cbf21e8
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 2cf15a5bbc4a8d7e8f33a31e1647ce1095150aaa)
2022-11-15 03:43:08 +00:00
d1463bf566 ANDROID: GKI: Convert TIPC to gki modules
Converts following networking features to modules:

CONFIG_TIPC: The Transparent Inter Process Communication (TIPC) protocol.
CONFIG_TIPC_DIAG: TIPC: socket monitoring interface

Bug: 232431151
Test: TH
Change-Id: I370cc7a34f67222b619107d773cc4a13edd6b538
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit e516a098e2a4605ce113dc85ba6ac4c93d5136fc)
2022-11-15 03:39:18 +00:00
e127eb71e4 ANDROID: GKI: Add USB serial and ftdi sio modules
CONFIG_USB_SERIAL: USB Serial Converter support
CONFIG_USB_FTDI_SIO: FTDI SIO single port USB to
serial converter device.

Bug: 232431151
Test: TH
Change-Id: I1522a9beb0f70740fdce11d1c50b606d81ddf6c6
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 1383c8eae920fe95de79d0ce39e4468ad22034d6)
2022-11-13 06:56:01 +00:00
416a0f5d4f ANDROID: GKI: Convert USB ACM as GKI module
CONFIG_USB_ACM:

This driver supports USB modems and ISDN adapters
which support the Communication Device Class
Abstract Control Model interface.

Bug: 232431151
Test: TH
Change-Id: I15e07607121546eee4e6fa6b8bd8a8fd510a02d9
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit d0bdbdcadf547044e8be402f597a0ecc7ce341eb)
2022-11-13 06:56:01 +00:00
a4c2687cd9 ANDROID: kleaf: //common:all_headers should use linux_includes.
A new attribute, linux_includes, is added to ddk_headers to
denote that certain include directories should be added
to LINUXINCLUDE, not ccflags-y.

Change includes to linux_includes for the allowlist of
ddk_headers targets in //common. These are already
added to LINUXINCLUDE in common/Makefile, but we should
make them explicit in BUILD files too so the ordering can
be listed clearly in BUILD files.

Test: build cuttlefish with DDK
Bug: 257342715
Bug: 254735056
Change-Id: I97678264b37036cb5ab86973428e4e0d7f5b645d
Signed-off-by: Yifan Hong <elsk@google.com>
(cherry picked from commit 943d5a70d5a3a79bae02690a20e600974c7a644a)
2022-11-08 20:13:14 +00:00
4d71819ac4 ANDROID: Split x86 and arm64 DDK headers.
The ddk_headers targets should be architecture specific; that
is, an x86_64 ddk_module should not be able to see arm64 headers,
and vice versa.

Since the majority of devices is arm64, the //common:all_headers
alias points to //common:all_headers_aarch64. x86_64 devices
can use //common:all_headers_x86_64 instead.

After this change:

- arm64 ddk_modules can continue depending on //common:all_headers, or
  they can depend on //common:all_headers_aarch64 to be explicit.
  In this case, they will not see the x86 headers.
- x86 ddk_modules can depend on //common:all_headers_x86_64.
  In this case, they will not see the arm64 headers.
- unsafe headers under drivers/ are not splitted; they aren't arch specific.

This change ensures that e.g. virtual_device_x86_64 does not
search the headers from the arm64 folders.

Test: bazel build //common:all_headers
Test: bazel build --allow_ddk_unsafe_headers_set //common:all_headers
Bug: 256225968
Bug: 254735056
Signed-off-by: Yifan Hong <elsk@google.com>
Change-Id: I80dd33fb4c0e93dcba3e0714f9fd67d78596ab15
(cherry picked from commit 366ac32d7d8f0f67ac0c9b856cd387cb9e0354eb)
2022-11-08 20:13:14 +00:00
a08c2979ec ANDROID: kleaf: Initial list of ddk_headers (2: virtual_device_x86_64)
This CL includes headers used by the external modules
of virtual_device_x86_64.

Allowlist: This is a list of headers and a list of
include directories that are known to be safe
to be used by modules.

- This list includes:
  - Everything under
    - arch/x86/include
    - include

Unsafe list: This is the list of headers that are known to be used
by the external modules of virtual_device_x86_64, minus allowlist.
This means, with the allowlist and unsafe list, the certain Pixel
device kernel build can be transitioned to DDK without any change
to the source code.

- Note that for cleaness of DDK modules, we may want to
  remove some items in the allowlist of includes and
  require device source code to #include from the
  correct directory.

The command to generate this list is:

bazel run //build/kernel/kleaf:gen_ddk_headers \
  --gen_ddk_headers_target=//common-modules/virtual-device:virtual_device_x86_64_modules_install \
  --gen_ddk_headers_input_archives=//common:kernel_x86_64_ddk_allowlist_headers \
  -- -k

Manual edits:
- arch/arm64/include/ is added back. This is due to a limitation
  of the generation script that globs aren't properly handled.

Bug: 248351908
Bug: 254735056
Signed-off-by: Yifan Hong <elsk@google.com>
Change-Id: I0eae9213493d78a6899aa15c8096f3c7694328a3
(cherry picked from commit 3d56edf4a961a522ffc4d422c7d7f80eaa970391)
2022-11-08 20:13:14 +00:00
e07b026ae0 ANDROID: kleaf: Initial list of ddk_headers (1: arm64)
This CL includes headers used by the external modules of
a typical arm64 device.

Allowlist: This is a list of headers and a list of
include directories that are known to be safe
to be used by modules.

- This list includes:
  - Everything under
    - arch/arm64/include
    - include

Unsafe list: This is the list of headers that are known to be used
by a certain Pixel device kernel build, minus allowlist.

The unsafe list is untouched in this CL because:
- mainline is volatile;
- we don't have ddk_module's for arm64 devices on mainline yet.

The command to generate this list is:

bazel run //build/kernel/kleaf:gen_ddk_headers \
  --gen_ddk_headers_target=//gs/google-modules/soc-modules:slider_modules_install
  -- -k

Manual edits:

- manually deleted changes to all_headers_unsafe

This change is a partial cherry-pick of
14e14cc4e9407783a559b22dffd4bd2062714dd5

Bug: 248351908
Bug: 254735056
Signed-off-by: Yifan Hong <elsk@google.com>
Change-Id: I2daf9c1583e59e6852c247c2f3f59a7c91d0022e
2022-11-08 20:13:14 +00:00
45d94b7bcf ANDROID: kleaf: Initial list of ddk_headers (0: skeleton)
Create the skeleton rules for DDK headers, and write comments
with hands.

This CL has no real effect; all targets are declared empty
and content is filled in in follow up CLs.

Allowlist: This is a list of headers and a list of
include directories that are known to be safe
to be used by modules.

Unsafe list: This is the list of headers that are known to be used
by some device kernel build, minus allowlist.
This means, with the allowlist and unsafe list, an unspecified
device kernel build can be transitioned to DDK without any change
to the source code.

- Note that for cleaness of DDK modules, we may want to
  remove some items in the allowlist of includes and
  require device source code to #include from the
  correct directory.

Bug: 248351908
Bug: 254735056
Signed-off-by: Yifan Hong <elsk@google.com>
Change-Id: I4f15d2fac703bc3b7100a72e90f289236db3e7e5
(cherry picked from commit ede1fd38eeafa71983e0f578bed60f12e0b87ca1)
2022-11-08 20:13:14 +00:00
10e8592e50 ANDROID: GKI: Add CAN adapters as GKI modules
Add CAN related non bus drivers as GKI modules.

Bug: 229934827
Bug: 232431151
Test: TH
Change-Id: I5d876363a0ea3007e5a83bbca53dcaae1e09e707
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit d166d423879bdec8b13903f1b5e0e568a657e856)
2022-11-04 16:22:52 +00:00
dcd8844837 ANDROID: GKI: BUILD.bazel: Clean up modules list
Create a generic global list for GKI modules' list
and use that instead of cluttering the long list in
every target to keep it more robust and readable.

Bug: 232431151
Test: TH
Change-Id: Ib7f7be7988204c483519be0b38a90007d54b7912
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-01 20:28:02 +00:00
253c4832d2 ANDROID: GKI: BUILD.bazel: Add buildifier sort hint
Add buildifier sorting directives for modules lists
to catch non sorted lists in presubmit as well as
to help sort lists using the buildifier.

Bug: 232431151
Test: TH
Change-Id: I508652429f26f85ce5d760024574d68d63f2da9e
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 39228dd9f2eadd22a747eac65dc14dc6436fb0d8)
2022-10-31 17:36:16 +00:00
6f1219ff5f ANDROID: GKI: BUILD.bazel: Cleanup sync comments
In preparation of going away from the build.config.*,
remove the comments to keep bazel in sync with them.

Bug: 232431151
Test: TH
Change-Id: Iadf09d1a7c5afbbfdafb8225471352a48842be34
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 94afa3c4e00a7ea1b7135428d19c5fbd48c2e3ee)
2022-10-31 17:36:08 +00:00
aa6691febd ANDROID: GKI: BUILD.bazel: Clean up module order
Sort modules listing in an ascending order,
since order is not important.

Bug: 232431151
Test: TH
Change-Id: Icaad772671bf3d6a78ce1fda84b3a6fe566df0f6
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 8fdddc52afcd89debfedb66451c37872fbc0a5d3)
2022-10-31 17:35:58 +00:00
e750789ab3 ANDROID: GKI: Convert cfg/mac80211 as modules
Bug: 232431151
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I46dd381c9eb0d758e9808865692415651626941e
(cherry picked from commit 5659cc62f17da2013b9727a6311d62ae985ce7d4)
2022-10-31 17:10:13 +00:00
200e7cb6b0 ANDROID: GKI: x86_64: zram & zsmalloc as modules
Enable zram and zsmalloc as modules to be in sync
with the aarch64 builds.

Bug: 232431151
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I55053eeb6beda342689c854f95f4307871a3729b
(cherry picked from commit 44e9b82e013edee43f02f68e0b8a011135d290db)
2022-10-28 21:39:28 +00:00
6cfcfd0672 ANDROID: db845c_gki: Enable QCOM_GPI_DMA=m
Enable CONFIG_QCOM_GPI_DMA to configure I2C and SPI
in GPI DMA mode on SDM845.

Bug: 146449535
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Iab55bcf605d995a2d2e7ab51a1d36c67baf3cb8f
2022-10-06 22:33:23 +05:30
763cc48471 ANDROID: kleaf: add 16k variant of kernel_aarch64
Bug: 234045848
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Ie8ba8a49347fc28ac9caa37dbcf82597344464e9
2022-10-03 16:53:02 +00:00
c5a38e7ab5 ANDROID: GKI: Build-in REGMAP_SPMI
REGMAP_SPMI is a hidden symbol normally selected by other SPMI drivers,
but it wasn't built-in to GKI like other REGMAP APIs so vendors had to
build it downstream.

This is a small amount of code and can be modularized later.

For allmodconfig, select SPMI via Kconfig.gki instead of gki_defconfig,
because otherwise allmodconfig will build SPMI=m and REGMAP_SPMI=y,
which is not allowed.

Bug: 248307451
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Ic3833e3a2dc44386c12a2422562994a1581a549c
2022-09-23 12:39:42 -07:00
ebf227d078 ANDROID: Convert db845c to a mixed build.
* This means using GKI[0] artifacts as base for the kernel.

[0] https://source.android.com/docs/core/architecture/kernel/generic-kernel-image#fragmentation-fix-gki

* It was initially submitted as part of https://r.android.com/q/topic:db845c_mixed_build but then reverted in https://r.android.com/q/topic:revert-2188970-db845c_mixed_build-YESQWWKQCV

* https://android-review.googlesource.com/c/kernel/common/+/2203435 fixes the previous reason for reverting, making it safe to submit it again.

Bug: 233404531
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
Change-Id: Id7986dacf4bcdb9a54193c5277e2c6d968b3aaa6
2022-09-06 23:21:51 +00:00
0f3b768c95 ANDROID: kleaf: Do not include GKI modules in default output of //common:kernel_aarch64.
When a device kernel builds their own modules that
conflicts with the GKI modules (zram and zsmalloc
for android13-5.15), the dist target will produce a
warning about conflicting source files.

Hence, do not include zram and zsmalloc to the device
dist targets by default when they include //common:kernel_aarch64
only.

If they wish to include zram and zsmalloc in
the distribution on the android13-5.15 branch,
they may add the following to the
dist target:

  "//common:kernel_aarch64_modules",

or individual modules:

  "//common:kernel_aarch64/drivers/block/zram/zram.ko",
  "//common:kernel_aarch64/mm/zsmalloc.ko",

//common:kernel_aarch64_dist continues to include GKI
modules defined by the branch.

Bug: 244215515
Test: manual
Change-Id: Iae701d7d452e6ed3a849fdfd03550551ca2af17e
Signed-off-by: Yifan Hong <elsk@google.com>
2022-09-06 17:16:39 +00:00
ea97a30864 Revert "ANDROID: Convert db845c to a mixed build."
Revert submission 2188970-db845c_mixed_build

Reason for revert: It breaks android-mainline
Reverted Changes:
I6cfb1ef19:ANDROID: Convert db845c to a mixed build.
I6680cb8ef:kleaf: Convert db845c to a mixed build.
I6cfb1ef19:ANDROID: Convert db845c to a mixed build.

Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
Change-Id: I337800cc4483877587f0a25d1fde2dadc444a81e
2022-08-23 23:31:35 +00:00
5caceeff5b ANDROID: Convert db845c to a mixed build.
* This means using GKI[0] artifacts as base for the kernel.

[0] https://source.android.com/docs/core/architecture/kernel/generic-kernel-image#fragmentation-fix-gki

Bug: 233404531
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
Change-Id: I6cfb1ef1904e4b8d2755552ea139f150ce09db90
2022-08-23 18:49:56 +00:00
99ff927bd3 ANDROID: fix up db845c build
In commit 3158e39aa5f4 ("phy: qcom-qmp: switch to new split QMP PHY
driver") the qcom-qmp driver got split up into smaller drivers, so
update the BUILD.bazel file so that the build can continue to work
properly.

Fixes: 3158e39aa5f4 ("phy: qcom-qmp: switch to new split QMP PHY driver")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I23da8f220c78a497d2a7d2406cbcca36c4637b6f
Signed-off-by: Will McVicker <willmcvicker@google.com>
2022-08-23 05:41:27 +00:00
6c3aa6981b ANDROID: db845c_gki: Enable PINCTRL_SM8250_LPASS_LPI
Upsteam commit 9ce49018c692 ("pinctrl: qcom: Extract chip
specific LPASS LPI code") moved the RB5 (SM8250) specific
code from the LPASS LPI pinctrl driver to a new SM8250
LPASS LPI pinctrl driver. So enable that driver explicitly
otherwise sound drivers on RB5 won't probe.

Bug: 146449535
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Idfe2a097f11f0203f0ffb7cbaad780bd82271441
2022-07-11 21:04:59 +05:30
d5fe95e161 ANDROID: BUILD.bazel: the ufs-qcom module moved.
Commit dd11376b9f1b ("scsi: ufs: Split the drivers/scsi/ufs directory")
moved the UFS host drivers into drivers/scsi/ufs/host/ so fix that up in
the BUILD.bazel file for when it tries to find the built modules.

Fixes: dd11376b9f1b ("scsi: ufs: Split the drivers/scsi/ufs directory")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7cb54980c50822ecbda244882b1481be16d0f3aa
2022-07-08 10:38:26 +02:00
6de0a2769e ANDROID: add drivers/leds/rgb/leds-qcom-lpg.ko to db845c module list
Add the drivers/leds/rgb/leds-qcom-lpg.ko driver to the list of modules
that the db845c build needs as it is now upstream and actually builds.

Fixes: 24e2d05d1b68 ("leds: Add driver for Qualcomm LPG")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5bb6ffe688c5c9fe85313d1d7302d248789508ab
2022-06-29 20:08:57 +02:00
1e0ed73b2e ANDROID: Enable SM8450 drivers and DTB in the db845c config
Bug: 217455793
Change-Id: I710c1e40161bb49ad68ae7ef8804fa25c7b8a232
Signed-off-by: Peter Collingbourne <pcc@google.com>
2022-06-10 15:08:55 -07:00
7d10ec0559 ANDROID: BUILD.bazel: db845c: Fix up modules_out for drm_dp_helper -> drm_display_helper change
In commit 1e0f66420b13 ("drm/display: Introduce a DRM display-helper
module") the generated module file names were changed. This patch
updates the BUILD.bazel db845c section to update it with the new
module names.

Additionally commit f5d01644921b ("drm/msm: select DRM_DP_AUX_BUS
for the AUX bus support") added a dependency on the drm_dp_aux_bus
module.

Fixes: 1a016dd7ce28 ("Merge 2518f226c60d ("Merge tag 'drm-next-2022-05-25' of git://anongit.freedesktop.org/drm/drm") into android-mainline")
Reported-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5b0695c92e9627d3b5f3ac38b32ee7240a8a894b
2022-06-09 09:45:32 +02:00
3b54ba0076 ANDROID: db845c: Add zram and zsmalloc to module_outs
db845c is not a mixed build yet, so need to add GKI
modules to it's module_outs for kleaf builds to
resolve hard failures in kleaf build for module copy.

Bug: 230519159
Test: tools/bazel run //common:db845c_dist
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: If3ce64a2b5f6b2f019a393f4674de30ac7437069
(cherry picked from commit eb38c6d799525c89bc3b1817dc22c34fa2281e09)
2022-06-08 21:44:24 +00:00
08ae9a7975 ANDROID: GKI: ZSMALLOC & ZRAM as modules for arm64
Enable zram and zsmalloc (dependency for zram) as
unprotected modules for aarch64. These are already
being used as modules by the vendor currently; so
needs to be unprotected.

Bug: 230519159
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I7c617c1a24f6e083301cbed67d0d323388cbd622
(cherry picked from commit 0fe423433bb3fa0b5003409bbd59a972e6c235e2)
2022-06-08 21:44:10 +00:00
bbe44ba330 ANDROID: kleaf: db845c drop ax88179_178a.ko.
Remove because the config is no longer enabled.
This fixes the kleaf build for db845c.

Test: manual
Bug: 229913034
Change-Id: Ie54e843d4dce6216ac25be0a57cd84b4ee8537b1
Signed-off-by: Yifan Hong <elsk@google.com>
2022-05-03 13:21:09 -07:00
32787ef6d2 ANDROID: enable db845c kleaf build.
Kleaf replaces build.sh. Define db845c target in Bazel
so it may be built with the following command.

Kleaf requires the list of in-tree kernel modules to be
listed explicitly.

Test: tools/bazel run //common:db845c_dist

Bug: 229913034

Change-Id: I725d7d6c4e9897cad58f970821cd2b222ac64889
Signed-off-by: Yifan Hong <elsk@google.com>
2022-04-26 18:46:59 +00:00
e681fef273 ANDROID: kleaf: build/kleaf -> build/kernel/kleaf
This is part of a migration process from build/
to build/kernel.

Test: builds
Bug: 204425264
Change-Id: Id29f8e476fbb3590196789b2b578865798f24cd3
Signed-off-by: Yifan Hong <elsk@google.com>
2022-02-04 21:58:34 +00:00
15cc1a6f99 ANDROID: kleaf: drop toolchain_version = CLANG_VERSION
This is the default now.

Test: TH
Bug: 212640658
Change-Id: I3fc1d7149f4e180ff1919339beb6432adf73dab3
Signed-off-by: Yifan Hong <elsk@google.com>
2022-01-10 19:39:59 -08:00
b3a2cd885d ANDROID: Kleaf: Fix branch-specific toolchain_version
In order to update the Clang version per branch, use the branch specific
value defined in build.config.constants instead of falling back to the
default toolchain defined in the Kleaf implementation.

Bug: 210296725
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I8929ec4b4174fc286710a5c66741b140656bb455
2021-12-13 20:57:52 +00:00
2eefbec0f3 ANDROID: Kleaf: common kernel public
.... so it can be referenced in mixed builds.

Test: build cuttlefish
Bug: 202075496
Change-Id: I8d79847c54c639fa619edf3280c021f02ba76645
Signed-off-by: Yifan Hong <elsk@google.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
2021-11-03 18:52:00 +00:00
d04a5c4694 ANDROID: Kleaf: use 'define_common_kernels()' macro
Using the macro avoids duplication and boilerplate across branches.

Bug: 192655270
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ie0034ae396baaaaf07035c3532b71a70918e0aba
2021-08-16 22:14:36 +00:00
c7ca969870 ANDROID: Kleaf: adopt new way of expressing the build config
Build config files can now be expressed as files relative to the
BUILD.bazel file. That makes this mechanism much more portable.

Bug: 192656402
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Iefa7277f21e9412e71c9738664d006246b05be6e
2021-07-14 17:42:33 +01:00
bb61c74c3e ANDROID: kleaf: sources -> srcs.
That's the common keyword we use.

Test: pass
Bug: 192655270
Signed-off-by: Yifan Hong <elsk@google.com>
Change-Id: I77d58fb99e0186e88a63ba8576ac23eabc72833e
2021-07-09 18:12:01 +00:00
d32d9e8471 ANDROID: Kleaf: drop kernel header outputs
For the moment, do not bother with the kernel headers as outputs. While
splitting up the bazel build build/build.sh invocation, this will get
in the way as those will not be immediately produced by the new macros.
Hence, do not not expect them.

Bug: 192656402
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ieb041d34cf5667f7e3cee14b4cea41a7c6024998
2021-07-02 16:17:17 +01:00
3b77e032e0 ANDROID: Kleaf: use globs to express sources
The updated kernel_build macro requires the usage of glob() to express
the sources involved.

Bug: 189451175
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ib5953fe4ed2c4a219f2296c1991daa317032f64e
2021-06-29 08:45:22 +00:00
3334b77042 ANDROID: Kleaf: initial bazel based GKI kernel build
Add build rules to build the GKI kernels using the hermetic bazel build.
The rules understand how to set up a build environment from build_config
and locations of the sources and build_configs.

Sample invocations:

    $ bazel build //common:kernel_aarch64
    $ bazel build //common:kernel_aarch64_debug
    $ bazel build //common:kernel_x86_64
    $ bazel build //common:kernel_x86_64_debug

Bug: 189451175
Change-Id: I2f06b2b79dbcbf197cb23d68b3c2f6786191e19d
Signed-off-by: Matthias Maennich <maennich@google.com>
2021-06-26 13:38:00 +00:00