OSDN Git Service

collect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE
authorAndrew Boie <andrew.p.boie@intel.com>
Fri, 13 Dec 2013 22:28:53 +0000 (14:28 -0800)
committerAndrew Boie <andrew.p.boie@intel.com>
Mon, 27 Jan 2014 20:25:43 +0000 (12:25 -0800)
We have no rigorous way to detect whether the code referenced for this
mechanism changes in between builds. So declare this as a phony target
so that it is rebuilt every time.

Change-Id: Ie1670d96895719d406e7b0defd53ba3cd224dd83
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
core/tasks/collect_gpl_sources.mk

index 3c7afcc..30ba62b 100644 (file)
@@ -14,8 +14,9 @@
 
 gpl_source_tgz := $(call intermediates-dir-for,PACKAGING,gpl_source,HOST,COMMON)/gpl_source.tgz
 
+# FORCE since we can't know whether any of the sources changed
 $(gpl_source_tgz): PRIVATE_PATHS := $(sort $(patsubst %/, %, $(dir $(ALL_GPL_MODULE_LICENSE_FILES))))
-$(gpl_source_tgz) : $(ALL_GPL_MODULE_LICENSE_FILES)
+$(gpl_source_tgz) : $(ALL_GPL_MODULE_LICENSE_FILES) FORCE
        @echo Package gpl sources: $@
        @rm -rf $(dir $@) && mkdir -p $(dir $@)
        $(hide) tar cfz $@ --exclude ".git*" $(PRIVATE_PATHS)