Skip to content

Commit

Permalink
Remove elf configuration in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
quxianmiao authored Nov 13, 2017
1 parent 80673cf commit 02007cd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
Configure for csky gcc

Basic elf gcc configuration:
./configure [HOST_TARGET] --enable-languages=c --enable-sjlj-exceptions --target=[TARGET] --with-cskyabi=[ABI VERSION] --without-headers --with-newlib --disable-shared --disable-libssp --disable-libgomp --disable-libmudflap --with-sysroot=[SYSROOT DIRECTORY] --prefix=[PREFIX]
Basic linux gcc configuration:]
Basic linux gcc configuration:
./configure [HOST_TARGET] --enable-languages=c --target=[TARGET] --with-cskyabi=[ABI VERSION] --without-headers --with-newlib --enable-shared --disable-libssp --disable-libgomp --disable-libmudflap --with-sysroot=[SYSROOT DIRECTORY] --prefix=[PREFIX]
HOST_TARGET is the host to execute binutils, such as x86_64-linux.
TARGET can choose one of csky-abiv2-linux,csky-abiv2-elf,csky-linux,csky-elf. If building linux tools, add --with-sysroot=yes.
TARGET can choose one of csky-abiv2-linux,csky-linux.
ABI VERSION is abiv1 or abiv2.
If you want to build no multilib gcc, you should add:
--disable-multilib --with-cpu=[CPU] --with-endian=[ENDIAN] --with-float=[FLOAT VERSION]
CPU is one of csky cpu models, such as ck810f.
ENDIAN is big or little.
FLOAT VERSION is hard or soft.
If c++ is needed, build the libc fisrt, and add following to configuration.
Elf gcc:
--enable-languages=c,c++ --with-lib=[LIBC DIRECTORY] --with-headers=[LIBC HEADER DIRECTORY] --disable-threads
Linux gcc:
--enable-languages=c,c++ --enable-threads=posix --with-lib=[LIBC DIRECTORY] --with-headers=[LIBC HEADER DIRECTORY] --with-build-sysroot=[SYSROOT DIRECTORY] --enable-poison-system-directories --with-build-time-tools=[INSTALL DIRECTORY/bin]

This directory contains the GNU Compiler Collection (GCC).
Expand Down

0 comments on commit 02007cd

Please sign in to comment.