Replace {device,qti}_kernel_headers only when building inline

Change-Id: Ibbae77a92f5f96da92213d0a0078867ddeeeaf04
This commit is contained in:
Chirayu Desai 2021-12-10 23:28:28 +05:30 committed by Bartłomiej Rudecki
parent 87f74a3d2b
commit d0ee341157
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -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)
}