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

@@ -313,45 +313,6 @@ var neverallowTests = []struct {
"module \"outside_art_libraries\": violates neverallow",
},
},
{
name: "disallowed makefile_goal",
fs: map[string][]byte{
"Android.bp": []byte(`
makefile_goal {
name: "foo",
product_out_path: "boot/trap.img"
}
`),
},
expectedErrors: []string{
"Only boot images.* may be imported as a makefile goal",
},
},
{
name: "disallowed makefile_goal outside external",
fs: map[string][]byte{
"project/Android.bp": []byte(`
makefile_goal {
name: "foo",
product_out_path: "obj/EXE/foo",
}
`),
},
expectedErrors: []string{
"not in allowed projects",
},
},
{
name: "allow makefile_goal within external",
fs: map[string][]byte{
"frameworks/opt/net/wifi/libwifi_hal/Android.bp": []byte(`
makefile_goal {
name: "foo",
product_out_path: "obj/EXE/foo",
}
`),
},
},
// Tests for the rule prohibiting the use of framework
{
name: "prohibit framework",
@@ -391,7 +352,6 @@ var prepareForNeverAllowTest = GroupFixturePreparers(
ctx.RegisterModuleType("java_library", newMockJavaLibraryModule)
ctx.RegisterModuleType("java_library_host", newMockJavaLibraryModule)
ctx.RegisterModuleType("java_device_for_host", newMockJavaLibraryModule)
ctx.RegisterModuleType("makefile_goal", newMockMakefileGoalModule)
}),
)
@@ -489,22 +449,3 @@ func newMockJavaLibraryModule() Module {
func (p *mockJavaLibraryModule) GenerateAndroidBuildActions(ModuleContext) {
}
type mockMakefileGoalProperties struct {
Product_out_path *string
}
type mockMakefileGoalModule struct {
ModuleBase
properties mockMakefileGoalProperties
}
func newMockMakefileGoalModule() Module {
m := &mockMakefileGoalModule{}
m.AddProperties(&m.properties)
InitAndroidModule(m)
return m
}
func (p *mockMakefileGoalModule) GenerateAndroidBuildActions(ModuleContext) {
}