Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa2b7cc2 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Rename mk2rbc/cmd to make `go install` work properly

The standard go tooling assumes that a package's binary name should be
the name of the containing folder. Before this change, `go install` or
`go build` (without `-o`) names this binary `cmd`.

Test: treehugger
Change-Id: I45a4e97f4a0d59744d644e30636250ceefe3bd1c
parent cd7db257
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ package {


blueprint_go_binary {
blueprint_go_binary {
    name: "mk2rbc",
    name: "mk2rbc",
    srcs: ["cmd/mk2rbc.go"],
    srcs: ["mk2rbc/mk2rbc.go"],
    deps: [
    deps: [
        "mk2rbc-lib",
        "mk2rbc-lib",
        "androidmk-parser",
        "androidmk-parser",
+0 −0

File moved.

+2 −2
Original line number Original line Diff line number Diff line
@@ -33,8 +33,8 @@ export TOP=$(gettop)
source ${TOP}/build/soong/scripts/microfactory.bash
source ${TOP}/build/soong/scripts/microfactory.bash


soong_build_go soong_ui android/soong/cmd/soong_ui
soong_build_go soong_ui android/soong/cmd/soong_ui
soong_build_go mk2rbc android/soong/mk2rbc/cmd
soong_build_go mk2rbc android/soong/mk2rbc/mk2rbc
soong_build_go rbcrun rbcrun/cmd
soong_build_go rbcrun rbcrun/rbcrun


cd ${TOP}
cd ${TOP}
exec "$(getoutdir)/soong_ui" "$@"
exec "$(getoutdir)/soong_ui" "$@"