include $(TOOLCHAIN_DIR)/make/kernel/ccache/ccache.mk include $(TOOLCHAIN_DIR)/make/target/ccache/ccache.mk include $(TOOLCHAIN_DIR)/make/target/libtool-host/libtool-host.mk include $(TOOLCHAIN_DIR)/make/target/uclibc/uclibc.mk ifeq ($(strip $(FREETZ_TOOLCHAIN_CCACHE)),y) CCACHE:=ccache-kernel ccache endif KERNEL_TOOLCHAIN_MD5:=$(call qstrip,$(FREETZ_DL_KERNEL_TOOLCHAIN_MD5)) KERNEL_TOOLCHAIN_VERSION:=$(call qstrip,$(FREETZ_DL_KERNEL_TOOLCHAIN_VERSION)) KERNEL_TOOLCHAIN_SUFFIX:=$(call qstrip,$(FREETZ_DL_TOOLCHAIN_SUFFIX)) KERNEL_TOOLCHAIN_SOURCE:=$(KERNEL_TOOLCHAIN_COMPILER)-freetz-$(KERNEL_TOOLCHAIN_VERSION)-$(KERNEL_TOOLCHAIN_SUFFIX).tar.lzma TARGET_TOOLCHAIN_MD5:=$(call qstrip,$(FREETZ_DL_TARGET_TOOLCHAIN_MD5)) TARGET_TOOLCHAIN_VERSION:=$(call qstrip,$(FREETZ_DL_TARGET_TOOLCHAIN_VERSION)) TARGET_TOOLCHAIN_SUFFIX:=$(call qstrip,$(FREETZ_DL_TOOLCHAIN_SUFFIX)) TARGET_TOOLCHAIN_SOURCE:=$(TARGET_TOOLCHAIN_COMPILER)-freetz-$(TARGET_TOOLCHAIN_VERSION)-$(TARGET_TOOLCHAIN_SUFFIX).tar.lzma $(KERNEL_TOOLCHAIN_DIR) $(TARGET_TOOLCHAIN_DIR): @mkdir -p $@ $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(KERNEL_TOOLCHAIN_SOURCE) $(FREETZ_DL_TOOLCHAIN_SITE) $(KERNEL_TOOLCHAIN_MD5) $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(TARGET_TOOLCHAIN_SOURCE) $(FREETZ_DL_TOOLCHAIN_SITE) $(TARGET_TOOLCHAIN_MD5) download-toolchain: \ $(KERNEL_CROSS_COMPILER) kernel-configured \ $(TARGET_CROSS_COMPILER) target-toolchain-kernel-headers $(TARGET_SPECIFIC_ROOT_DIR)/lib/libc.so.$(TARGET_TOOLCHAIN_UCLIBC_MAJOR_VERSION) \ $(CCACHE) \ $(STDCXXLIB) $(TARGET_CXX_CROSS_COMPILER_SYMLINK_TIMESTAMP) \ libtool-host \ $(if $(FREETZ_PACKAGE_GDB_HOST),gdbhost) gcc-kernel: $(KERNEL_CROSS_COMPILER) $(KERNEL_CROSS_COMPILER): $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE) | $(TOOLCHAIN_BUILD_DIR) $(KERNEL_TOOLCHAIN_SYMLINK_DOT_FILE) $(UNPACK_TARBALL_PREREQUISITES) $(RM) -r $(TOOLCHAIN_BUILD_DIR)/$(KERNEL_TOOLCHAIN_COMPILER) $(call UNPACK_TARBALL,$(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE),$(TOOLCHAIN_BUILD_DIR)) @touch $@ gcc: $(TARGET_CROSS_COMPILER) $(TARGET_CROSS_COMPILER): $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE) | $(TOOLCHAIN_BUILD_DIR) $(TARGET_TOOLCHAIN_SYMLINK_DOT_FILE) $(UNPACK_TARBALL_PREREQUISITES) $(RM) -r $(TOOLCHAIN_BUILD_DIR)/$(TARGET_TOOLCHAIN_COMPILER) $(call UNPACK_TARBALL,$(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE),$(TOOLCHAIN_BUILD_DIR)) @touch $@ download-toolchain-clean: download-toolchain-dirclean: kernel-toolchain-dirclean target-toolchain-dirclean download-toolchain-distclean: kernel-toolchain-distclean target-toolchain-distclean kernel-toolchain-dirclean: target-toolchain-dirclean: .PHONY: gcc-kernel gcc