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 | |
Justin Yun | dd15ec1 | 2022-09-23 10:47:21 +0900 | [diff] [blame] | 8 | SYSTEM_NOTICE_DEPS += $(UNMOUNTED_NOTICE_DEPS) $(UNMOUNTED_NOTICE_VENDOR_DEPS) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 24 | $(call declare-1p-target,$(target_notice_file_xml_gz)) |
| 25 | $(call declare-1p-target,$(installed_notice_html_or_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 26 | endif |
| 27 | |
| 28 | .PHONY: vendorlicense |
| 29 | vendorlicense: $(call corresponding-license-metadata, $(VENDOR_NOTICE_DEPS)) reportmissinglicenses |
| 30 | |
| 31 | ifneq (,$(VENDOR_NOTICE_DEPS)) |
| 32 | |
Justin Yun | dd15ec1 | 2022-09-23 10:47:21 +0900 | [diff] [blame] | 33 | VENDOR_NOTICE_DEPS += $(UNMOUNTED_NOTICE_VENDOR_DEPS) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 37 | $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 41 | $(VENDOR_NOTICE_DEPS),$(VENDOR_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 42 | |
| 43 | $(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz) |
| 44 | $(copy-file-to-target) |
| 45 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 46 | $(call declare-1p-target,$(target_vendor_notice_file_xml_gz)) |
| 47 | $(call declare-1p-target,$(installed_vendor_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 48 | endif |
| 49 | |
| 50 | .PHONY: odmlicense |
| 51 | odmlicense: $(call corresponding-license-metadata, $(ODM_NOTICE_DEPS)) reportmissinglicenses |
| 52 | |
| 53 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 56 | $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 60 | $(ODM_NOTICE_DEPS),$(ODM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 61 | |
| 62 | $(installed_odm_notice_xml_gz): $(target_odm_notice_file_xml_gz) |
| 63 | $(copy-file-to-target) |
| 64 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 65 | $(call declare-1p-target,$(target_odm_notice_file_xml_gz)) |
| 66 | $(call declare-1p-target,$(installed_odm_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 67 | endif |
| 68 | |
| 69 | .PHONY: oemlicense |
| 70 | oemlicense: $(call corresponding-license-metadata, $(OEM_NOTICE_DEPS)) reportmissinglicenses |
| 71 | |
| 72 | .PHONY: productlicense |
| 73 | productlicense: $(call corresponding-license-metadata, $(PRODUCT_NOTICE_DEPS)) reportmissinglicenses |
| 74 | |
| 75 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 78 | $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 82 | $(PRODUCT_NOTICE_DEPS),$(PRODUCT_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 83 | |
| 84 | $(installed_product_notice_xml_gz): $(target_product_notice_file_xml_gz) |
| 85 | $(copy-file-to-target) |
| 86 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 87 | $(call declare-1p-target,$(target_product_notice_file_xml_gz)) |
| 88 | $(call declare-1p-target,$(installed_product_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 89 | endif |
| 90 | |
| 91 | .PHONY: systemextlicense |
| 92 | systemextlicense: $(call corresponding-license-metadata, $(SYSTEM_EXT_NOTICE_DEPS)) reportmissinglicenses |
| 93 | |
| 94 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 97 | $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 101 | $(SYSTEM_EXT_NOTICE_DEPS),$(SYSTEM_EXT_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 102 | |
| 103 | $(installed_system_ext_notice_xml_gz): $(target_system_ext_notice_file_xml_gz) |
| 104 | $(copy-file-to-target) |
| 105 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 106 | $(call declare-1p-target,$(target_system_ext_notice_file_xml_gz)) |
| 107 | $(call declare-1p-target,$(installed_system_ext_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 108 | endif |
| 109 | |
| 110 | .PHONY: vendor_dlkmlicense |
| 111 | vendor_dlkmlicense: $(call corresponding-license-metadata, $(VENDOR_DLKM_NOTICE_DEPS)) reportmissinglicenses |
| 112 | |
| 113 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 116 | $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 120 | $(VENDOR_DLKM_NOTICE_DEPS),$(VENDOR_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 121 | |
| 122 | $(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz) |
| 123 | $(copy-file-to-target) |
| 124 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 125 | $(call declare-1p-target,$(target_vendor_dlkm_notice_file_xml_gz)) |
| 126 | $(call declare-1p-target,$(installed_vendor_dlkm_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 127 | endif |
| 128 | |
| 129 | .PHONY: odm_dlkmlicense |
| 130 | odm_dlkmlicense: $(call corresponding-license-metadata, $(ODM_DLKM_NOTICE_DEPS)) reportmissinglicenses |
| 131 | |
| 132 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 135 | $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 139 | $(ODM_DLKM_NOTICE_DEPS),$(ODM_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 140 | |
| 141 | $(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz) |
| 142 | $(copy-file-to-target) |
| 143 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 144 | $(call declare-1p-target,$(target_odm_dlkm_notice_file_xml_gz)) |
| 145 | $(call declare-1p-target,$(installed_odm_dlkm_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 146 | endif |
| 147 | |
| 148 | .PHONY: system_dlkmlicense |
| 149 | system_dlkmlicense: $(call corresponding-license-metadata, $(SYSTEM_DLKM_NOTICE_DEPS)) reportmissinglicenses |
| 150 | |
| 151 | ifneq (,$(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 Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 154 | $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 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:", \ |
Bob Badour | 56e0de5 | 2022-08-02 17:46:48 +0000 | [diff] [blame] | 158 | $(SYSTEM_DLKM_NOTICE_DEPS),$(SYSTEM_DLKM_NOTICE_DEPS))) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 159 | |
| 160 | $(installed_system_dlkm_notice_xml_gz): $(target_system_dlkm_notice_file_xml_gz) |
| 161 | $(copy-file-to-target) |
| 162 | |
Bob Badour | 7aee594 | 2023-03-01 15:51:24 -0800 | [diff] [blame] | 163 | $(call declare-1p-target,$(target_system_dlkm_notice_file_xml_gz)) |
| 164 | $(call declare-1p-target,$(installed_sysetm_dlkm_notice_xml_gz)) |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 165 | endif |
Bob Badour | dbb8d7a | 2022-03-16 18:08:37 -0700 | [diff] [blame] | 166 | |
| 167 | endif # not TARGET_BUILD_APPS |