mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 19:56:35 +00:00
package/pkg-utils.mk: rework implementation of extractor-system-dependency
Now that we have the EXTRACTOR_PKG_DEPENDENCY.* variables available, we can use them to implement extractor-system-dependency: if for a given archive type, the corresponding EXTRACTOR_PKG_DEPENDENCY.<type> variable is empty, then it means we need the corresponding extractor tool to be provided by the system. Following this, EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS is no longer used, so we can drop it from support/dependencies/. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
6d162dd44e
commit
2e42840e2a
@ -62,8 +62,8 @@ extractor-pkg-dependency = $(EXTRACTOR_PKG_DEPENDENCY$(suffix $(1)))
|
|||||||
# $(firstword) is used here because the extractor can have arguments,
|
# $(firstword) is used here because the extractor can have arguments,
|
||||||
# like ZCAT="gzip -d -c", and to check for the dependency we only want
|
# like ZCAT="gzip -d -c", and to check for the dependency we only want
|
||||||
# 'gzip'.
|
# 'gzip'.
|
||||||
extractor-system-dependency = $(firstword $(INFLATE$(filter-out \
|
extractor-system-dependency = $(if $(EXTRACTOR_PKG_DEPENDENCY$(suffix $(1))),,\
|
||||||
$(EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS),$(suffix $(1)))))
|
$(firstword $(INFLATE$(suffix $(1)))))
|
||||||
|
|
||||||
# check-deprecated-variable -- throw an error on deprecated variables
|
# check-deprecated-variable -- throw an error on deprecated variables
|
||||||
# example:
|
# example:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
ifeq (,$(call suitable-host-package,lzip,$(LZCAT)))
|
ifeq (,$(call suitable-host-package,lzip,$(LZCAT)))
|
||||||
BR2_LZIP_HOST_DEPENDENCY = host-lzip
|
BR2_LZIP_HOST_DEPENDENCY = host-lzip
|
||||||
EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS += .lz
|
|
||||||
LZCAT = $(HOST_DIR)/bin/lzip -d -c
|
LZCAT = $(HOST_DIR)/bin/lzip -d -c
|
||||||
endif
|
endif
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
|
|
||||||
ifeq (,$(call suitable-host-package,xzcat,$(XZCAT)))
|
ifeq (,$(call suitable-host-package,xzcat,$(XZCAT)))
|
||||||
BR2_XZCAT_HOST_DEPENDENCY = host-xz
|
BR2_XZCAT_HOST_DEPENDENCY = host-xz
|
||||||
EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS += .xz .lzma
|
|
||||||
XZCAT = $(HOST_DIR)/bin/xzcat
|
XZCAT = $(HOST_DIR)/bin/xzcat
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user