blob: 1e1b7df7a94b7c020cd93f578706acafc98e76ce [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
20$(installed_notice_html_or_xml_gz): $(target_notice_file_xml_gz)
21 $(copy-file-to-target)
22endif
23
Bob Badour7aee5942023-03-01 15:51:24 -080024$(call declare-1p-target,$(target_notice_file_xml_gz))
25$(call declare-1p-target,$(installed_notice_html_or_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080026endif
27
28.PHONY: vendorlicense
29vendorlicense: $(call corresponding-license-metadata, $(VENDOR_NOTICE_DEPS)) reportmissinglicenses
30
31ifneq (,$(VENDOR_NOTICE_DEPS))
32
Justin Yundd15ec12022-09-23 10:47:21 +090033VENDOR_NOTICE_DEPS += $(UNMOUNTED_NOTICE_VENDOR_DEPS)
Bob Badour70c07dd2022-02-12 15:39:22 -080034
35$(eval $(call text-notice-rule,$(target_vendor_notice_file_txt),"Vendor image", \
36 "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 +000037 $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080038
39$(eval $(call xml-notice-rule,$(target_vendor_notice_file_xml_gz),"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$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz)
44 $(copy-file-to-target)
45
Bob Badour7aee5942023-03-01 15:51:24 -080046$(call declare-1p-target,$(target_vendor_notice_file_xml_gz))
47$(call declare-1p-target,$(installed_vendor_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080048endif
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +000056 $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080057
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:", \
Bob Badour56e0de52022-08-02 17:46:48 +000060 $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080061
62$(installed_odm_notice_xml_gz): $(target_odm_notice_file_xml_gz)
63 $(copy-file-to-target)
64
Bob Badour7aee5942023-03-01 15:51:24 -080065$(call declare-1p-target,$(target_odm_notice_file_xml_gz))
66$(call declare-1p-target,$(installed_odm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080067endif
68
69.PHONY: oemlicense
70oemlicense: $(call corresponding-license-metadata, $(OEM_NOTICE_DEPS)) reportmissinglicenses
71
72.PHONY: productlicense
73productlicense: $(call corresponding-license-metadata, $(PRODUCT_NOTICE_DEPS)) reportmissinglicenses
74
75ifneq (,$(PRODUCT_NOTICE_DEPS))
76$(eval $(call text-notice-rule,$(target_product_notice_file_txt),"Product image", \
77 "Notices for files contained in the product filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000078 $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080079
80$(eval $(call xml-notice-rule,$(target_product_notice_file_xml_gz),"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$(installed_product_notice_xml_gz): $(target_product_notice_file_xml_gz)
85 $(copy-file-to-target)
86
Bob Badour7aee5942023-03-01 15:51:24 -080087$(call declare-1p-target,$(target_product_notice_file_xml_gz))
88$(call declare-1p-target,$(installed_product_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -080089endif
90
91.PHONY: systemextlicense
92systemextlicense: $(call corresponding-license-metadata, $(SYSTEM_EXT_NOTICE_DEPS)) reportmissinglicenses
93
94ifneq (,$(SYSTEM_EXT_NOTICE_DEPS))
95$(eval $(call text-notice-rule,$(target_system_ext_notice_file_txt),"System_ext image", \
96 "Notices for files contained in the system_ext filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +000097 $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -080098
99$(eval $(call xml-notice-rule,$(target_system_ext_notice_file_xml_gz),"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$(installed_system_ext_notice_xml_gz): $(target_system_ext_notice_file_xml_gz)
104 $(copy-file-to-target)
105
Bob Badour7aee5942023-03-01 15:51:24 -0800106$(call declare-1p-target,$(target_system_ext_notice_file_xml_gz))
107$(call declare-1p-target,$(installed_system_ext_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800108endif
109
110.PHONY: vendor_dlkmlicense
111vendor_dlkmlicense: $(call corresponding-license-metadata, $(VENDOR_DLKM_NOTICE_DEPS)) reportmissinglicenses
112
113ifneq (,$(VENDOR_DLKM_NOTICE_DEPS))
114$(eval $(call text-notice-rule,$(target_vendor_dlkm_notice_file_txt),"Vendor_dlkm image", \
115 "Notices for files contained in the vendor_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000116 $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800117
118$(eval $(call xml-notice-rule,$(target_vendor_dlkm_notice_file_xml_gz),"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$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz)
123 $(copy-file-to-target)
124
Bob Badour7aee5942023-03-01 15:51:24 -0800125$(call declare-1p-target,$(target_vendor_dlkm_notice_file_xml_gz))
126$(call declare-1p-target,$(installed_vendor_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800127endif
128
129.PHONY: odm_dlkmlicense
130odm_dlkmlicense: $(call corresponding-license-metadata, $(ODM_DLKM_NOTICE_DEPS)) reportmissinglicenses
131
132ifneq (,$(ODM_DLKM_NOTICE_DEPS))
133$(eval $(call text-notice-rule,$(target_odm_dlkm_notice_file_txt),"ODM_dlkm filesystem image", \
134 "Notices for files contained in the odm_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000135 $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800136
137$(eval $(call xml-notice-rule,$(target_odm_dlkm_notice_file_xml_gz),"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$(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz)
142 $(copy-file-to-target)
143
Bob Badour7aee5942023-03-01 15:51:24 -0800144$(call declare-1p-target,$(target_odm_dlkm_notice_file_xml_gz))
145$(call declare-1p-target,$(installed_odm_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800146endif
147
148.PHONY: system_dlkmlicense
149system_dlkmlicense: $(call corresponding-license-metadata, $(SYSTEM_DLKM_NOTICE_DEPS)) reportmissinglicenses
150
151ifneq (,$(SYSTEM_DLKM_NOTICE_DEPS))
152$(eval $(call text-notice-rule,$(target_system_dlkm_notice_file_txt),"System_dlkm filesystem image", \
153 "Notices for files contained in the system_dlkm filesystem image in this directory:", \
Bob Badour56e0de52022-08-02 17:46:48 +0000154 $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS)))
Bob Badour70c07dd2022-02-12 15:39:22 -0800155
156$(eval $(call xml-notice-rule,$(target_system_dlkm_notice_file_xml_gz),"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$(installed_system_dlkm_notice_xml_gz): $(target_system_dlkm_notice_file_xml_gz)
161 $(copy-file-to-target)
162
Bob Badour7aee5942023-03-01 15:51:24 -0800163$(call declare-1p-target,$(target_system_dlkm_notice_file_xml_gz))
164$(call declare-1p-target,$(installed_sysetm_dlkm_notice_xml_gz))
Bob Badour70c07dd2022-02-12 15:39:22 -0800165endif
Bob Badourdbb8d7a2022-03-16 18:08:37 -0700166
167endif # not TARGET_BUILD_APPS