|
|
@ -17,6 +17,11 @@ PKG_CAT:=zcat
|
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Host/Install/ccache
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
|
|
|
|
$(CP) ./files/* $(STAGING_DIR_HOST)/bin/
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
|
|
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
|
|
|
define Host/Compile
|
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
|
|
|
|
$(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
|
|
|
@ -26,6 +31,10 @@ ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
$(call Host/Clean/Default)
|
|
|
|
$(call Host/Clean/Default)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
|
|
|
|
$(call Host/Install/Default)
|
|
|
|
|
|
|
|
$(call Host/Install/ccache)
|
|
|
|
|
|
|
|
endef
|
|
|
|
else
|
|
|
|
else
|
|
|
|
define Host/Prepare
|
|
|
|
define Host/Prepare
|
|
|
|
endef
|
|
|
|
endef
|
|
|
@ -34,6 +43,7 @@ else
|
|
|
|
define Host/Compile
|
|
|
|
define Host/Compile
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
define Host/Install
|
|
|
|
define Host/Install
|
|
|
|
|
|
|
|
$(call Host/Install/ccache)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
define Host/Clean
|
|
|
|
define Host/Clean
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|