Skip to content

Commit

Permalink
soong: Meow
Browse files Browse the repository at this point in the history
Signed-off-by: Herobuxx <[email protected]>
  • Loading branch information
herobuxx committed Jun 22, 2020
1 parent 3b55d67 commit cafd2ba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bootstrap_go_package {
"soong",
"soong-env",
"soong-shared",
"soong-gzosp",
"soong-cat",
],
srcs: [
"android/androidmk.go",
Expand Down
2 changes: 1 addition & 1 deletion android/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ func (c *deviceConfig) DeviceKernelHeaderDirs() []string {
}

func (c *deviceConfig) SpecificCameraParametersLibrary() string {
return String(c.config.productVariables.Gzosp.Specific_camera_parameter_library)
return String(c.config.productVariables.Cat.Specific_camera_parameter_library)
}

func (c *deviceConfig) NativeCoverageEnabled() bool {
Expand Down
10 changes: 5 additions & 5 deletions android/variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"runtime"
"strings"

"gzosp/soong/android"
"cat/soong/android"

"github.com/google/blueprint/proptools"
)
Expand Down Expand Up @@ -127,8 +127,8 @@ type variableProperties struct {
Srcs []string
}

// include Gzosp variables
Gzosp android.Product_variables
// include Cat variables
Cat android.Product_variables
} `android:"arch_variant"`
}

Expand Down Expand Up @@ -293,8 +293,8 @@ type productVariables struct {

TargetFSConfigGen []string `json:",omitempty"`

// include Gzosp variables
Gzosp android.ProductVariables
// include Cat variables
Cat android.ProductVariables
}

func boolPtr(v bool) *bool {
Expand Down
2 changes: 1 addition & 1 deletion scripts/microfactory.bash
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function soong_build_go
BUILDDIR=$(getoutdir) \
SRCDIR=${TOP} \
BLUEPRINTDIR=${TOP}/build/blueprint \
EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong -pkg-path gzosp/soong=${TOP}/vendor/gzosp/build/soong -pkg-path github.com/golang/protobuf=${TOP}/external/golang-protobuf" \
EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong -pkg-path cat/soong=${TOP}/vendor/cat/build/soong -pkg-path github.com/golang/protobuf=${TOP}/external/golang-protobuf" \
build_go $@
}

Expand Down
37 changes: 3 additions & 34 deletions ui/build/dumpvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func dumpMakeVars(ctx Context, config Config, goals, vars []string, write_soong_
var BannerVars = []string{
"PLATFORM_VERSION_CODENAME",
"PLATFORM_VERSION",
"GZOSP_VERSION",
"CAT_VERSION",
"TARGET_PRODUCT",
"TARGET_BUILD_VARIANT",
"TARGET_BUILD_TYPE",
Expand Down Expand Up @@ -157,41 +157,10 @@ func Banner(make_vars map[string]string) string {
b := &bytes.Buffer{}

fmt.Fprintln(b, "=============================================================")
fmt.Fprintln(b, " @@@@@@@@ @@@@@@@@ @@@@@@ @@@@@@ @@@@@@@ ")
fmt.Fprintln(b, " @@@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@@ ")
fmt.Fprintln(b, " !@@ @@! @@! @@@ !@@ @@! @@@ ")
fmt.Fprintln(b, " !@! !@! !@! @!@ !@! !@! @!@ ")
fmt.Fprintln(b, " !@! @!@!@ @!! @!@ !@! !!@@!! @!@@!@! ")
fmt.Fprintln(b, " !!! !!@!! !!! !@! !!! !!@!!! !!@!!! ")
fmt.Fprintln(b, " :!! !!: !!: !!: !!! !:! !!: ")
fmt.Fprintln(b, " :!: !:: :!: :!: !:! !:! :!: ")
fmt.Fprintln(b, " ::: :::: :: :::: ::::: :: :::: :: :: ")
fmt.Fprintln(b, " :: :: : : :: : : : : : :: : : : ")
fmt.Fprintln(b, "=============================================================")
fmt.Fprintf(b, "%s=%s\n", "HOST_ARCH", make_vars["HOST_ARCH"])
fmt.Fprintf(b, "%s=%s\n", "HOST_2ND_ARCH", make_vars["HOST_2ND_ARCH"])
fmt.Fprintf(b, "%s=%s\n", "HOST_OS", make_vars["HOST_OS"])
fmt.Fprintf(b, "%s=%s\n", "HOST_OS_EXTRA", make_vars["HOST_OS_EXTRA"])
fmt.Fprintf(b, "%s=%s\n", "HOST_CROSS_OS", make_vars["HOST_CROSS_OS"])
fmt.Fprintf(b, "%s=%s\n", "HOST_CROSS_ARCH", make_vars["HOST_CROSS_ARCH"])
fmt.Fprintf(b, "%s=%s\n", "HOST_CROSS_2ND_ARCH", make_vars["HOST_CROSS_2ND_ARCH"])
fmt.Fprintln(b, "=============================================================")
fmt.Fprintf(b, "%s=%s\n", "GZOSP_VERSION", make_vars["GZOSP_VERSION"])
fmt.Fprintf(b, "%s=%s\n", "CAT_VERSION", make_vars["CAT_VERSION"])
fmt.Fprintf(b, "%s=%s\n", "BUILD_ID", make_vars["BUILD_ID"])
fmt.Fprintf(b, "%s=%s\n", "OUT_DIR", make_vars["OUT_DIR"])
fmt.Fprintln(b, "=============================================================")
fmt.Fprintf(b, "%s=%s\n", "PLATFORM_VERSION_CODENAME", make_vars["PLATFORM_VERSION_CODENAME"])
fmt.Fprintf(b, "%s=%s\n", "PLATFORM_VERSION", make_vars["PLATFORM_VERSION"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_PRODUCT", make_vars["TARGET_PRODUCT"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_BUILD_VARIANT", make_vars["TARGET_BUILD_VARIANT"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_BUILD_TYPE", make_vars["TARGET_BUILD_TYPE"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_GCC_VERSION", make_vars["TARGET_GCC_VERSION"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_ARCH", make_vars["TARGET_ARCH"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_ARCH_VARIANT", make_vars["TARGET_ARCH_VARIANT"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_CPU_VARIANT", make_vars["TARGET_CPU_VARIANT"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_2ND_ARCH", make_vars["TARGET_2ND_ARCH"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_2ND_ARCH_VARIANT", make_vars["TARGET_2ND_ARCH_VARIANT"])
fmt.Fprintf(b, "%s=%s\n", "TARGET_2ND_CPU_VARIANT", make_vars["TARGET_2ND_CPU_VARIANT"])
fmt.Fprintf(b, "%s=%s\n", "PRODUCT_SOONG_NAMESPACES", make_vars["PRODUCT_SOONG_NAMESPACES"])
fmt.Fprintln(b, "=============================================================")

return b.String()
Expand Down

0 comments on commit cafd2ba

Please sign in to comment.