mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-20 07:41:47 -09:00
package: refactor listing of extractor dependencies
Don't special case $(XZCAT) when constructing DL_TOOLS_DEPENDENCIES. The next commit will introduce another extractor that automatically builds when not installed. Introduce EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS that lists archive extensions for which the extractor is already checked in support/dependencies/check-host-foo.mk. Use this in the newly introduced extractor-dependency to populate DL_TOOLS_DEPENDENCIES. Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> [Thomas: add missing space after "firstword", as noticed by Thomas DS.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
9244ad854d
commit
dc7fcbe494
@@ -45,6 +45,13 @@ INFLATE.tar = cat
|
||||
# suitable-extractor(filename): returns extractor based on suffix
|
||||
suitable-extractor = $(INFLATE$(suffix $(1)))
|
||||
|
||||
# extractor-dependency(filename): returns extractor for 'filename' if the
|
||||
# extractor is a dependency. If we build the extractor return nothing.
|
||||
# $(firstword) is used here because the extractor can have arguments, like
|
||||
# ZCAT="gzip -d -c", and to check for the dependency we only want 'gzip'.
|
||||
extractor-dependency = $(firstword $(INFLATE$(filter-out \
|
||||
$(EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS),$(suffix $(1)))))
|
||||
|
||||
# check-deprecated-variable -- throw an error on deprecated variables
|
||||
# example:
|
||||
# $(eval $(call check-deprecated-variable,FOO_MAKE_OPT,FOO_MAKE_OPTS))
|
||||
|
||||
Reference in New Issue
Block a user