Merge "Exclude kernel_headers from vendor snapshot" am: 6fec12abc7

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1328736

Change-Id: I8f7f4157d742032e56df3371bc2d8c63e2e65e4f
This commit is contained in:
Inseob Kim
2020-06-17 00:04:33 +00:00
committed by Automerger Merge Worker

View File

@@ -548,6 +548,10 @@ func isVendorSnapshotModule(m *Module, moduleDir string) bool {
if !m.IsForPlatform() || m.isSnapshotPrebuilt() || !m.inVendor() {
return false
}
// skip kernel_headers which always depend on vendor
if _, ok := m.linker.(*kernelHeadersDecorator); ok {
return false
}
// Libraries
if l, ok := m.linker.(snapshotLibraryInterface); ok {