diff options
author | Jim Wilson <jimw@sifive.com> | 2019-02-15 12:34:00 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2019-02-15 12:34:00 -0800 |
commit | 379a9c2078c450e91b922f30c03606c1e77692a5 (patch) | |
tree | 5d52048c26aba53d8de8d09e66587ecf39b30d3e /Makefile.in | |
parent | 411d1345507e5313c3575720f128be9e6c0ed941 (diff) | |
download | riscv-gnu-toolchain-379a9c2078c450e91b922f30c03606c1e77692a5.zip riscv-gnu-toolchain-379a9c2078c450e91b922f30c03606c1e77692a5.tar.gz riscv-gnu-toolchain-379a9c2078c450e91b922f30c03606c1e77692a5.tar.bz2 |
Add toplevel --with-tune= configure option.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 5b84bfd..ece48d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,6 +21,7 @@ newlib_url := ftp://sourceware.org/pub/newlib/newlib-$(newlib_version).tar.gz WITH_ARCH ?= @WITH_ARCH@ WITH_ABI ?= @WITH_ABI@ +WITH_TUNE ?= @WITH_TUNE@ SYSROOT := $(INSTALL_DIR)/sysroot SHELL := /bin/sh @@ -299,6 +300,7 @@ stamps/build-gcc-linux-stage1: $(srcdir)/riscv-gcc stamps/build-binutils-linux \ $(MULTILIB_FLAGS) \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) inhibit-libc=true all-gcc @@ -330,6 +332,7 @@ stamps/build-gcc-linux-stage2: $(srcdir)/riscv-gcc $(addprefix stamps/build-glib $(MULTILIB_FLAGS) \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -380,7 +383,8 @@ stamps/build-gcc-linux-native: $(srcdir)/riscv-gcc stamps/build-gcc-linux-stage2 $(GCC_CHECKING_FLAGS) \ $(MULTILIB_FLAGS) \ $(WITH_ABI) \ - $(WITH_ARCH) + $(WITH_ARCH) \ + $(WITH_TUNE) $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(SYSROOT) @@ -455,6 +459,7 @@ stamps/build-gcc-newlib-stage1: $(srcdir)/riscv-gcc stamps/build-binutils-newlib $(MULTILIB_FLAGS) \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-Os $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-Os $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) all-gcc @@ -547,6 +552,7 @@ stamps/build-gcc-newlib-stage2: $(srcdir)/riscv-gcc stamps/build-newlib \ $(MULTILIB_FLAGS) \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-Os $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-Os $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -606,6 +612,7 @@ stamps/build-gcc-musl-stage1: $(srcdir)/riscv-gcc stamps/build-binutils-musl \ --disable-multilib \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) inhibit-libc=true all-gcc @@ -669,6 +676,7 @@ stamps/build-gcc-musl-stage2: $(srcdir)/riscv-gcc stamps/build-musl-linux \ --disable-multilib \ $(WITH_ABI) \ $(WITH_ARCH) \ + $(WITH_TUNE) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -677,7 +685,6 @@ stamps/build-gcc-musl-stage2: $(srcdir)/riscv-gcc stamps/build-musl-linux \ mkdir -p $(dir $@) && touch $@ - stamps/build-qemu: $(srcdir)/riscv-qemu rm -rf $@ $(notdir $@) mkdir $(notdir $@) |