Remove mk2rbc's support for using a product name am: ebf79bfb4a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1845613 Change-Id: I3d464b450af8c1f79fdbee7e3a8593032ff53620
This commit is contained in:
@@ -155,22 +155,12 @@ func main() {
|
||||
|
||||
// Convert!
|
||||
files := flag.Args()
|
||||
productConfigMap := buildProductConfigMap()
|
||||
if *allInSource {
|
||||
productConfigMap := buildProductConfigMap()
|
||||
for _, path := range productConfigMap {
|
||||
files = append(files, path)
|
||||
}
|
||||
}
|
||||
for i, file := range files {
|
||||
if _, err := os.Stat(file); os.IsNotExist(err) {
|
||||
temp, ok := productConfigMap[file]
|
||||
if ok {
|
||||
files[i] = temp
|
||||
} else {
|
||||
quit(fmt.Errorf("%s is neither a product makefile nor a product name", file))
|
||||
}
|
||||
}
|
||||
}
|
||||
ok := true
|
||||
for _, mkFile := range files {
|
||||
ok = convertOne(mkFile) && ok
|
||||
|
Reference in New Issue
Block a user