Loading ui/build/config.go +9 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ type configImpl struct { katiSuffix string targetDevice string targetDeviceDir string fullBuild bool // Autodetected totalRAM uint64 Loading Loading @@ -791,6 +792,14 @@ func (c *configImpl) SetTargetDevice(device string) { c.targetDevice = device } func (c *configImpl) FullBuild() bool { return c.fullBuild } func (c *configImpl) SetFullBuild(fullBuild bool) { c.fullBuild = fullBuild } func (c *configImpl) TargetBuildVariant() string { if v, ok := c.environ.Get("TARGET_BUILD_VARIANT"); ok { return v Loading ui/build/dumpvars.go +4 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,9 @@ func runMakeProductConfig(ctx Context, config Config) { // So that later Kati runs can find BoardConfig.mk faster "TARGET_DEVICE_DIR", // To decide whether to skip the old installed cleanup step. "FULL_BUILD", // Whether --werror_overriding_commands will work "BUILD_BROKEN_DUP_RULES", Loading Loading @@ -278,6 +281,7 @@ func runMakeProductConfig(ctx Context, config Config) { config.SetNinjaArgs(strings.Fields(makeVars["NINJA_GOALS"])) config.SetTargetDevice(makeVars["TARGET_DEVICE"]) config.SetTargetDeviceDir(makeVars["TARGET_DEVICE_DIR"]) config.SetFullBuild(makeVars["FULL_BUILD"] == "true") config.SetBuildBrokenDupRules(makeVars["BUILD_BROKEN_DUP_RULES"] == "true") config.SetBuildBrokenUsesNetwork(makeVars["BUILD_BROKEN_USES_NETWORK"] == "true") Loading ui/build/kati.go +5 −1 Original line number Diff line number Diff line Loading @@ -229,8 +229,12 @@ func runKatiBuild(ctx Context, config Config) { // Cleanup steps. cleanCopyHeaders(ctx, config) // Skip the old installed file cleanup step for few non-full build goals as we don't create // an installed file list for them. if config.FullBuild() { cleanOldInstalledFiles(ctx, config) } } // Clean out obsolete header files on the disk that were *not copied* during the // build with BUILD_COPY_HEADERS and LOCAL_COPY_HEADERS. Loading Loading
ui/build/config.go +9 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ type configImpl struct { katiSuffix string targetDevice string targetDeviceDir string fullBuild bool // Autodetected totalRAM uint64 Loading Loading @@ -791,6 +792,14 @@ func (c *configImpl) SetTargetDevice(device string) { c.targetDevice = device } func (c *configImpl) FullBuild() bool { return c.fullBuild } func (c *configImpl) SetFullBuild(fullBuild bool) { c.fullBuild = fullBuild } func (c *configImpl) TargetBuildVariant() string { if v, ok := c.environ.Get("TARGET_BUILD_VARIANT"); ok { return v Loading
ui/build/dumpvars.go +4 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,9 @@ func runMakeProductConfig(ctx Context, config Config) { // So that later Kati runs can find BoardConfig.mk faster "TARGET_DEVICE_DIR", // To decide whether to skip the old installed cleanup step. "FULL_BUILD", // Whether --werror_overriding_commands will work "BUILD_BROKEN_DUP_RULES", Loading Loading @@ -278,6 +281,7 @@ func runMakeProductConfig(ctx Context, config Config) { config.SetNinjaArgs(strings.Fields(makeVars["NINJA_GOALS"])) config.SetTargetDevice(makeVars["TARGET_DEVICE"]) config.SetTargetDeviceDir(makeVars["TARGET_DEVICE_DIR"]) config.SetFullBuild(makeVars["FULL_BUILD"] == "true") config.SetBuildBrokenDupRules(makeVars["BUILD_BROKEN_DUP_RULES"] == "true") config.SetBuildBrokenUsesNetwork(makeVars["BUILD_BROKEN_USES_NETWORK"] == "true") Loading
ui/build/kati.go +5 −1 Original line number Diff line number Diff line Loading @@ -229,8 +229,12 @@ func runKatiBuild(ctx Context, config Config) { // Cleanup steps. cleanCopyHeaders(ctx, config) // Skip the old installed file cleanup step for few non-full build goals as we don't create // an installed file list for them. if config.FullBuild() { cleanOldInstalledFiles(ctx, config) } } // Clean out obsolete header files on the disk that were *not copied* during the // build with BUILD_COPY_HEADERS and LOCAL_COPY_HEADERS. Loading