Remove makefile_goal

This was added to use 'make' target in soong. It was a hacky way and
caused many problems:
- can't track dependency
- doesn't work with sanitizer
- VSDK snapshot doesn't support
- ..

Now references are all gone. Let's remove it.

Bug: n/a
Test: m
Change-Id: I0336a490780f37a4e77d343c61315686e23db643
This commit is contained in:
Jooyung Han
2023-04-26 16:39:20 +09:00
parent dfd4c8b8a4
commit a2b57abb4a
4 changed files with 0 additions and 173 deletions

View File

@@ -55,7 +55,6 @@ func init() {
AddNeverAllowRules(createJavaDeviceForHostRules()...)
AddNeverAllowRules(createCcSdkVariantRules()...)
AddNeverAllowRules(createUncompressDexRules()...)
AddNeverAllowRules(createMakefileGoalRules()...)
AddNeverAllowRules(createInitFirstStageRules()...)
AddNeverAllowRules(createProhibitFrameworkAccessRules()...)
AddNeverAllowRules(createBp2BuildRule())
@@ -236,20 +235,6 @@ func createUncompressDexRules() []Rule {
}
}
func createMakefileGoalRules() []Rule {
allowlist := []string{
// libwifi_hal uses makefile_goal for its dependencies
"frameworks/opt/net/wifi/libwifi_hal",
}
return []Rule{
NeverAllow().
ModuleType("makefile_goal").
WithoutMatcher("product_out_path", Regexp("^boot[0-9a-zA-Z.-]*[.]img$")).
NotIn(allowlist...).
Because("Only boot images may be imported as a makefile goal if not in allowed projects"),
}
}
func createInitFirstStageRules() []Rule {
return []Rule{
NeverAllow().