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