From dbb8d7a3d40137d2248ebe4209b834c080e3d844 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Wed, 16 Mar 2022 18:08:37 -0700 Subject: [PATCH] Apps-only notice file Bug: 225050939 Bug: 68860345 Bug: 151177513 Bug: 151953481 Bug: 213388645 Bug: 210912771 Test: m alllicensemetadata reportmissinglicenses Change-Id: I5564c59686277398e05bb59b30d548b2ed678eab --- core/main.mk | 14 +++++++------- core/os_licensing.mk | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/core/main.mk b/core/main.mk index d5dc49f6ae..d3b5d5ff89 100644 --- a/core/main.mk +++ b/core/main.mk @@ -1765,13 +1765,13 @@ apps_only: $(unbundled_build_modules) droid_targets: apps_only -# Combine the NOTICE files for a apps_only build -$(eval $(call combine-notice-files, html, \ - $(target_notice_file_txt), \ - $(target_notice_file_html_or_xml), \ - "Notices for files for apps:", \ - $(TARGET_OUT_NOTICE_FILES), \ - $(apps_only_installed_files))) +# NOTICE files for a apps_only build +$(eval $(call html-notice-rule,$(target_notice_file_html_or_xml),"Apps","Notices for files for apps:",$(unbundled_build_modules),$(PRODUCT_OUT)/ $(HOST_OUT)/)) + +$(eval $(call text-notice-rule,$(target_notice_file_txt),"Apps","Notices for files for apps:",$(unbundled_build_modules),$(PRODUCT_OUT)/ $(HOST_OUT)/)) + +$(call declare-0p-target,$(target_notice_file_txt)) +$(call declare-0p-target,$(target_notice_html_or_xml_gz)) else ifeq ($(TARGET_BUILD_UNBUNDLED),$(TARGET_BUILD_UNBUNDLED_IMAGE)) diff --git a/core/os_licensing.mk b/core/os_licensing.mk index 8ab53a527c..d8d3c78945 100644 --- a/core/os_licensing.mk +++ b/core/os_licensing.mk @@ -1,3 +1,5 @@ +ifeq ($(TARGET_BUILD_APPS),) + .PHONY: systemlicense systemlicense: $(call corresponding-license-metadata, $(SYSTEM_NOTICE_DEPS)) reportmissinglicenses @@ -169,3 +171,5 @@ $(call declare-0p-target,$(target_system_dlkm_notice_file_xml_gz)) $(call declare-0p-target,$(installed_sysetm_dlkm_notice_xml_gz)) ALL_DEFAULT_INSTALLED_MODULES += $(installed_system_dlkm_notice_xml_gz) endif + +endif # not TARGET_BUILD_APPS