|
|
@ -19,11 +19,7 @@ PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk |
|
|
|
include $(INCLUDE_DIR)/host-build.mk |
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(shell which ccache),) |
|
|
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found) |
|
|
|
define Build/Configure
|
|
|
|
|
|
|
|
$(call Build/Configure/Default)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) CC="$(HOSTCC)" -C $(PKG_BUILD_DIR)
|
|
|
|
$(MAKE) CC="$(HOSTCC)" -C $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
endef
|
|
|
@ -35,8 +31,19 @@ ifneq ($(shell which ccache),) |
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Clean
|
|
|
|
define Build/Clean
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
|
|
|
|
|
|
$(call Build/Clean/Default)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call HostBuild)) |
|
|
|
$(eval $(call HostBuild)) |
|
|
|