Commit 31b312a4 authored by Emmanuel Vadot's avatar Emmanuel Vadot

devel/binutils: Add support for riscv32-unknown-elf

This is usefull to do baremetal on riscv32 SoC/FPGA implementation.

Approved by:	bapt


git-svn-id: svn+ssh://svn.freebsd.org/ports/[email protected] 35697150-7ecd-e111-bb59-0022644237b5
parent ec00837f
......@@ -16,7 +16,7 @@ LICENSE_COMB= multi
FLAVORS= native aarch64 aarch64_none_elf amd64 arm_gnueabi arm_none_eabi \
avr i386 mingw32 mips mips64 powerpc powerpc64 riscv64 \
riscv64_none_elf s390x sparc64
riscv64_none_elf s390x sparc64 riscv32_unknown_elf
FLAVOR?= native
RELRO_CONFIGURE_ON= --enable-relro
......@@ -65,7 +65,7 @@ INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/share/info
.if ${FLAVOR} == aarch64
BROKEN_mips= fails to configure: error: C compiler cannot create executables
BROKEN_mips64= fails to configure: error: C compiler cannot create executables
.elif ${FLAVOR} == aarch64_none_elf || ${FLAVOR} == arm_none_eabi || ${FLAVOR} == riscv64_none_elf || ${FLAVOR} == mingw32 || ${FLAVOR} == avr
.elif ${FLAVOR} == aarch64_none_elf || ${FLAVOR} == arm_none_eabi || ${FLAVOR} == riscv64_none_elf || ${FLAVOR} == mingw32 || ${FLAVOR} == avr || ${FLAVOR} == riscv32_unknown_elf
BUTARGET= ${FLAVOR:C/_/-/g}
.elif ${FLAVOR} == amd64
BUTARGET= x86_64-unknown-${OPSYS:tl}${OSREL}
......
bin/%%BUTARGET%%-addr2line
bin/%%BUTARGET%%-ar
bin/%%BUTARGET%%-as
bin/%%BUTARGET%%-c++filt
bin/%%BUTARGET%%-elfedit
bin/%%BUTARGET%%-gprof
bin/%%BUTARGET%%-ld
bin/%%BUTARGET%%-ld.bfd
bin/%%BUTARGET%%-nm
bin/%%BUTARGET%%-objcopy
bin/%%BUTARGET%%-objdump
bin/%%BUTARGET%%-ranlib
bin/%%BUTARGET%%-readelf
bin/%%BUTARGET%%-size
bin/%%BUTARGET%%-strings
bin/%%BUTARGET%%-strip
man/man1/%%BUTARGET%%-addr2line.1.gz
man/man1/%%BUTARGET%%-ar.1.gz
man/man1/%%BUTARGET%%-as.1.gz
man/man1/%%BUTARGET%%-c++filt.1.gz
man/man1/%%BUTARGET%%-dlltool.1.gz
man/man1/%%BUTARGET%%-elfedit.1.gz
man/man1/%%BUTARGET%%-gprof.1.gz
man/man1/%%BUTARGET%%-ld.1.gz
man/man1/%%BUTARGET%%-nm.1.gz
man/man1/%%BUTARGET%%-objcopy.1.gz
man/man1/%%BUTARGET%%-objdump.1.gz
man/man1/%%BUTARGET%%-ranlib.1.gz
man/man1/%%BUTARGET%%-readelf.1.gz
man/man1/%%BUTARGET%%-size.1.gz
man/man1/%%BUTARGET%%-strings.1.gz
man/man1/%%BUTARGET%%-strip.1.gz
man/man1/%%BUTARGET%%-windmc.1.gz
man/man1/%%BUTARGET%%-windres.1.gz
%%BUTARGET%%/bin/ar
%%BUTARGET%%/bin/as
%%BUTARGET%%/bin/ld
%%BUTARGET%%/bin/ld.bfd
%%BUTARGET%%/bin/nm
%%BUTARGET%%/bin/objcopy
%%BUTARGET%%/bin/objdump
%%BUTARGET%%/bin/ranlib
%%BUTARGET%%/bin/readelf
%%BUTARGET%%/bin/size
%%BUTARGET%%/bin/strip
%%BUTARGET%%/lib/ldscripts/elf32lriscv.x
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xbn
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xc
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xce
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xe
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xn
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xr
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xu
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xw
%%BUTARGET%%/lib/ldscripts/elf32lriscv.xwe
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment