mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/pkg-generic: handle host-ccache as a regular dependency
This moves the host-ccache dependency handling from DEPENDENCIES_HOST_PREREQ to a proper package dependency. When BR2_CCACHE=y, we add host-ccache as a regular dependency of all packages except: - The extractor packages host-tar, host-xz and host-lzip - host-ccache itself - host-skeleton, because all packages depend on it Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
15815e43dd
commit
0283d7ee39
@ -21,6 +21,11 @@ CCACHE_LICENSE_FILES = LICENSE.txt GPL-3.0.txt
|
|||||||
# has zero dependency besides the C library.
|
# has zero dependency besides the C library.
|
||||||
HOST_CCACHE_CONF_OPTS += --with-bundled-zlib
|
HOST_CCACHE_CONF_OPTS += --with-bundled-zlib
|
||||||
|
|
||||||
|
# We are ccache, so we can't use ccache
|
||||||
|
HOST_CCACHE_CONF_ENV = \
|
||||||
|
CC="$(HOSTCC_NOCCACHE)" \
|
||||||
|
CXX="$(HOSTCXX_NOCCACHE)"
|
||||||
|
|
||||||
# Patch host-ccache as follows:
|
# Patch host-ccache as follows:
|
||||||
# - Use BR_CACHE_DIR instead of CCACHE_DIR, because CCACHE_DIR
|
# - Use BR_CACHE_DIR instead of CCACHE_DIR, because CCACHE_DIR
|
||||||
# is already used by autotargets for the ccache package.
|
# is already used by autotargets for the ccache package.
|
||||||
|
@ -567,6 +567,12 @@ ifeq ($(filter host-tar host-skeleton host-xz host-lzip,$(1)),)
|
|||||||
$(2)_EXTRACT_DEPENDENCIES += $(BR2_LZIP_HOST_DEPENDENCY)
|
$(2)_EXTRACT_DEPENDENCIES += $(BR2_LZIP_HOST_DEPENDENCY)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_CCACHE),y)
|
||||||
|
ifeq ($(filter host-tar host-skeleton host-xz host-lzip host-ccache,$(1)),)
|
||||||
|
$(2)_DEPENDENCIES += host-ccache
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Eliminate duplicates in dependencies
|
# Eliminate duplicates in dependencies
|
||||||
$(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES))
|
$(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES))
|
||||||
$(2)_FINAL_EXTRACT_DEPENDENCIES = $$(sort $$($(2)_EXTRACT_DEPENDENCIES))
|
$(2)_FINAL_EXTRACT_DEPENDENCIES = $$(sort $$($(2)_EXTRACT_DEPENDENCIES))
|
||||||
|
@ -17,10 +17,6 @@ endef
|
|||||||
include support/dependencies/check-host-tar.mk
|
include support/dependencies/check-host-tar.mk
|
||||||
-include $(sort $(filter-out %-tar.mk,$(wildcard support/dependencies/check-host-*.mk)))
|
-include $(sort $(filter-out %-tar.mk,$(wildcard support/dependencies/check-host-*.mk)))
|
||||||
|
|
||||||
ifeq ($(BR2_CCACHE),y)
|
|
||||||
DEPENDENCIES_HOST_PREREQ += host-ccache
|
|
||||||
endif
|
|
||||||
|
|
||||||
core-dependencies:
|
core-dependencies:
|
||||||
@MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
|
@MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
|
||||||
$(TOPDIR)/support/dependencies/dependencies.sh
|
$(TOPDIR)/support/dependencies/dependencies.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user