From 278bbf126321304e125c8226b0cb8b51f25f3f0e Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Tue, 30 Apr 2013 16:26:58 +0100 Subject: [PATCH] Don't concatenate the NOTICE file for a single module. When the NOTICE file for a module changed, the new NOTICE was being concatenated onto the end of the old one in non-clean builds, taking up more and more space and presumably duplicating most of the content. Only one set of rules for a given file can exist in make, so there cannot be a case where more than one $(notice_file) was intentionally being concatenated together as this would be an error. Change-Id: I0f5fae498225eaee5cc75d854223b5ba790fcebe --- core/notice_files.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/notice_files.mk b/core/notice_files.mk index 2c0a3d3550..7e61c1e237 100644 --- a/core/notice_files.mk +++ b/core/notice_files.mk @@ -64,7 +64,7 @@ $(installed_notice_file): PRIVATE_INSTALLED_MODULE := $(module_installed_filenam $(installed_notice_file): $(notice_file) @echo Notice file: $< -- $@ $(hide) mkdir -p $(dir $@) - $(hide) cat $< >> $@ + $(hide) cat $< > $@ ifdef LOCAL_INSTALLED_MODULE # Make LOCAL_INSTALLED_MODULE depend on NOTICE files if they exist