diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-10-28 22:07:37 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-10-28 22:07:37 -0700 |
commit | c87ff13863cda5f0831956e8cd2e316a2504c417 (patch) | |
tree | 06c56b0038fd26c60fa8d2bfe270bc897375eaa8 /Makefile.in | |
parent | 048a6a2054ac2650b565806b01c6a2699226eb87 (diff) | |
download | riscv-gnu-toolchain-c87ff13863cda5f0831956e8cd2e316a2504c417.zip riscv-gnu-toolchain-c87ff13863cda5f0831956e8cd2e316a2504c417.tar.gz riscv-gnu-toolchain-c87ff13863cda5f0831956e8cd2e316a2504c417.tar.bz2 |
change prefix to riscv64-unknown-{linux-gnu/elf}-
h/t Palmer Dabbelt
Diffstat (limited to 'Makefile.in')
-rwxr-xr-x | Makefile.in | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index f3aeca8..9b32a73 100755 --- a/Makefile.in +++ b/Makefile.in @@ -71,7 +71,7 @@ build-binutils-linux: src/binutils cd $@ && \ CFLAGS+=-Wno-error=deprecated-declarations \ $(shell pwd)/$</configure \ - --target=riscv-linux \ + --target=riscv64-unknown-linux-gnu \ --prefix=$(INSTALL_DIR) \ --enable-tls \ --disable-multilib @@ -82,8 +82,8 @@ build-glibc-linux: src/glibc build-gcc-linux-stage1 rm -rf $@ mkdir $@ cd $@ && CC= $(shell pwd)/$</configure \ - --host=riscv-linux \ - --prefix=$(INSTALL_DIR)/riscv-linux \ + --host=riscv64-unknown-linux-gnu \ + --prefix=$(INSTALL_DIR)/riscv64-unknown-linux-gnu \ libc_cv_forced_unwind=yes \ libc_cv_c_cleanup=yes \ --enable-shared \ @@ -97,7 +97,7 @@ build-gcc-linux-stage1: src/gcc build-binutils-linux rm -rf $@ mkdir $@ cd $@ && $(shell pwd)/$</configure \ - --target=riscv-linux \ + --target=riscv64-unknown-linux-gnu \ --prefix=$(INSTALL_DIR) \ --enable-shared \ --disable-threads \ @@ -118,7 +118,7 @@ build-gcc-linux-stage2: src/gcc build-glibc-linux rm -rf $@ mkdir $@ cd $@ && $(shell pwd)/$</configure \ - --target=riscv-linux \ + --target=riscv64-unknown-linux-gnu \ --prefix=$(INSTALL_DIR) \ --enable-shared \ --enable-tls \ @@ -139,7 +139,7 @@ build-binutils-newlib: src/binutils cd $@ && \ CFLAGS+=-Wno-error=deprecated-declarations \ $(shell pwd)/$</configure \ - --target=riscv-elf \ + --target=riscv64-unknown-elf \ --prefix=$(INSTALL_DIR) \ --enable-tls $(MAKE) -C $@ -j $(MAKE_JOBS) @@ -155,7 +155,7 @@ build-gcc-newlib: src/newlib-gcc build-binutils-newlib rm -rf $@ mkdir $@ cd $@ && $(shell pwd)/$</configure \ - --target=riscv-elf \ + --target=riscv64-unknown-elf \ --prefix=$(INSTALL_DIR) \ --disable-shared \ --disable-threads \ @@ -169,7 +169,6 @@ build-gcc-newlib: src/newlib-gcc build-binutils-newlib --disable-nls $(MAKE) -C $@ -j $(MAKE_JOBS) inhibit-libc=true $(MAKE) -C $@ -j $(MAKE_JOBS) install - for i in $(INSTALL_DIR)/bin/riscv-elf-*; do j=`echo $$i | sed 's/riscv-elf-/riscv-/'`; if [ ! -f $$j ]; then ln -s `basename $$i` $$j; fi; done clean: rm -rf build-* $(addprefix src/,$(PACKAGES)) |