include $(TOOLCHAIN_DIR)/make/target/gcc/libgcc.mk include $(TOOLCHAIN_DIR)/make/target/gdb/gdb.mk include $(TOOLCHAIN_DIR)/make/target/uclibc/uclibc.mk KERNEL_TOOLCHAIN_VERSION:=0.3 TARGET_TOOLCHAIN_VERSION:=0.6 KERNEL_TOOLCHAIN_SOURCE:=gcc-$(KERNEL_TOOLCHAIN_GCC_VERSION)-freetz-$(KERNEL_TOOLCHAIN_VERSION).tar.lzma TARGET_TOOLCHAIN_SOURCE:=gcc-$(TARGET_TOOLCHAIN_GCC_VERSION)-uclibc-$(TARGET_TOOLCHAIN_UCLIBC_VERSION)-freetz-$(TARGET_TOOLCHAIN_VERSION).tar.lzma KERNEL_TOOLCHAIN_MD5SUM:=79395130ec54cb42807fcd79628c8597 TARGET_TOOLCHAIN_0_9_28_MD5SUM:=c668571014dff59b307c0b7be956d5a6 TARGET_TOOLCHAIN_0_9_29_MD5SUM:=6d7a0f928d688754879dcc36adc9ae94 $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(KERNEL_TOOLCHAIN_SOURCE) "" $(KERNEL_TOOLCHAIN_MD5SUM) $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE): | $(DL_DIR) ifeq ($(strip $(TARGET_TOOLCHAIN_UCLIBC_VERSION)),0.9.28) @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(TARGET_TOOLCHAIN_SOURCE) "" $(TARGET_TOOLCHAIN_0_9_28_MD5SUM) else @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(TARGET_TOOLCHAIN_SOURCE) "" $(TARGET_TOOLCHAIN_0_9_29_MD5SUM) endif download-toolchain: $(KERNEL_TOOLCHAIN_STAGING_DIR)/bin/$(REAL_GNU_KERNEL_NAME)-gcc kernel-configured \ $(TARGET_TOOLCHAIN_STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc \ $(ROOT_DIR)/lib/libc.so.0 $(ROOT_DIR)/lib/libgcc_s.so.1 \ $(CCACHE) $(KERNEL_TOOLCHAIN_STAGING_DIR)/bin/$(REAL_GNU_KERNEL_NAME)-gcc: $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE) | \ $(KERNEL_TOOLCHAIN_SYMLINK) $(TOOLS_DIR)/busybox mkdir -p $(TOOLCHAIN_DIR)/build $(RM) $(TOOLCHAIN_DIR)/kernel $(TOOLS_DIR)/busybox tar $(VERBOSE) -xaf $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE) -C $(TOOLCHAIN_DIR)/build -@ln -s $(BUILD_DIR)/gcc-$(KERNEL_TOOLCHAIN_GCC_VERSION)/mipsel-unknown-linux-gnu $(TOOLCHAIN_DIR)/kernel @touch $@ $(TARGET_TOOLCHAIN_STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE) | \ $(TARGET_TOOLCHAIN_SYMLINK) $(TOOLS_DIR)/busybox mkdir -p $(TOOLCHAIN_DIR)/build $(RM) $(TOOLCHAIN_DIR)/target $(TOOLS_DIR)/busybox tar $(VERBOSE) -xaf $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE) -C $(TOOLCHAIN_DIR)/build -@ln -s $(BUILD_DIR)/$(TARGET_TOOLCHAIN_COMPILER)/$(REAL_GNU_TARGET_NAME) $(TOOLCHAIN_DIR)/target @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: rm -rf $(TOOLCHAIN_BUILD_DIR)/$(KERNEL_TOOLCHAIN_COMPILER) rm -f $(TOOLCHAIN_DIR)/kernel target-toolchain-dirclean: rm -rf $(TOOLCHAIN_BUILD_DIR)/$(TARGET_TOOLCHAIN_COMPILER) rm -f $(TOOLCHAIN_DIR)/target kernel-toolchain-distclean: kernel-toolchain-dirclean target-toolchain-distclean: target-toolchain-dirclean