diff options
author | 2023-11-21 15:27:17 -0800 | |
---|---|---|
committer | 2023-11-21 15:27:44 -0800 | |
commit | a16bd6b7141abfd639f62f9d0b971512adbc350e (patch) | |
tree | 4553f4f93e13e38138abc1abf022c555a74f4f81 /bpf/bpf.go | |
parent | d442a0e882aa49edbb944e21eaca2fca20d61b98 (diff) |
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
Diffstat (limited to 'bpf/bpf.go')
-rw-r--r-- | bpf/bpf.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bpf/bpf.go b/bpf/bpf.go index ba825cf28..58213aa24 100644 --- a/bpf/bpf.go +++ b/bpf/bpf.go @@ -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)") }, |