summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2021-10-05 11:05:02 -0700
committer Cole Faust <colefaust@google.com> 2021-10-05 11:05:02 -0700
commitebf79bfb4a0b51a62075c5fef089fb2845f958fb (patch)
treecf1b41e261ee2c07ee7f21398a30530971c4efca
parent191be3a186a0face85909b92b28e3dc8a27940be (diff)
Remove mk2rbc's support for using a product name
Now that the product and board config pass makefiles to mk2rbc, we don't need to support passing a product name. Bug: 201700692 Test: Manually Change-Id: I787f0f98bc5ab3cefeefb7af8d342aba84769925
-rw-r--r--mk2rbc/cmd/mk2rbc.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/mk2rbc/cmd/mk2rbc.go b/mk2rbc/cmd/mk2rbc.go
index 9d0f0c1b0..d8e701886 100644
--- a/mk2rbc/cmd/mk2rbc.go
+++ b/mk2rbc/cmd/mk2rbc.go
@@ -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