3 # Copyright (C) 2015-2017 Matias Fonzo, <selk@dragora.org>
5 # This script is free software: you have unlimited permission
6 # to copy, distribute and modify it.
8 echo "Making Qi from ${CWD}/qi ..."
14 ./configure --prefix=/tools
19 # Clean up the source repository
23 # Copy our custom qirc to /tools
24 cp -p "${worktree}/archive/qi/qirc" /tools/etc/
25 chmod 644 /tools/etc/qirc
27 # Set compiler options provided by default in Dragora
31 -e 's|#QICFLAGS=.*|QICFLAGS=-g0 -Os -march=i586 -mtune=i686|' \
32 -e 's|#QICXXFLAGS=.*|QICXXFLAGS=-g0 -Os -march=i586 -mtune=i686|' \
37 -e 's|#QICFLAGS=.*|QICFLAGS=-g0 -Os -mtune=generic|' \
38 -e 's|#QICXXFLAGS=.*|QICXXFLAGS=-g0 -Os -mtune=generic|' \
43 # Include additional settings from targets/
45 # We prefix '--enable-multilib' for targets supporting it,
46 # the native GCC wants this option explicitly
47 if test -n "$multilib_options"
49 case $multilib_options in
50 *--disable-multilib* | *--enable-multilib*)
54 multilib_options="--enable-multilib $multilib_options"
59 cat << EOF >> /tools/etc/qirc
62 multilib_options=$multilib_options
64 # lib<equal> suffix (multilib, if any)
67 # GCC (arch-specific) options
68 gcc_options=$gcc_options