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:=kernel-toolchain-freetz-$(KERNEL_TOOLCHAIN_VERSION).tar.lzma TARGET_TOOLCHAIN_SOURCE:=target-toolchain-freetz-$(TARGET_TOOLCHAIN_VERSION).tar.lzma TOOLCHAIN_SITE:=http://freetz.wirsind.info $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(KERNEL_TOOLCHAIN_SOURCE) $(TOOLCHAIN_SITE) $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(TARGET_TOOLCHAIN_SOURCE) $(TOOLCHAIN_SITE) download-toolchain: $(TOOLCHAIN_DIR)/kernel/.installed kernel-configured \ $(TOOLCHAIN_DIR)/target/.installed \ $(ROOT_DIR)/lib/libc.so.0 $(ROOT_DIR)/lib/libgcc_s.so.1 $(TOOLCHAIN_DIR)/kernel/.installed: $(DL_DIR)/$(KERNEL_TOOLCHAIN_SOURCE) | $(TOOLS_DIR)/busybox mkdir -p $(TOOLCHAIN_DIR)/build rm -rf $(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 $@ $(TOOLCHAIN_DIR)/target/.installed: $(DL_DIR)/$(TARGET_TOOLCHAIN_SOURCE) | $(TOOLS_DIR)/busybox mkdir -p $(TOOLCHAIN_DIR)/build rm -rf $(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 $@ toolchain-distclean: rm -rf $(TOOLCHAIN_DIR)/build rm -rf $(TOOLCHAIN_DIR)/kernel rm -rf $(TOOLCHAIN_DIR)/target