diff --git a/cc/vendor_snapshot.go b/cc/vendor_snapshot.go index 0af22580a..6df940c79 100644 --- a/cc/vendor_snapshot.go +++ b/cc/vendor_snapshot.go @@ -484,18 +484,22 @@ type vendorSnapshotSingleton struct { var ( // Modules under following directories are ignored. They are OEM's and vendor's - // proprietary modules(device/, vendor/, and hardware/). + // proprietary modules(device/, kernel/, vendor/, and hardware/). // TODO(b/65377115): Clean up these with more maintainable way vendorProprietaryDirs = []string{ "device", + "kernel", "vendor", "hardware", } // Modules under following directories are included as they are in AOSP, - // although hardware/ is normally for vendor's own. + // although hardware/ and kernel/ are normally for vendor's own. // TODO(b/65377115): Clean up these with more maintainable way aospDirsUnderProprietary = []string{ + "kernel/configs", + "kernel/prebuilts", + "kernel/tests", "hardware/interfaces", "hardware/libhardware", "hardware/libhardware_legacy",