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