include $(TOOLCHAIN_DIR)/make/kernel/binutils/binutils.mk include $(TOOLCHAIN_DIR)/make/kernel/gcc/gcc.mk include $(TOOLCHAIN_DIR)/make/kernel/ccache/ccache.mk KERNEL_TOOLCHAIN:=binutils-kernel gcc-kernel ifeq ($(strip $(FREETZ_TARGET_CCACHE)),y) KERNEL_TOOLCHAIN+=ccache-kernel endif $(KERNEL_TOOLCHAIN_DIR): @mkdir -p $@ $(KERNEL_TOOLCHAIN_STAGING_DIR): @mkdir -p $@ $@/bin $@/lib @mkdir -p $@/$(REAL_GNU_KERNEL_NAME) @ln -snf ../lib $@/$(REAL_GNU_KERNEL_NAME)/lib kernel-toolchain: $(KERNEL_TOOLCHAIN_DIR) \ $(KERNEL_TOOLCHAIN_STAGING_DIR) \ $(KERNEL_TOOLCHAIN_SYMLINK_DOT_FILE) \ $(KERNEL_TOOLCHAIN) kernel-toolchain-source: $(KERNEL_TOOLCHAIN_DIR) \ $(BINUTILS_KERNEL_DIR)/.unpacked \ $(GCC_KERNEL_DIR)/.unpacked \ $(CCACHE_KERNEL_DIR)./unpacked kernel-toolchain-clean: $(RM) $(KERNEL_TOOLCHAIN_STAGING_DIR)/bin/$(REAL_GNU_KERNEL_NAME)* -$(MAKE) -C $(BINUTILS_KERNEL_DIR) clean $(RM) -r $(GCC_KERNELBUILD_DIR) ifeq ($(strip $(FREETZ_KERNEL_CCACHE)),y) $(RM) $(KERNEL_TOOLCHAIN_STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)* -$(MAKE) -C $(CCACHE_KERNEL_DIR) clean endif kernel-toolchain-dirclean: $(RM) -r $(KERNEL_TOOLCHAIN_DIR)