Remove (TARGET|HOST)_BUILD_TYPE path modifications
They don't really affect anything general in android except for the
output path.
Bug: 65453318
Test: TARGET_BUILD_TYPE=debug m
Change-Id: I98c17fefae61f9f7936e184bd1f8441086bb7d23
diff --git a/ui/build/config.go b/ui/build/config.go
index 1c2f73b..2b0da4d 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -403,11 +403,7 @@
}
func (c *configImpl) ProductOut() string {
- if buildType, ok := c.environ.Get("TARGET_BUILD_TYPE"); ok && buildType == "debug" {
- return filepath.Join(c.OutDir(), "debug", "target", "product", c.TargetDevice())
- } else {
- return filepath.Join(c.OutDir(), "target", "product", c.TargetDevice())
- }
+ return filepath.Join(c.OutDir(), "target", "product", c.TargetDevice())
}
func (c *configImpl) DevicePreviousProductConfig() string {
@@ -415,11 +411,7 @@
}
func (c *configImpl) hostOutRoot() string {
- if buildType, ok := c.environ.Get("HOST_BUILD_TYPE"); ok && buildType == "debug" {
- return filepath.Join(c.OutDir(), "debug", "host")
- } else {
- return filepath.Join(c.OutDir(), "host")
- }
+ return filepath.Join(c.OutDir(), "host")
}
func (c *configImpl) HostOut() string {