blob: d8d3c789451cab7cb3f8cfe876eba85cfafeb044 [file] [log] [blame]
Bob Badourdbb8d7a2022-03-16 18:08:37 -07001ifeq ($(TARGET_BUILD_APPS),)
2
Bob Badour70c07dd2022-02-12 15:39:22 -08003.PHONY: systemlicense
4systemlicense: $(call corresponding-license-metadata, $(SYSTEM_NOTICE_DEPS)) reportmissinglicenses
5
6ifneq (,$(SYSTEM_NOTICE_DEPS))
7
8SYSTEM_NOTICE_DEPS += $(UNMOUNTED_NOTICE_DEPS)
9
10ifneq ($(PRODUCT_NOTICE_SPLIT),true)
11$(eval $(call html-notice-rule,$(target_notice_file_html_gz),"System image",$(system_notice_file_message),$(SYSTEM_NOTICE_DEPS),$(SYSTEM_NOTICE_DEPS)))
12
13$(installed_notice_html_or_xml_gz): $(target_notice_file_html_gz)
14 $(copy-file-to-target)
15else
16$(eval $(call xml-notice-rule,$(target_notice_file_xml_gz),"System image",$(system_notice_file_message),$(SYSTEM_NOTICE_DEPS),$(SYSTEM_NOTICE_DEPS)))
17
18$(eval $(call text-notice-rule,$(target_notice_file_txt),"System image",$(system_notice_file_message),$(SYSTEM_NOTICE_DEPS),$(SYSTEM_NOTICE_DEPS)))
19
20$(installed_notice_html_or_xml_gz): $(target_notice_file_xml_gz)
21 $(copy-file-to-target)
22endif
23
24$(call declare-0p-target,$(target_notice_file_xml_gz))
25$(call declare-0p-target,$(installed_notice_html_or_xml_gz))
26ALL_DEFAULT_INSTALLED_MODULES += $(installed_notice_html_or_xml_gz)
27endif
28
29.PHONY: vendorlicense
30vendorlicense: $(call corresponding-license-metadata, $(VENDOR_NOTICE_DEPS)) reportmissinglicenses
31
32ifneq (,$(VENDOR_NOTICE_DEPS))
33
34VENDOR_NOTICE_DEPS += $(UNMOUNTED_NOTICE_DEPS)
35
36$(eval $(call text-notice-rule,$(target_vendor_notice_file_txt),"Vendor image", \
37 "Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:", \
38 $(VENDOR_NOTICE_DEPS)))
39
40$(eval $(call xml-notice-rule,$(target_vendor_notice_file_xml_gz),"Vendor image", \
41 "Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:", \
42 $(VENDOR_NOTICE_DEPS)))
43
44$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz)
45 $(copy-file-to-target)
46
47$(call declare-0p-target,$(target_vendor_notice_file_xml_gz))
48$(call declare-0p-target,$(installed_vendor_notice_xml_gz))
49ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_notice_xml_gz)
50endif
51
52.PHONY: odmlicense
53odmlicense: $(call corresponding-license-metadata, $(ODM_NOTICE_DEPS)) reportmissinglicenses
54
55ifneq (,$(ODM_NOTICE_DEPS))
56$(eval $(call text-notice-rule,$(target_odm_notice_file_txt),"ODM filesystem image", \
57 "Notices for files contained in the odm filesystem image in this directory:", \
58 $(ODM_NOTICE_DEPS)))
59
60$(eval $(call xml-notice-rule,$(target_odm_notice_file_xml_gz),"ODM filesystem image", \
61 "Notices for files contained in the odm filesystem image in this directory:", \
62 $(ODM_NOTICE_DEPS)))
63
64$(installed_odm_notice_xml_gz): $(target_odm_notice_file_xml_gz)
65 $(copy-file-to-target)
66
67$(call declare-0p-target,$(target_odm_notice_file_xml_gz))
68$(call declare-0p-target,$(installed_odm_notice_xml_gz))
69ALL_DEFAULT_INSTALLED_MODULES += $(installed_odm_notice_xml_gz)
70endif
71
72.PHONY: oemlicense
73oemlicense: $(call corresponding-license-metadata, $(OEM_NOTICE_DEPS)) reportmissinglicenses
74
75.PHONY: productlicense
76productlicense: $(call corresponding-license-metadata, $(PRODUCT_NOTICE_DEPS)) reportmissinglicenses
77
78ifneq (,$(PRODUCT_NOTICE_DEPS))
79$(eval $(call text-notice-rule,$(target_product_notice_file_txt),"Product image", \
80 "Notices for files contained in the product filesystem image in this directory:", \
81 $(PRODUCT_NOTICE_DEPS)))
82
83$(eval $(call xml-notice-rule,$(target_product_notice_file_xml_gz),"Product image", \
84 "Notices for files contained in the product filesystem image in this directory:", \
85 $(PRODUCT_NOTICE_DEPS)))
86
87$(installed_product_notice_xml_gz): $(target_product_notice_file_xml_gz)
88 $(copy-file-to-target)
89
90$(call declare-0p-target,$(target_product_notice_file_xml_gz))
91$(call declare-0p-target,$(installed_product_notice_xml_gz))
92ALL_DEFAULT_INSTALLED_MODULES += $(installed_product_notice_xml_gz)
93endif
94
95.PHONY: systemextlicense
96systemextlicense: $(call corresponding-license-metadata, $(SYSTEM_EXT_NOTICE_DEPS)) reportmissinglicenses
97
98ifneq (,$(SYSTEM_EXT_NOTICE_DEPS))
99$(eval $(call text-notice-rule,$(target_system_ext_notice_file_txt),"System_ext image", \
100 "Notices for files contained in the system_ext filesystem image in this directory:", \
101 $(SYSTEM_EXT_NOTICE_DEPS)))
102
103$(eval $(call xml-notice-rule,$(target_system_ext_notice_file_xml_gz),"System_ext image", \
104 "Notices for files contained in the system_ext filesystem image in this directory:", \
105 $(SYSTEM_EXT_NOTICE_DEPS)))
106
107$(installed_system_ext_notice_xml_gz): $(target_system_ext_notice_file_xml_gz)
108 $(copy-file-to-target)
109
110$(call declare-0p-target,$(target_system_ext_notice_file_xml_gz))
111$(call declare-0p-target,$(installed_system_ext_notice_xml_gz))
112ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_ext_notice_xml_gz)
113endif
114
115.PHONY: vendor_dlkmlicense
116vendor_dlkmlicense: $(call corresponding-license-metadata, $(VENDOR_DLKM_NOTICE_DEPS)) reportmissinglicenses
117
118ifneq (,$(VENDOR_DLKM_NOTICE_DEPS))
119$(eval $(call text-notice-rule,$(target_vendor_dlkm_notice_file_txt),"Vendor_dlkm image", \
120 "Notices for files contained in the vendor_dlkm filesystem image in this directory:", \
121 $(VENDOR_DLKM_NOTICE_DEPS)))
122
123$(eval $(call xml-notice-rule,$(target_vendor_dlkm_notice_file_xml_gz),"Vendor_dlkm image", \
124 "Notices for files contained in the vendor_dlkm filesystem image in this directory:", \
125 $(VENDOR_DLKM_NOTICE_DEPS)))
126
127$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz)
128 $(copy-file-to-target)
129
130$(call declare-0p-target,$(target_vendor_dlkm_notice_file_xml_gz))
131$(call declare-0p-target,$(installed_vendor_dlkm_notice_xml_gz))
132ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_dlkm_notice_xml_gz)
133endif
134
135.PHONY: odm_dlkmlicense
136odm_dlkmlicense: $(call corresponding-license-metadata, $(ODM_DLKM_NOTICE_DEPS)) reportmissinglicenses
137
138ifneq (,$(ODM_DLKM_NOTICE_DEPS))
139$(eval $(call text-notice-rule,$(target_odm_dlkm_notice_file_txt),"ODM_dlkm filesystem image", \
140 "Notices for files contained in the odm_dlkm filesystem image in this directory:", \
141 $(ODM_DLKM_NOTICE_DEPS)))
142
143$(eval $(call xml-notice-rule,$(target_odm_dlkm_notice_file_xml_gz),"ODM_dlkm filesystem image", \
144 "Notices for files contained in the odm_dlkm filesystem image in this directory:", \
145 $(ODM_DLMK_NOTICE_DEPS)))
146
147$(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz)
148 $(copy-file-to-target)
149
150$(call declare-0p-target,$(target_odm_dlkm_notice_file_xml_gz))
151$(call declare-0p-target,$(installed_odm_dlkm_notice_xml_gz))
152ALL_DEFAULT_INSTALLED_MODULES += $(installed_odm_dlkm_notice_xml_gz)
153endif
154
155.PHONY: system_dlkmlicense
156system_dlkmlicense: $(call corresponding-license-metadata, $(SYSTEM_DLKM_NOTICE_DEPS)) reportmissinglicenses
157
158ifneq (,$(SYSTEM_DLKM_NOTICE_DEPS))
159$(eval $(call text-notice-rule,$(target_system_dlkm_notice_file_txt),"System_dlkm filesystem image", \
160 "Notices for files contained in the system_dlkm filesystem image in this directory:", \
161 $(SYSTEM_DLKM_NOTICE_DEPS)))
162
163$(eval $(call xml-notice-rule,$(target_system_dlkm_notice_file_xml_gz),"System_dlkm filesystem image", \
164 "Notices for files contained in the system_dlkm filesystem image in this directory:", \
165 $(SYSTEM_DLMK_NOTICE_DEPS)))
166
167$(installed_system_dlkm_notice_xml_gz): $(target_system_dlkm_notice_file_xml_gz)
168 $(copy-file-to-target)
169
170$(call declare-0p-target,$(target_system_dlkm_notice_file_xml_gz))
171$(call declare-0p-target,$(installed_sysetm_dlkm_notice_xml_gz))
172ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_dlkm_notice_xml_gz)
173endif
Bob Badourdbb8d7a2022-03-16 18:08:37 -0700174
175endif # not TARGET_BUILD_APPS