Add notice files for odm_dlkm
Test: pass Bug: 156020364 Change-Id: Ia7e562cb96b9f14fa7ab0b74c253bf75fb699f0b
This commit is contained in:
@@ -889,9 +889,10 @@ endif # BUILDING_VENDOR_BOOT_IMAGE
|
|||||||
.PHONY: notice_files
|
.PHONY: notice_files
|
||||||
|
|
||||||
# Create the rule to combine the files into text and html/xml forms
|
# Create the rule to combine the files into text and html/xml forms
|
||||||
# $(1) - xml_excluded_system_product_odm_vendor_dlkm|
|
# $(1) - xml_excluded_system_product_odm_vendor_dlkm_odm_dlkm|
|
||||||
# xml_excluded_vendor_product_odm_vendor_dlkm|
|
# xml_excluded_vendor_product_odm_vendor_dlkm_odm_dlkm|
|
||||||
# xml_product|xml_odm|xml_system_ext|xml_system|xml_vendor_dlkm|html
|
# xml_product|xml_odm|xml_system_ext|xml_system|xml_vendor_dlkm|
|
||||||
|
# xml_odm_dlkm|html
|
||||||
# $(2) - Plain text output file
|
# $(2) - Plain text output file
|
||||||
# $(3) - HTML/XML output file
|
# $(3) - HTML/XML output file
|
||||||
# $(4) - File title
|
# $(4) - File title
|
||||||
@@ -917,14 +918,15 @@ $(2): PRIVATE_DIR := $(5)
|
|||||||
$(2): .KATI_IMPLICIT_OUTPUTS := $(3)
|
$(2): .KATI_IMPLICIT_OUTPUTS := $(3)
|
||||||
$(2): $(6) $(BUILD_SYSTEM)/Makefile build/make/tools/generate-notice-files.py
|
$(2): $(6) $(BUILD_SYSTEM)/Makefile build/make/tools/generate-notice-files.py
|
||||||
build/make/tools/generate-notice-files.py --text-output $(2) $(foreach xdir, $(7), -e $(xdir) )\
|
build/make/tools/generate-notice-files.py --text-output $(2) $(foreach xdir, $(7), -e $(xdir) )\
|
||||||
$(if $(filter $(1),xml_excluded_vendor_product_odm_vendor_dlkm),-e vendor -e product -e system_ext -e odm -e vendor_dlkm --xml-output, \
|
$(if $(filter $(1),xml_excluded_vendor_product_odm_vendor_dlkm_odm_dlkm),-e vendor -e product -e system_ext -e odm -e vendor_dlkm -e odm_dlkm --xml-output, \
|
||||||
$(if $(filter $(1),xml_excluded_system_product_odm_vendor_dlkm),-e system -e product -e system_ext -e odm -e vendor_dlkm --xml-output, \
|
$(if $(filter $(1),xml_excluded_system_product_odm_vendor_dlkm_odm_dlkm),-e system -e product -e system_ext -e odm -e vendor_dlkm -e odm_dlkm --xml-output, \
|
||||||
$(if $(filter $(1),xml_product),-i product --xml-output, \
|
$(if $(filter $(1),xml_product),-i product --xml-output, \
|
||||||
$(if $(filter $(1),xml_system_ext),-i system_ext --xml-output, \
|
$(if $(filter $(1),xml_system_ext),-i system_ext --xml-output, \
|
||||||
$(if $(filter $(1),xml_system),-i system --xml-output, \
|
$(if $(filter $(1),xml_system),-i system --xml-output, \
|
||||||
$(if $(filter $(1),xml_odm),-i odm --xml-output, \
|
$(if $(filter $(1),xml_odm),-i odm --xml-output, \
|
||||||
$(if $(filter $(1),xml_vendor_dlkm),-i vendor_dlkm --xml-output, \
|
$(if $(filter $(1),xml_vendor_dlkm),-i vendor_dlkm --xml-output, \
|
||||||
--html-output))))))) $(3) \
|
$(if $(filter $(1),xml_odm_dlkm),-i odm_dlkm --xml-output, \
|
||||||
|
--html-output)))))))) $(3) \
|
||||||
-t $$(PRIVATE_MESSAGE) -s $$(PRIVATE_DIR)/src
|
-t $$(PRIVATE_MESSAGE) -s $$(PRIVATE_DIR)/src
|
||||||
notice_files: $(2) $(3)
|
notice_files: $(2) $(3)
|
||||||
endef
|
endef
|
||||||
@@ -993,6 +995,11 @@ target_vendor_dlkm_notice_file_xml := $(TARGET_OUT_INTERMEDIATES)/NOTICE_VENDOR_
|
|||||||
target_vendor_dlkm_notice_file_xml_gz := $(TARGET_OUT_INTERMEDIATES)/NOTICE_VENDOR_DLKM.xml.gz
|
target_vendor_dlkm_notice_file_xml_gz := $(TARGET_OUT_INTERMEDIATES)/NOTICE_VENDOR_DLKM.xml.gz
|
||||||
installed_vendor_dlkm_notice_xml_gz := $(TARGET_OUT_VENDOR_DLKM)/etc/NOTICE.xml.gz
|
installed_vendor_dlkm_notice_xml_gz := $(TARGET_OUT_VENDOR_DLKM)/etc/NOTICE.xml.gz
|
||||||
|
|
||||||
|
target_odm_dlkm_notice_file_txt := $(TARGET_OUT_INTERMEDIATES)/NOTICE_ODM_DLKM.txt
|
||||||
|
target_odm_dlkm_notice_file_xml := $(TARGET_OUT_INTERMEDIATES)/NOTICE_ODM_DLKM.xml
|
||||||
|
target_odm_dlkm_notice_file_xml_gz := $(TARGET_OUT_INTERMEDIATES)/NOTICE_ODM_DLKM.xml.gz
|
||||||
|
installed_odm_dlkm_notice_xml_gz := $(TARGET_OUT_ODM_DLKM)/etc/NOTICE.xml.gz
|
||||||
|
|
||||||
# Notice files are copied to TARGET_OUT_NOTICE_FILES as a side-effect of their module
|
# Notice files are copied to TARGET_OUT_NOTICE_FILES as a side-effect of their module
|
||||||
# being built. A notice xml file must depend on all modules that could potentially
|
# being built. A notice xml file must depend on all modules that could potentially
|
||||||
# install a license file relevant to it.
|
# install a license file relevant to it.
|
||||||
@@ -1003,19 +1010,21 @@ license_modules := $(filter $(PRODUCT_OUT)/%,$(license_modules))
|
|||||||
license_modules := $(filter-out $(TARGET_OUT_FAKE)/%,$(license_modules))
|
license_modules := $(filter-out $(TARGET_OUT_FAKE)/%,$(license_modules))
|
||||||
# testcases are not relevant to the system image.
|
# testcases are not relevant to the system image.
|
||||||
license_modules := $(filter-out $(TARGET_OUT_TESTCASES)/%,$(license_modules))
|
license_modules := $(filter-out $(TARGET_OUT_TESTCASES)/%,$(license_modules))
|
||||||
# filesystem images: system, vendor, product, system_ext, odm, and vendor_dlkm
|
# filesystem images: system, vendor, product, system_ext, odm, vendor_dlkm, and odm_dlkm
|
||||||
license_modules_system := $(filter $(TARGET_OUT)/%,$(license_modules))
|
license_modules_system := $(filter $(TARGET_OUT)/%,$(license_modules))
|
||||||
license_modules_vendor := $(filter $(TARGET_OUT_VENDOR)/%,$(license_modules))
|
license_modules_vendor := $(filter $(TARGET_OUT_VENDOR)/%,$(license_modules))
|
||||||
license_modules_product := $(filter $(TARGET_OUT_PRODUCT)/%,$(license_modules))
|
license_modules_product := $(filter $(TARGET_OUT_PRODUCT)/%,$(license_modules))
|
||||||
license_modules_system_ext := $(filter $(TARGET_OUT_SYSTEM_EXT)/%,$(license_modules))
|
license_modules_system_ext := $(filter $(TARGET_OUT_SYSTEM_EXT)/%,$(license_modules))
|
||||||
license_modules_odm := $(filter $(TARGET_OUT_ODM)/%,$(license_modules))
|
license_modules_odm := $(filter $(TARGET_OUT_ODM)/%,$(license_modules))
|
||||||
license_modules_vendor_dlkm := $(filter $(TARGET_OUT_VENDOR_DLKM)/%,$(license_modules))
|
license_modules_vendor_dlkm := $(filter $(TARGET_OUT_VENDOR_DLKM)/%,$(license_modules))
|
||||||
|
license_modules_odm_dlkm := $(filter $(TARGET_OUT_ODM_DLKM)/%,$(license_modules))
|
||||||
license_modules_agg := $(license_modules_system) \
|
license_modules_agg := $(license_modules_system) \
|
||||||
$(license_modules_vendor) \
|
$(license_modules_vendor) \
|
||||||
$(license_modules_product) \
|
$(license_modules_product) \
|
||||||
$(license_modules_system_ext) \
|
$(license_modules_system_ext) \
|
||||||
$(license_modules_odm) \
|
$(license_modules_odm) \
|
||||||
$(license_modules_vendor_dlkm)
|
$(license_modules_vendor_dlkm) \
|
||||||
|
$(license_modules_odm_dlkm)
|
||||||
# targets used for debug symbols only and do not get copied to the device
|
# targets used for debug symbols only and do not get copied to the device
|
||||||
license_modules_symbols_only := $(filter $(PRODUCT_OUT)/apex/%,$(license_modules))
|
license_modules_symbols_only := $(filter $(PRODUCT_OUT)/apex/%,$(license_modules))
|
||||||
|
|
||||||
@@ -1050,8 +1059,8 @@ $(call maybe-print-list-and-error, $(license_modules_rest), \
|
|||||||
# update its notice file, so include those notices in the system partition instead
|
# update its notice file, so include those notices in the system partition instead
|
||||||
ifdef BOARD_PREBUILT_VENDORIMAGE
|
ifdef BOARD_PREBUILT_VENDORIMAGE
|
||||||
license_modules_system += $(license_modules_rehomed)
|
license_modules_system += $(license_modules_rehomed)
|
||||||
system_xml_directories := xml_excluded_vendor_product_odm_vendor_dlkm
|
system_xml_directories := xml_excluded_vendor_product_odm_vendor_dlkm_odm_dlkm
|
||||||
system_notice_file_message := "Notices for files contained in all filesystem images except vendor/system_ext/product/odm/vendor_dlkm in this directory:"
|
system_notice_file_message := "Notices for files contained in all filesystem images except vendor/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:"
|
||||||
else
|
else
|
||||||
license_modules_vendor += $(license_modules_rehomed)
|
license_modules_vendor += $(license_modules_rehomed)
|
||||||
system_xml_directories := xml_system
|
system_xml_directories := xml_system
|
||||||
@@ -1065,10 +1074,10 @@ $(eval $(call combine-notice-files, $(system_xml_directories), \
|
|||||||
$(TARGET_OUT_NOTICE_FILES), \
|
$(TARGET_OUT_NOTICE_FILES), \
|
||||||
$(license_modules_system), \
|
$(license_modules_system), \
|
||||||
$(exclude_target_dirs)))
|
$(exclude_target_dirs)))
|
||||||
$(eval $(call combine-notice-files, xml_excluded_system_product_odm_vendor_dlkm, \
|
$(eval $(call combine-notice-files, xml_excluded_system_product_odm_vendor_dlkm_odm_dlkm, \
|
||||||
$(target_vendor_notice_file_txt), \
|
$(target_vendor_notice_file_txt), \
|
||||||
$(target_vendor_notice_file_xml), \
|
$(target_vendor_notice_file_xml), \
|
||||||
"Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm in this directory:", \
|
"Notices for files contained in all filesystem images except system/system_ext/product/odm/vendor_dlkm/odm_dlkm in this directory:", \
|
||||||
$(TARGET_OUT_NOTICE_FILES), \
|
$(TARGET_OUT_NOTICE_FILES), \
|
||||||
$(license_modules_vendor), \
|
$(license_modules_vendor), \
|
||||||
$(exclude_target_dirs)))
|
$(exclude_target_dirs)))
|
||||||
@@ -1100,6 +1109,13 @@ $(eval $(call combine-notice-files, xml_vendor_dlkm, \
|
|||||||
$(TARGET_OUT_NOTICE_FILES), \
|
$(TARGET_OUT_NOTICE_FILES), \
|
||||||
$(license_modules_vendor_dlkm), \
|
$(license_modules_vendor_dlkm), \
|
||||||
$(exclude_target_dirs)))
|
$(exclude_target_dirs)))
|
||||||
|
$(eval $(call combine-notice-files, xml_odm_dlkm, \
|
||||||
|
$(target_odm_dlkm_notice_file_txt), \
|
||||||
|
$(target_odm_dlkm_notice_file_xml), \
|
||||||
|
"Notices for files contained in the odm_dlkm filesystem image in this directory:", \
|
||||||
|
$(TARGET_OUT_NOTICE_FILES), \
|
||||||
|
$(license_modules_odm_dlkm), \
|
||||||
|
$(exclude_target_dirs)))
|
||||||
|
|
||||||
$(target_notice_file_xml_gz): $(target_notice_file_xml) | $(MINIGZIP)
|
$(target_notice_file_xml_gz): $(target_notice_file_xml) | $(MINIGZIP)
|
||||||
$(hide) $(MINIGZIP) -9 < $< > $@
|
$(hide) $(MINIGZIP) -9 < $< > $@
|
||||||
@@ -1113,6 +1129,8 @@ $(target_odm_notice_file_xml_gz): $(target_odm_notice_file_xml) | $(MINIGZIP)
|
|||||||
$(hide) $(MINIGZIP) -9 < $< > $@
|
$(hide) $(MINIGZIP) -9 < $< > $@
|
||||||
$(target_vendor_dlkm_notice_file_xml_gz): $(target_vendor_dlkm_notice_file_xml) | $(MINIGZIP)
|
$(target_vendor_dlkm_notice_file_xml_gz): $(target_vendor_dlkm_notice_file_xml) | $(MINIGZIP)
|
||||||
$(hide) $(MINIGZIP) -9 < $< > $@
|
$(hide) $(MINIGZIP) -9 < $< > $@
|
||||||
|
$(target_odm_dlkm_notice_file_xml_gz): $(target_odm_dlkm_notice_file_xml) | $(MINIGZIP)
|
||||||
|
$(hide) $(MINIGZIP) -9 < $< > $@
|
||||||
$(installed_notice_html_or_xml_gz): $(target_notice_file_xml_gz)
|
$(installed_notice_html_or_xml_gz): $(target_notice_file_xml_gz)
|
||||||
$(copy-file-to-target)
|
$(copy-file-to-target)
|
||||||
$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz)
|
$(installed_vendor_notice_xml_gz): $(target_vendor_notice_file_xml_gz)
|
||||||
@@ -1125,6 +1143,8 @@ $(installed_odm_notice_xml_gz): $(target_odm_notice_file_xml_gz)
|
|||||||
$(copy-file-to-target)
|
$(copy-file-to-target)
|
||||||
$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz)
|
$(installed_vendor_dlkm_notice_xml_gz): $(target_vendor_dlkm_notice_file_xml_gz)
|
||||||
$(copy-file-to-target)
|
$(copy-file-to-target)
|
||||||
|
$(installed_odm_dlkm_notice_xml_gz): $(target_odm_dlkm_notice_file_xml_gz)
|
||||||
|
$(copy-file-to-target)
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_notice_html_or_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_notice_html_or_xml_gz)
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_notice_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_notice_xml_gz)
|
||||||
@@ -1132,6 +1152,7 @@ ALL_DEFAULT_INSTALLED_MODULES += $(installed_product_notice_xml_gz)
|
|||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_ext_notice_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_ext_notice_xml_gz)
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_odm_notice_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_odm_notice_xml_gz)
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_dlkm_notice_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_vendor_dlkm_notice_xml_gz)
|
||||||
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_odm_dlkm_notice_xml_gz)
|
||||||
endif # PRODUCT_NOTICE_SPLIT
|
endif # PRODUCT_NOTICE_SPLIT
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(installed_notice_html_or_xml_gz)
|
ALL_DEFAULT_INSTALLED_MODULES += $(installed_notice_html_or_xml_gz)
|
||||||
|
Reference in New Issue
Block a user