Add dependency on Soong config module definition file

Add a dependency on the Soong config module definition file in case
it wasn't called Android.bp.

Fixes: 148866376
Test: m checkbuild
Change-Id: Ib441881bcee52fd1dc3a8d1c5ae4f5f0b7efe3ce
This commit is contained in:
Colin Cross 2020-02-05 16:26:19 -08:00
parent 9acd7c3d36
commit 39e545cc06
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ func loadSoongConfigModuleTypeDefinition(ctx LoadHookContext, from string) map[s
}
return ctx.Config().Once(key, func() interface{} {
ctx.AddNinjaFileDeps(from)
r, err := ctx.Config().fs.Open(from)
if err != nil {
ctx.PropertyErrorf("from", "failed to open %q: %s", from, err)