Replace {device,qti}_kernel_headers only when building inline
Change-Id: Ibbae77a92f5f96da92213d0a0078867ddeeeaf04
This commit is contained in:
parent
87f74a3d2b
commit
d0ee341157
1 changed files with 4 additions and 2 deletions
6
cc/cc.go
6
cc/cc.go
|
@ -2474,8 +2474,10 @@ func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
|
|||
// Replace device_kernel_headers with generated_kernel_headers
|
||||
// for inline kernel building
|
||||
if entry == "device_kernel_headers" || entry == "qti_kernel_headers" {
|
||||
newHeaderLibs = append(newHeaderLibs, "generated_kernel_headers")
|
||||
continue
|
||||
if (ctx.Config().Getenv("INLINE_KERNEL_BUILDING") == "true") {
|
||||
newHeaderLibs = append(newHeaderLibs, "generated_kernel_headers")
|
||||
continue
|
||||
}
|
||||
}
|
||||
newHeaderLibs = append(newHeaderLibs, entry)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue