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