diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2022-04-11 23:02:59 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2022-04-11 23:07:36 +0800 |
commit | 44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6 (patch) | |
tree | ce1070502841bb53cd8f6712fdd785fece1fb9c7 /Makefile.in | |
parent | cc1075c916491ac5bd6cae419f6ca371a268b10d (diff) | |
download | riscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.zip riscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.tar.gz riscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.tar.bz2 |
Add --with-isa-spec option to configure
Set the default version to 2.2 for now, and once we bump to GCC 12 we
will bump that to 20191213.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in index c9a56d9..4d44fc3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -33,6 +33,7 @@ endif WITH_ARCH ?= @WITH_ARCH@ WITH_ABI ?= @WITH_ABI@ WITH_TUNE ?= @WITH_TUNE@ +WITH_ISA_SPEC ?= @WITH_ISA_SPEC@ SYSROOT := $(INSTALL_DIR)/sysroot SHELL := /bin/sh @@ -282,7 +283,8 @@ stamps/build-binutils-linux: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) stamps/check --disable-gdb \ --disable-sim \ --disable-libdecnumber \ - --disable-readline + --disable-readline \ + $(WITH_ISA_SPEC) $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ @@ -389,6 +391,7 @@ stamps/build-gcc-linux-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutil $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) inhibit-libc=true all-gcc @@ -426,6 +429,7 @@ stamps/build-gcc-linux-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) $(addprefix stamps/b $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -449,7 +453,8 @@ stamps/build-binutils-linux-native: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) stamp --disable-gdb \ --disable-sim \ --disable-libdecnumber \ - --disable-readline + --disable-readline \ + $(WITH_ISA_SPEC) $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ @@ -477,7 +482,8 @@ stamps/build-gcc-linux-native: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-gcc-lin $(MULTILIB_FLAGS) \ $(WITH_ABI) \ $(WITH_ARCH) \ - $(WITH_TUNE) + $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install cp -a $(INSTALL_DIR)/$(LINUX_TUPLE)/lib* $(SYSROOT) @@ -501,7 +507,8 @@ stamps/build-binutils-newlib: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) stamps/chec --disable-gdb \ --disable-sim \ --disable-libdecnumber \ - --disable-readline + --disable-readline \ + $(WITH_ISA_SPEC) $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ @@ -554,6 +561,7 @@ stamps/build-gcc-newlib-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binuti $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-Os $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-Os $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) all-gcc @@ -653,6 +661,7 @@ stamps/build-gcc-newlib-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-newlib $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-Os $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-Os $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -680,7 +689,8 @@ stamps/build-binutils-musl: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) stamps/check- --disable-gdb \ --disable-sim \ --disable-libdecnumber \ - --disable-readline + --disable-readline \ + $(WITH_ISA_SPEC) $(MAKE) -C $(notdir $@) $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ @@ -713,6 +723,7 @@ stamps/build-gcc-musl-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutils $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) inhibit-libc=true all-gcc @@ -780,6 +791,7 @@ stamps/build-gcc-musl-stage2: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-musl-lin $(WITH_ABI) \ $(WITH_ARCH) \ $(WITH_TUNE) \ + $(WITH_ISA_SPEC) \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) |