buildroot/package/fakedate/fakedate.mk
Heiko Thiery 23c21c6f29 package/pkg-generic.mk: add variable to skip ccache dependency
As more and more packages are required to build the host ccache package
and therefore they has to be filtered out for ccache dependency the list
growed up.

By adding the variable <PKG>_ADD_CCACHE_DEPENDENCY with the default
value to 'yes' we can remove that dependency for each package that is
needed by ccache by setting the value to 'no'. This can be done  in the
package makefile instead of tracking the list in the core pkg-generic.mk file.

This behavior is similar to the skeleton and toolchain dependency.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
[Arnout: move the BR2_CCACHE condition to the dependency itself]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-07-13 22:21:30 +02:00

18 lines
500 B
Makefile

################################################################################
#
# fakedate
#
################################################################################
# source included in buildroot
HOST_FAKEDATE_LICENSE = GPL-2.0+
# The package is a dependency to ccache so ccache cannot be a dependency
HOST_FAKEDATE_ADD_CCACHE_DEPENDENCY = NO
define HOST_FAKEDATE_INSTALL_CMDS
$(INSTALL) -D -m 755 package/fakedate/fakedate $(HOST_DIR)/bin/date
endef
$(eval $(host-generic-package))