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