[source] tools: make all tools depend on xz

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 6 05:13:26 PDT 2016


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/575d3865908bf46568e6ee039ca47cf517abd9ee

commit 575d3865908bf46568e6ee039ca47cf517abd9ee
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Thu Oct 6 13:15:14 2016 +0200

    tools: make all tools depend on xz
    
    Make all tools except tar (which is required to bootstrap xz-utils) and XZ
    itself depend on XZ, in order to be able to handle .tar.xz downloads.
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 tools/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/Makefile b/tools/Makefile
index 1708c9a..186c6c4 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -97,6 +97,9 @@ endif
 # dependency for tools which have patches directory
 $(foreach tool, $(tools-y), $(if $(wildcard $(curdir)/$(tool)/patches),$(eval $(curdir)/$(tool)/compile += $(curdir)/patch/install)))
 
+# make any tool (except xz itself) depend on XZ to ensure that *.tar.xz source archives can be unpacked
+$(foreach tool, $(filter-out xz,$(tools-y)), $(eval $(curdir)/$(tool)/compile += $(curdir)/xz/install))
+
 $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/tar/install))
 tools-y += tar
 



More information about the lede-commits mailing list