You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.sh 751B

12345678910111213141516171819202122232425262728
  1. SYSTEM_HEADER_PROJECTS="libc kernel"
  2. PROJECTS="libc kernel"
  3. export MAKE=${MAKE:-make}
  4. export HOST=${HOST:-$(./default-host.sh)}
  5. export AR=${HOST}-ar
  6. export AS=${HOST}-as
  7. export CC=${HOST}-gcc
  8. export PREFIX=/usr
  9. export EXEC_PREFIX=$PREFIX
  10. export BOOTDIR=/boot
  11. export LIBDIR=$EXEC_PREFIX/lib
  12. export INCLUDEDIR=$PREFIX/include
  13. export CFLAGS='-O2 -g'
  14. export CPPFLAGS=''
  15. # Configure the cross-compiler to use the desired system root.
  16. export SYSROOT="$(pwd)/sysroot"
  17. export CC="$CC --sysroot=$SYSROOT"
  18. # Work around that the -elf gcc targets doesn't have a system include directory
  19. # because it was configured with --without-headers rather than --with-sysroot.
  20. if echo "$HOST" | grep -Eq -- '-elf($|-)'; then
  21. export CC="$CC -isystem=$INCLUDEDIR"
  22. fi