blob: d15a3d0715a420cd019144f1461a837ea6a961f3 [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
Justin Yundd15ec12022-09-23 10:47:21 +09008SYSTEM_NOTICE_DEPS += $(UNMOUNTED_NOTICE_DEPS) $(UNMOUNTED_NOTICE_VENDOR_DEPS)
Bob Badour70c07dd2022-02-12 15:39:22 -08009
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
Wei Li486c6272024-09-19 17:55:10 +000020ifneq ($(USE_SOONG_DEFINED_SYSTEM_IMAGE),true)
Bob Badour70c07dd2022-02-12 15:39:22 -080021$(installed_notice_html_or_xml_gz): $(target_notice_file_xml_gz)
22 $(copy-file-to-target)
23endif
Wei Li486c6272024-09-19 17:55:10 +000024endif
Bob Badour70c07dd2022-02-12 15:39:22 -080025
Bob Badour7aee5942023-03-01 15:51:24 -080026$(call declare-1p-target,$(target_notice_file_xml_gz))
Wei Li486c6272024-09-19 17:55:10 +000027ifneq ($(USE_SOONG_DEFINED_SYSTEM_IMAGE),true)
Bob Badour7aee5942023-03-01 15:51:24 -080028$(call declare-1p-target,$(installed_notice_html_or_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080029endif
Wei Li486c6272024-09-19 17:55:10 +000030endif
Bob Badour70c07dd2022-02-12 15:39:22 -080031
32.PHONY: vendorlicense
33vendorlicense: $(call corresponding-license-metadata, $(VENDOR_NOTICE_DEPS)) reportmissinglicenses
34
35ifneq (,$(VENDOR_NOTICE_DEPS))
36
Justin Yundd15ec12022-09-23 10:47:21 +090037VENDOR_NOTICE_DEPS += $(UNMOUNTED_NOTICE_VENDOR_DEPS)
Bob Badour70c07dd2022-02-12 15:39:22 -080038
39$(eval $(call text-notice-rule,$(target_vendor_notice_file_txt),"Vendor image", \
40 "Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000041 $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080042
43$(eval $(call xml-notice-rule,$(target_vendor_notice_file_xml_gz),"Vendor image", \
44 "Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000045 $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080046
47$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz)
48 $(copy-file-to-target)
49
Bob Badour7aee5942023-03-01 15:51:24 -080050$(call declare-1p-target,$(target_vendor_notice_file_xml_gz))
51$(call declare-1p-target,$(installed_vendor_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080052endif
53
54.PHONY: odmlicense
55odmlicense: $(call corresponding-license-metadata, $(ODM_NOTICE_DEPS)) reportmissinglicenses
56
57ifneq (,$(ODM_NOTICE_DEPS))
58$(eval $(call text-notice-rule,$(target_odm_notice_file_txt),"ODM filesystem image", \
59 "Notices for files contained in the odm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000060 $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080061
62$(eval $(call xml-notice-rule,$(target_odm_notice_file_xml_gz),"ODM filesystem image", \
63 "Notices for files contained in the odm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000064 $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080065
66$(installed_odm_notice_xml_gz): $(target_odm_notice_file_xml_gz)
67 $(copy-file-to-target)
68
Bob Badour7aee5942023-03-01 15:51:24 -080069$(call declare-1p-target,$(target_odm_notice_file_xml_gz))
70$(call declare-1p-target,$(installed_odm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080071endif
72
73.PHONY: oemlicense
74oemlicense: $(call corresponding-license-metadata, $(OEM_NOTICE_DEPS)) reportmissinglicenses
75
76.PHONY: productlicense
77productlicense: $(call corresponding-license-metadata, $(PRODUCT_NOTICE_DEPS)) reportmissinglicenses
78
79ifneq (,$(PRODUCT_NOTICE_DEPS))
80$(eval $(call text-notice-rule,$(target_product_notice_file_txt),"Product image", \
81 "Notices for files contained in the product filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000082 $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080083
84$(eval $(call xml-notice-rule,$(target_product_notice_file_xml_gz),"Product image", \
85 "Notices for files contained in the product filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000086 $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080087
88$(installed_product_notice_xml_gz): $(target_product_notice_file_xml_gz)
89 $(copy-file-to-target)
90
Bob Badour7aee5942023-03-01 15:51:24 -080091$(call declare-1p-target,$(target_product_notice_file_xml_gz))
92$(call declare-1p-target,$(installed_product_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080093endif
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000101 $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800102
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000105 $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800106
107$(installed_system_ext_notice_xml_gz): $(target_system_ext_notice_file_xml_gz)
108 $(copy-file-to-target)
109
Bob Badour7aee5942023-03-01 15:51:24 -0800110$(call declare-1p-target,$(target_system_ext_notice_file_xml_gz))
111$(call declare-1p-target,$(installed_system_ext_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800112endif
113
114.PHONY: vendor_dlkmlicense
115vendor_dlkmlicense: $(call corresponding-license-metadata, $(VENDOR_DLKM_NOTICE_DEPS)) reportmissinglicenses
116
117ifneq (,$(VENDOR_DLKM_NOTICE_DEPS))
118$(eval $(call text-notice-rule,$(target_vendor_dlkm_notice_file_txt),"Vendor_dlkm image", \
119 "Notices for files contained in the vendor_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000120 $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800121
122$(eval $(call xml-notice-rule,$(target_vendor_dlkm_notice_file_xml_gz),"Vendor_dlkm image", \
123 "Notices for files contained in the vendor_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000124 $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800125
126$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz)
127 $(copy-file-to-target)
128
Bob Badour7aee5942023-03-01 15:51:24 -0800129$(call declare-1p-target,$(target_vendor_dlkm_notice_file_xml_gz))
130$(call declare-1p-target,$(installed_vendor_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800131endif
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000139 $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800140
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000143 $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800144
145$(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz)
146 $(copy-file-to-target)
147
Bob Badour7aee5942023-03-01 15:51:24 -0800148$(call declare-1p-target,$(target_odm_dlkm_notice_file_xml_gz))
149$(call declare-1p-target,$(installed_odm_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800150endif
151
152.PHONY: system_dlkmlicense
153system_dlkmlicense: $(call corresponding-license-metadata, $(SYSTEM_DLKM_NOTICE_DEPS)) reportmissinglicenses
154
155ifneq (,$(SYSTEM_DLKM_NOTICE_DEPS))
156$(eval $(call text-notice-rule,$(target_system_dlkm_notice_file_txt),"System_dlkm filesystem image", \
157 "Notices for files contained in the system_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000158 $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800159
160$(eval $(call xml-notice-rule,$(target_system_dlkm_notice_file_xml_gz),"System_dlkm filesystem image", \
161 "Notices for files contained in the system_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000162 $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800163
164$(installed_system_dlkm_notice_xml_gz): $(target_system_dlkm_notice_file_xml_gz)
165 $(copy-file-to-target)
166
Bob Badour7aee5942023-03-01 15:51:24 -0800167$(call declare-1p-target,$(target_system_dlkm_notice_file_xml_gz))
168$(call declare-1p-target,$(installed_sysetm_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800169endif
Bob Badourdbb8d7a2022-03-16 18:08:37 -0700170
171endif # not TARGET_BUILD_APPS