From 1a278cad608d79adf851037dd7e04b33f860dbb5 Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Thu, 3 Aug 2017 00:55:05 +0800 Subject: Add build rule for `native` gnu toolchain --- Makefile.in | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Makefile.in b/Makefile.in index 145ad88..a3cb3e0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -58,6 +58,7 @@ CONFIGURE_HOST = @configure_host@ all: @default_target@ newlib: stamps/build-gcc-newlib-stage2 linux: stamps/build-gcc-linux-stage2 +linux-native: stamps/build-gcc-linux-native .PHONY: build-binutils build-gcc1 build-libc build-gcc2 build-qemu build-binutils: stamps/build-binutils-@default_target@ @@ -227,6 +228,49 @@ stamps/build-gcc-linux-stage2: $(srcdir)/riscv-gcc $(addprefix stamps/build-glib cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(SYSROOT) mkdir -p $(dir $@) && touch $@ +stamps/build-binutils-linux-native: $(srcdir)/riscv-binutils-gdb stamps/build-gcc-linux-stage2 + rm -rf $@ $(notdir $@) + mkdir $(notdir $@) + cd $(notdir $@) && $