allow empty phony modules
In order to allow reservation of names in the build system. Bug: 162275959 Test: build only Change-Id: I8f1622bdbebe794dafd5c341d861da5468cd52bd
This commit is contained in:
parent
1b478e57a0
commit
9cd45782e5
|
@ -44,11 +44,6 @@ func (p *phony) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
p.requiredModuleNames = ctx.RequiredModuleNames()
|
p.requiredModuleNames = ctx.RequiredModuleNames()
|
||||||
p.hostRequiredModuleNames = ctx.HostRequiredModuleNames()
|
p.hostRequiredModuleNames = ctx.HostRequiredModuleNames()
|
||||||
p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames()
|
p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames()
|
||||||
if len(p.requiredModuleNames) == 0 &&
|
|
||||||
len(p.hostRequiredModuleNames) == 0 && len(p.targetRequiredModuleNames) == 0 {
|
|
||||||
ctx.PropertyErrorf("required", "phony must not have empty required dependencies "+
|
|
||||||
"in order to be useful(and therefore permitted).")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *phony) AndroidMk() android.AndroidMkData {
|
func (p *phony) AndroidMk() android.AndroidMkData {
|
||||||
|
|
Loading…
Reference in New Issue