Merge changes from topics "obsolete_broken_dup_copy_headers", "obsolete_broken_phony_targets"

am: 49495ee63f

Change-Id: Iaa35295b6e69383278c080090fa314eeff115bd1
This commit is contained in:
Dan Willemsen
2019-04-19 17:07:04 -07:00
committed by android-build-merger
4 changed files with 7 additions and 45 deletions

View File

@@ -59,11 +59,6 @@ var buildBrokenSettings = []struct {
behavior BuildBrokenBehavior
warnings []string
}{
{
name: "BUILD_BROKEN_DUP_COPY_HEADERS",
behavior: DefaultDeprecated,
warnings: []string{"Duplicate header copy:"},
},
{
name: "BUILD_BROKEN_DUP_RULES",
behavior: DefaultFalse,
@@ -71,21 +66,12 @@ var buildBrokenSettings = []struct {
},
{
name: "BUILD_BROKEN_ANDROIDMK_EXPORTS",
behavior: DefaultFalse,
behavior: DefaultDeprecated,
warnings: []string{"export_keyword"},
},
{
name: "BUILD_BROKEN_PHONY_TARGETS",
behavior: DefaultFalse,
warnings: []string{
"depends on PHONY target",
"looks like a real file",
"writing to readonly directory",
},
},
{
name: "BUILD_BROKEN_ENG_DEBUG_TAGS",
behavior: DefaultTrue,
behavior: DefaultDeprecated,
warnings: []string{
"Changes.md#LOCAL_MODULE_TAGS",
},

View File

@@ -53,9 +53,8 @@ type configImpl struct {
pdkBuild bool
brokenDupRules bool
brokenPhonyTargets bool
brokenUsesNetwork bool
brokenDupRules bool
brokenUsesNetwork bool
pathReplaced bool
}
@@ -615,14 +614,6 @@ func (c *configImpl) BuildBrokenDupRules() bool {
return c.brokenDupRules
}
func (c *configImpl) SetBuildBrokenPhonyTargets(val bool) {
c.brokenPhonyTargets = val
}
func (c *configImpl) BuildBrokenPhonyTargets() bool {
return c.brokenPhonyTargets
}
func (c *configImpl) SetBuildBrokenUsesNetwork(val bool) {
c.brokenUsesNetwork = val
}

View File

@@ -200,16 +200,12 @@ func runMakeProductConfig(ctx Context, config Config) {
// Whether --werror_overriding_commands will work
"BUILD_BROKEN_DUP_RULES",
// Used to turn on --werror_ options in Kati
"BUILD_BROKEN_PHONY_TARGETS",
// Whether to enable the network during the build
"BUILD_BROKEN_USES_NETWORK",
// Not used, but useful to be in the soong.log
"BOARD_VNDK_VERSION",
"BUILD_BROKEN_ANDROIDMK_EXPORTS",
"BUILD_BROKEN_DUP_COPY_HEADERS",
"BUILD_BROKEN_ENG_DEBUG_TAGS",
"DEFAULT_WARNING_BUILD_MODULE_TYPES",
@@ -276,6 +272,5 @@ func runMakeProductConfig(ctx Context, config Config) {
config.SetPdkBuild(make_vars["TARGET_BUILD_PDK"] == "true")
config.SetBuildBrokenDupRules(make_vars["BUILD_BROKEN_DUP_RULES"] == "true")
config.SetBuildBrokenPhonyTargets(make_vars["BUILD_BROKEN_PHONY_TARGETS"] == "true")
config.SetBuildBrokenUsesNetwork(make_vars["BUILD_BROKEN_USES_NETWORK"] == "true")
}

View File

@@ -81,6 +81,9 @@ func runKati(ctx Context, config Config, extraSuffix string, args []string, envF
"--werror_suffix_rules",
"--warn_real_to_phony",
"--warn_phony_looks_real",
"--werror_real_to_phony",
"--werror_phony_looks_real",
"--werror_writable",
"--top_level_phony",
"--kati_stats",
}, args...)
@@ -138,13 +141,6 @@ func runKatiBuild(ctx Context, config Config) {
args = append(args, "--werror_overriding_commands")
}
if !config.BuildBrokenPhonyTargets() {
args = append(args,
"--werror_real_to_phony",
"--werror_phony_looks_real",
"--werror_writable")
}
args = append(args, config.KatiArgs()...)
args = append(args,
@@ -162,11 +158,8 @@ func runKatiPackage(ctx Context, config Config) {
args := []string{
"--writable", config.DistDir() + "/",
"--werror_writable",
"--werror_implicit_rules",
"--werror_overriding_commands",
"--werror_real_to_phony",
"--werror_phony_looks_real",
"-f", "build/make/packaging/main.mk",
"KATI_PACKAGE_MK_DIR=" + config.KatiPackageMkDir(),
}
@@ -202,11 +195,8 @@ func runKatiCleanSpec(ctx Context, config Config) {
defer ctx.EndTrace()
runKati(ctx, config, katiCleanspecSuffix, []string{
"--werror_writable",
"--werror_implicit_rules",
"--werror_overriding_commands",
"--werror_real_to_phony",
"--werror_phony_looks_real",
"-f", "build/make/core/cleanbuild.mk",
"SOONG_MAKEVARS_MK=" + config.SoongMakeVarsMk(),
"TARGET_DEVICE_DIR=" + config.TargetDeviceDir(),