Don't write license data to Android-${TARGET_PRODUCT}.mk
All the necessary license data is already propagated through the license metadata file, and the entries in Android-${TARGET_PRODUCT}.mk are not used. Remove them, which should both reduce the size and parsing cost of the Android-${TARGET_PRODUCT}.mk file and also removes a variable that changes when dependencies are added or removed, which will eventually allow running kati less often. Bug: 309006256 Test: No change to out/Android-aosp_cf_x86_64_phone.ninja Change-Id: Idfeb6fd10d77497ca274f8e74fe8e994ce1cafe6
This commit is contained in:
@@ -229,7 +229,6 @@ func (bpf *bpf) AndroidMk() android.AndroidMkData {
|
||||
names = append(names, objName)
|
||||
fmt.Fprintln(w, "include $(CLEAR_VARS)", " # bpf.bpf.obj")
|
||||
fmt.Fprintln(w, "LOCAL_MODULE := ", objName)
|
||||
data.Entries.WriteLicenseVariables(w)
|
||||
fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", obj.String())
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", obj.Base())
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC")
|
||||
@@ -239,7 +238,6 @@ func (bpf *bpf) AndroidMk() android.AndroidMkData {
|
||||
}
|
||||
fmt.Fprintln(w, "include $(CLEAR_VARS)", " # bpf.bpf")
|
||||
fmt.Fprintln(w, "LOCAL_MODULE := ", name)
|
||||
data.Entries.WriteLicenseVariables(w)
|
||||
android.AndroidMkEmitAssignList(w, "LOCAL_REQUIRED_MODULES", names)
|
||||
fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
||||
},
|
||||
|
Reference in New Issue
Block a user