ANDROID: Add aoc-usb headers to aarch64 allowlist

Export these headers in all_headers_allowlist_aarch64, for aoc-usb
drivers to use.

Bug: 343869732
Test: Verified the aoc-usb ddk module is able to include the headers.
Change-Id: I804522cfd0646058dff921ebe71cb08bc3242f6b
Signed-off-by: Yuan-Jen Cheng <cyuanjen@google.com>
This commit is contained in:
Yuan-Jen Cheng 2024-07-30 13:46:41 +08:00
parent 6c3bccd3d8
commit bdd9aa1db4

View File

@ -876,6 +876,24 @@ ddk_headers(
# Implementation details for DDK headers. The targets below cannot be directly
# depended on by DDK modules.
# Headers needed to include drivers/usb/host/xhci.h.
ddk_headers(
name = "xhci_headers",
hdrs = [
"drivers/usb/core/hub.h",
"drivers/usb/core/usb.h",
"drivers/usb/host/pci-quirks.h",
"drivers/usb/host/xhci.h",
"drivers/usb/host/xhci-ext-caps.h",
"drivers/usb/host/xhci-plat.h",
],
linux_includes = [
"drivers/usb",
"drivers/usb/host",
],
visibility = ["//visibility:private"],
)
# DDK headers allowlist. This is the list of all headers and include
# directories that are safe to use in DDK modules.
ddk_headers(
@ -883,8 +901,10 @@ ddk_headers(
hdrs = [
"drivers/thermal/thermal_core.h",
"drivers/thermal/thermal_netlink.h",
"sound/usb/usbaudio.h",
":all_headers_allowlist_aarch64_globs",
":all_headers_allowlist_common_globs",
":xhci_headers",
],
# The list of include directories where source files can #include headers
# from. In other words, these are the `-I` option to the C compiler.
@ -893,6 +913,7 @@ ddk_headers(
"arch/arm64/include",
"arch/arm64/include/uapi",
"drivers/thermal",
"sound/usb",
"include",
"include/uapi",
],