1ifeq ($(TARGET_BUILD_APPS),) 2 3.PHONY: systemlicense 4systemlicense: $(call corresponding-license-metadata, $(SYSTEM_NOTICE_DEPS)) reportmissinglicenses 5 6ifneq (,$(SYSTEM_NOTICE_DEPS)) 7 8SYSTEM_NOTICE_DEPS += $(UNMOUNTED_NOTICE_DEPS) $(UNMOUNTED_NOTICE_VENDOR_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-1p-target,$(target_notice_file_xml_gz)) 25$(call declare-1p-target,$(installed_notice_html_or_xml_gz)) 26endif 27 28.PHONY: vendorlicense 29vendorlicense: $(call corresponding-license-metadata, $(VENDOR_NOTICE_DEPS)) reportmissinglicenses 30 31ifneq (,$(VENDOR_NOTICE_DEPS)) 32 33VENDOR_NOTICE_DEPS += $(UNMOUNTED_NOTICE_VENDOR_DEPS) 34 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:", \ 37 $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS))) 38 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:", \ 41 $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS))) 42 43$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz) 44 $(copy-file-to-target) 45 46$(call declare-1p-target,$(target_vendor_notice_file_xml_gz)) 47$(call declare-1p-target,$(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),$(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),$(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-1p-target,$(target_odm_notice_file_xml_gz)) 66$(call declare-1p-target,$(installed_odm_notice_xml_gz)) 67endif 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:", \ 78 $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS))) 79 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:", \ 82 $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS))) 83 84$(installed_product_notice_xml_gz): $(target_product_notice_file_xml_gz) 85 $(copy-file-to-target) 86 87$(call declare-1p-target,$(target_product_notice_file_xml_gz)) 88$(call declare-1p-target,$(installed_product_notice_xml_gz)) 89endif 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:", \ 97 $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS))) 98 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:", \ 101 $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS))) 102 103$(installed_system_ext_notice_xml_gz): $(target_system_ext_notice_file_xml_gz) 104 $(copy-file-to-target) 105 106$(call declare-1p-target,$(target_system_ext_notice_file_xml_gz)) 107$(call declare-1p-target,$(installed_system_ext_notice_xml_gz)) 108endif 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:", \ 116 $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS))) 117 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:", \ 120 $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS))) 121 122$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz) 123 $(copy-file-to-target) 124 125$(call declare-1p-target,$(target_vendor_dlkm_notice_file_xml_gz)) 126$(call declare-1p-target,$(installed_vendor_dlkm_notice_xml_gz)) 127endif 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:", \ 135 $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS))) 136 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:", \ 139 $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS))) 140 141$(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz) 142 $(copy-file-to-target) 143 144$(call declare-1p-target,$(target_odm_dlkm_notice_file_xml_gz)) 145$(call declare-1p-target,$(installed_odm_dlkm_notice_xml_gz)) 146endif 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:", \ 154 $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS))) 155 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:", \ 158 $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS))) 159 160$(installed_system_dlkm_notice_xml_gz): $(target_system_dlkm_notice_file_xml_gz) 161 $(copy-file-to-target) 162 163$(call declare-1p-target,$(target_system_dlkm_notice_file_xml_gz)) 164$(call declare-1p-target,$(installed_sysetm_dlkm_notice_xml_gz)) 165endif 166 167endif # not TARGET_BUILD_APPS 168