mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 01:54:32 -05:00
*** empty log message ***
This commit is contained in:
parent
854bae61c8
commit
299b89be03
|
|
@ -6,7 +6,7 @@
|
|||
#---------------------------------------------------------------------------------
|
||||
# specify some urls to download the source packages from
|
||||
#---------------------------------------------------------------------------------
|
||||
LIBOGC_VER=20070118
|
||||
LIBOGC_VER=20071206
|
||||
LIBGBA_VER=20060720
|
||||
LIBNDS_VER=20071023
|
||||
LIBFAT_VER=20070127
|
||||
|
|
@ -65,8 +65,8 @@ case "$VERSION" in
|
|||
toolchain=DEVKITARM
|
||||
;;
|
||||
"2" )
|
||||
GCC_VER=3.4.6
|
||||
BINUTILS_VER=2.16.1
|
||||
GCC_VER=4.1.2
|
||||
BINUTILS_VER=2.18.50
|
||||
NEWLIB_VER=1.14.0
|
||||
basedir='dkppc'
|
||||
package=devkitPPC
|
||||
|
|
@ -343,49 +343,49 @@ BUILDSCRIPTDIR=$(pwd)
|
|||
if [ ! -f extracted_archives ]
|
||||
then
|
||||
echo "Extracting $BINUTILS"
|
||||
tar -xjvf $SRCDIR/$BINUTILS || { echo "Error extracting "$BINUTILS; exit; }
|
||||
tar -xjf $SRCDIR/$BINUTILS || { echo "Error extracting "$BINUTILS; exit; }
|
||||
|
||||
echo "Extracting $GCC_CORE"
|
||||
tar -xjvf $SRCDIR/$GCC_CORE || { echo "Error extracting "$GCC_CORE; exit; }
|
||||
tar -xjf $SRCDIR/$GCC_CORE || { echo "Error extracting "$GCC_CORE; exit; }
|
||||
|
||||
echo "Extracting $GCC_GPP"
|
||||
tar -xjvf $SRCDIR/$GCC_GPP || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
tar -xjf $SRCDIR/$GCC_GPP || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
|
||||
echo "Extracting $NEWLIB"
|
||||
tar -xzvf $SRCDIR/$NEWLIB || { echo "Error extracting "$NEWLIB; exit; }
|
||||
|
||||
echo "Extracting $GDB"
|
||||
tar -xjvf $SRCDIR/$GDB || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
tar -xjf $SRCDIR/$GDB || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
|
||||
if [ $VERSION -eq 2 ]
|
||||
then
|
||||
echo "Extracting $LIBOGC"
|
||||
mkdir -p $LIBOGC_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBOGC | tar -xvf - -C $LIBOGC_SRCDIR || { echo "Error extracting "$LIBOGC; exit; }
|
||||
bzip2 -cd $SRCDIR/$LIBOGC | tar -xf - -C $LIBOGC_SRCDIR || { echo "Error extracting "$LIBOGC; exit; }
|
||||
fi
|
||||
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
echo "Extracting $LIBNDS"
|
||||
mkdir -p $LIBNDS_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBNDS | tar -xvf - -C $LIBNDS_SRCDIR || { echo "Error extracting "$LIBNDS; exit; }
|
||||
bzip2 -cd $SRCDIR/$LIBNDS | tar -xf - -C $LIBNDS_SRCDIR || { echo "Error extracting "$LIBNDS; exit; }
|
||||
|
||||
echo "Extracting $LIBGBA"
|
||||
mkdir -p $LIBGBA_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBGBA | tar -xvf - -C $LIBGBA_SRCDIR || { echo "Error extracting "$LIBGBA; exit; }
|
||||
bzip2 -cd $SRCDIR/$LIBGBA | tar -xf - -C $LIBGBA_SRCDIR || { echo "Error extracting "$LIBGBA; exit; }
|
||||
|
||||
|
||||
echo "Extracting $LIBFAT"
|
||||
mkdir -p $LIBFAT_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBFAT | tar -xvf - -C $LIBFAT_SRCDIR || { echo "Error extracting "$LIBFAT; exit; }
|
||||
bzip2 -cd $SRCDIR/$LIBFAT | tar -xf - -C $LIBFAT_SRCDIR || { echo "Error extracting "$LIBFAT; exit; }
|
||||
|
||||
echo "Extracting $DSWIFI"
|
||||
mkdir -p $DSWIFI_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$DSWIFI | tar -xvf - -C $DSWIFI_SRCDIR || { echo "Error extracting "$DSWIFI; exit; }
|
||||
bzip2 -cd $SRCDIR/$DSWIFI | tar -xf - -C $DSWIFI_SRCDIR || { echo "Error extracting "$DSWIFI; exit; }
|
||||
|
||||
echo "Extracting $LIBMIRKO"
|
||||
mkdir -p $LIBMIRKO_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBMIRKO | tar -xvf - -C $LIBMIRKO_SRCDIR || { echo "Error extracting "$LIBMIRKO; exit; }
|
||||
bzip2 -cd $SRCDIR/$LIBMIRKO | tar -xf - -C $LIBMIRKO_SRCDIR || { echo "Error extracting "$LIBMIRKO; exit; }
|
||||
fi
|
||||
|
||||
touch extracted_archives
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ fi
|
|||
if [ ! -f installed-g++ ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing g++"; exit 1; }
|
||||
touch built-g++
|
||||
touch installed-g++
|
||||
fi
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
|
|
|||
|
|
@ -1,355 +0,0 @@
|
|||
*asm:
|
||||
--traditional-format %(asm_cpu) %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} %{memb|msdata|msdata=eabi: -memb} %{mlittle|mlittle-endian:-mlittle; mbig|mbig-endian :-mbig; mcall-aixdesc | mcall-freebsd | mcall-netbsd | mcall-openbsd | mcall-linux | mcall-gnu :-mbig; mcall-i960-old :-mlittle}
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %|.s |
|
||||
as %(asm_options) %|.s %A }
|
||||
|
||||
*cpp:
|
||||
%{posix: -D_POSIX_SOURCE} %{mads : %(cpp_os_ads) ; myellowknife : %(cpp_os_yellowknife) ; mmvme : %(cpp_os_mvme) ; msim : %(cpp_os_sim) ; mwindiss : %(cpp_os_windiss) ; mcall-freebsd: %(cpp_os_freebsd) ; mcall-linux : %(cpp_os_linux) ; mcall-gnu : %(cpp_os_gnu) ; mcall-netbsd : %(cpp_os_netbsd) ; mcall-openbsd: %(cpp_os_openbsd) ; : %(cpp_os_default) }
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{G*} %{mlittle|mlittle-endian: %(cc1_endian_little); mbig |mbig-endian : %(cc1_endian_big); mcall-aixdesc | mcall-freebsd | mcall-netbsd | mcall-openbsd | mcall-linux | mcall-gnu : -mbig %(cc1_endian_big); mcall-i960-old : -mlittle %(cc1_endian_little); : %(cc1_endian_default)} %{mno-sdata: -msdata=none } %{meabi: %{!mcall-*: -mcall-sysv }} %{!meabi: %{!mno-eabi: %{mrelocatable: -meabi } %{mcall-freebsd: -mno-eabi } %{mcall-i960-old: -meabi } %{mcall-linux: -mno-eabi } %{mcall-gnu: -mno-eabi } %{mcall-netbsd: -mno-eabi } %{mcall-openbsd: -mno-eabi }}} %{msdata: -msdata=default} %{mno-sdata: -msdata=none} %{profile: -p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%G %L %G
|
||||
|
||||
*endfile:
|
||||
%{mgcn : crtsavres.o%s %(endfile_gcn); mogc : crtsavres.o%s %(endfile_gcn); myellowknife : crtsavres.o%s %(endfile_yellowknife) ; mmvme : crtsavres.o%s %(endfile_mvme) ; msim : crtsavres.o%s %(endfile_sim) ; mwindiss : %(endfile_windiss) ; mcall-freebsd: crtsavres.o%s %(endfile_freebsd) ; mcall-linux : crtsavres.o%s %(endfile_linux) ; mcall-gnu : crtsavres.o%s %(endfile_gnu) ; mcall-netbsd : crtsavres.o%s %(endfile_netbsd) ; mcall-openbsd: crtsavres.o%s %(endfile_openbsd) ; : %(crtsavres_default) %(endfile_default) }
|
||||
|
||||
*link:
|
||||
%{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} %{YP,*} %{R*} %{Qy:} %{!Qn:-Qy} %(link_shlib) %{!Wl,-T*: %{!T*: %(link_start) }} %(link_target) %(link_os)
|
||||
|
||||
*lib:
|
||||
%{mgcn : %(lib_gcn); mogc : %(lib_ogc); myellowknife : %(lib_yellowknife) ; mmvme : %(lib_mvme) ; msim : %(lib_sim) ; mwindiss : %(lib_windiss) ; mcall-freebsd: %(lib_freebsd) ; mcall-linux : %(lib_linux) ; mcall-gnu : %(lib_gnu) ; mcall-netbsd : %(lib_netbsd) ; mcall-openbsd: %(lib_openbsd) ; : %(lib_default) }
|
||||
|
||||
*libgcc:
|
||||
-lgcc
|
||||
|
||||
*startfile:
|
||||
%{mgcn : %(startfile_gcn) ; mogc : %(startfile_ogc) ; myellowknife : %(startfile_yellowknife) ; mmvme : %(startfile_mvme) ; msim : %(startfile_sim) ; mwindiss : %(startfile_windiss) ; mcall-freebsd: %(startfile_freebsd) ; mcall-linux : %(startfile_linux) ; mcall-gnu : %(startfile_gnu) ; mcall-netbsd : %(startfile_netbsd) ; mcall-openbsd: %(startfile_openbsd) ; : %(startfile_default) }
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.4.3
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
mbig mcall-sysv
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*sysroot_suffix_spec:
|
||||
|
||||
|
||||
*sysroot_hdrs_suffix_spec:
|
||||
|
||||
|
||||
*cpp_default:
|
||||
|
||||
|
||||
*asm_cpu:
|
||||
%{!mcpu*: %{mpower: %{!mpower2: -mpwr}} %{mpower2: -mpwrx} %{mpowerpc*: -mppc} %{mno-power: %{!mpowerpc*: -mcom}} %{!mno-power: %{!mpower2: %(asm_default)}}} %{mcpu=common: -mcom} %{mcpu=power: -mpwr} %{mcpu=power2: -mpwrx} %{mcpu=power3: -m604} %{mcpu=power4: -mpower4} %{mcpu=powerpc: -mppc} %{mcpu=rios: -mpwr} %{mcpu=rios1: -mpwr} %{mcpu=rios2: -mpwrx} %{mcpu=rsc: -mpwr} %{mcpu=rsc1: -mpwr} %{mcpu=401: -mppc} %{mcpu=403: -m403} %{mcpu=405: -m405} %{mcpu=405fp: -m405} %{mcpu=440: -m440} %{mcpu=440fp: -m440} %{mcpu=505: -mppc} %{mcpu=601: -m601} %{mcpu=602: -mppc} %{mcpu=603: -mppc} %{mcpu=603e: -mppc} %{mcpu=ec603e: -mppc} %{mcpu=604: -mppc} %{mcpu=604e: -mppc} %{mcpu=620: -mppc} %{mcpu=630: -m604} %{mcpu=740: -mppc} %{mcpu=7400: -mppc} %{mcpu=7450: -mppc} %{mcpu=G4: -mppc} %{mcpu=750: -mppc} %{mcpu=G3: -mppc} %{mcpu=801: -mppc} %{mcpu=821: -mppc} %{mcpu=823: -mppc} %{mcpu=860: -mppc} %{mcpu=970: -mpower4} %{mcpu=G5: -mpower4} %{mcpu=8540: -me500} %{maltivec: -maltivec}
|
||||
|
||||
*asm_default:
|
||||
-mppc
|
||||
|
||||
*crtsavres_default:
|
||||
crtsavres.o%s
|
||||
|
||||
*lib_ogc:
|
||||
--start-group -logcsys -lc --end-group -logc
|
||||
|
||||
*lib_gcn:
|
||||
--start-group -lads -lc -lstubs --end-group
|
||||
|
||||
*lib_yellowknife:
|
||||
--start-group -lyk -lc --end-group
|
||||
|
||||
*lib_mvme:
|
||||
--start-group -lmvme -lc --end-group
|
||||
|
||||
*lib_sim:
|
||||
--start-group -lsim -lc --end-group
|
||||
|
||||
*lib_freebsd:
|
||||
%{!shared: %{!pg: %{!pthread:-lc} %{pthread:-lc_r}} %{pg: %{!pthread:-lc_p} %{pthread:-lc_r_p}} }
|
||||
|
||||
*lib_gnu:
|
||||
%{mnewlib: --start-group -lgnu -lc --end-group } %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_linux:
|
||||
%{mnewlib: --start-group -llinux -lc --end-group } %{!mnewlib: %{pthread:-lpthread} %{shared:-lc} %{!shared: %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_netbsd:
|
||||
%{profile:-lgmon -lc_p} %{!profile:-lc}
|
||||
|
||||
*lib_openbsd:
|
||||
%{!shared:%{pthread:-lpthread%{p:_p}%{!p:%{pg:_p}}}} %{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}
|
||||
|
||||
*lib_windiss:
|
||||
--start-group -li -lcfp -lwindiss -lram -limpl -limpfp --end-group
|
||||
|
||||
*lib_default:
|
||||
|
||||
|
||||
*startfile_gcn:
|
||||
gcn_crt0.o%s ecrti.o%s crtbegin.o%s
|
||||
|
||||
*startfile_ogc:
|
||||
ecrti.o%s crtbegin.o%s
|
||||
|
||||
*startfile_yellowknife:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_mvme:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_sim:
|
||||
ecrti.o%s sim-crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_freebsd:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_gnu:
|
||||
%{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}} %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_linux:
|
||||
%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} %{mnewlib:ecrti.o%s;:crti.o%s} %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
||||
|
||||
*startfile_netbsd:
|
||||
ncrti.o%s crt0.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_openbsd:
|
||||
%{!shared: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_windiss:
|
||||
crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_default:
|
||||
|
||||
|
||||
*endfile_gcn:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_yellowknife:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_mvme:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_sim:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_freebsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*endfile_gnu:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_linux:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_netbsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} ncrtn.o%s
|
||||
|
||||
*endfile_openbsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s}
|
||||
|
||||
*endfile_windiss:
|
||||
crtend.o%s
|
||||
|
||||
*endfile_default:
|
||||
|
||||
|
||||
*link_path:
|
||||
|
||||
|
||||
*link_shlib:
|
||||
%{mshlib: %(link_path) } %{!mshlib: %{!shared: %{!symbolic: -dn -Bstatic}}} %{static: } %{shared:-G -dy -z text %(link_path) } %{symbolic:-Bsymbolic -G -dy -z text %(link_path) }
|
||||
|
||||
*link_target:
|
||||
%{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-i960-old: --oformat elf32-powerpcle} }}}}
|
||||
|
||||
*link_start:
|
||||
%{mgcn : %(link_start_gcn); mogc : %(link_start_gcn); myellowknife : %(link_start_yellowknife) ; mmvme : %(link_start_mvme) ; msim : %(link_start_sim) ; mwindiss : %(link_start_windiss) ; mcall-freebsd: %(link_start_freebsd) ; mcall-linux : %(link_start_linux) ; mcall-gnu : %(link_start_gnu) ; mcall-netbsd : %(link_start_netbsd) ; mcall-openbsd: %(link_start_openbsd) ; : %(link_start_default) }
|
||||
|
||||
*link_start_gcn:
|
||||
-T ogc.ld%s
|
||||
|
||||
*link_start_yellowknife:
|
||||
-T yellowknife.ld%s
|
||||
|
||||
*link_start_mvme:
|
||||
-Ttext 0x40000
|
||||
|
||||
*link_start_sim:
|
||||
|
||||
|
||||
*link_start_freebsd:
|
||||
|
||||
|
||||
*link_start_gnu:
|
||||
|
||||
|
||||
*link_start_linux:
|
||||
|
||||
|
||||
*link_start_netbsd:
|
||||
|
||||
|
||||
*link_start_openbsd:
|
||||
-Ttext 0x400074
|
||||
|
||||
*link_start_windiss:
|
||||
|
||||
|
||||
*link_start_default:
|
||||
|
||||
|
||||
*link_os:
|
||||
%{mads : %(link_os_ads) ; myellowknife : %(link_os_yellowknife) ; mmvme : %(link_os_mvme) ; msim : %(link_os_sim) ; mwindiss : %(link_os_windiss) ; mcall-freebsd: %(link_os_freebsd) ; mcall-linux : %(link_os_linux) ; mcall-gnu : %(link_os_gnu) ; mcall-netbsd : %(link_os_netbsd) ; mcall-openbsd: %(link_os_openbsd) ; : %(link_os_default) }
|
||||
|
||||
*link_os_ads:
|
||||
|
||||
|
||||
*link_os_yellowknife:
|
||||
|
||||
|
||||
*link_os_mvme:
|
||||
|
||||
|
||||
*link_os_sim:
|
||||
-m elf32ppcsim
|
||||
|
||||
*link_os_freebsd:
|
||||
%{p:%e`-p' not supported; use `-pg' and gprof(1)} %{Wl,*:%*} %{v:-V} %{assert*} %{R*} %{rpath*} %{defsym*} %{shared:-Bshareable %{h*} %{soname*}} %{!shared: %{!static: %{rdynamic: -export-dynamic} %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} %{static:-Bstatic}} %{symbolic:-Bsymbolic}
|
||||
|
||||
*link_os_linux:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_gnu:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_netbsd:
|
||||
%{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}
|
||||
|
||||
*link_os_openbsd:
|
||||
|
||||
|
||||
*link_os_windiss:
|
||||
|
||||
|
||||
*link_os_default:
|
||||
|
||||
|
||||
*cc1_endian_big:
|
||||
|
||||
|
||||
*cc1_endian_little:
|
||||
%{!mstrict-align: %{!mno-strict-align: %{!mcall-i960-old: -mstrict-align } }}
|
||||
|
||||
*cc1_endian_default:
|
||||
%(cc1_endian_big)
|
||||
|
||||
*cpp_os_ads:
|
||||
|
||||
|
||||
*cpp_os_yellowknife:
|
||||
|
||||
|
||||
*cpp_os_mvme:
|
||||
|
||||
|
||||
*cpp_os_sim:
|
||||
|
||||
|
||||
*cpp_os_freebsd:
|
||||
-D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -Acpu=powerpc -Amachine=powerpc
|
||||
|
||||
*cpp_os_gnu:
|
||||
-D__unix__ -D__gnu_hurd__ -D__GNU__ %{!undef: %{!ansi: -Dunix -D__unix}} -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_linux:
|
||||
-D__unix__ -D__gnu_linux__ -D__linux__ %{!undef: %{!ansi: %{!std=*:-Dunix -D__unix -Dlinux -D__linux} %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} -Asystem=linux -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_netbsd:
|
||||
-D__powerpc__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__
|
||||
|
||||
*cpp_os_openbsd:
|
||||
%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}
|
||||
|
||||
*cpp_os_windiss:
|
||||
-D__rtasim -D__EABI__ -D__ppc %{!msoft-float: -D__hardfp}
|
||||
|
||||
*cpp_os_default:
|
||||
|
||||
|
||||
*fbsd_dynamic_linker:
|
||||
/usr/libexec/ld-elf.so.1
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
|
|
@ -7,9 +7,7 @@ DEVKITPPC=$TOOLPATH/devkitPPC
|
|||
#---------------------------------------------------------------------------------
|
||||
|
||||
echo "installing specs ..."
|
||||
powerpc-gekko-gcc -dumpspecs $DEVKITPPC/lib/gcc/$target/$GCC_VER/specs
|
||||
cp `pwd`/dkppc/crtls/gcn* $DEVKITPPC/$target/lib/
|
||||
cp `pwd`/dkppc/crtls/specs $DEVKITPPC/lib/gcc/$target/$GCC_VER/specs
|
||||
#---------------------------------------------------------------------------------
|
||||
# copy base rulesets
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -12,21 +12,28 @@ prefix=$INSTALLDIR/devkitPPC
|
|||
mkdir -p $target/binutils
|
||||
cd $target/binutils
|
||||
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
if [ ! -f configured-binutils ]
|
||||
then
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
|
||||
--with-gcc --with-gnu-as --with-gnu-ld \
|
||||
|| { echo "Error configuing ppc binutils"; exit 1; }
|
||||
touch configured-binutils
|
||||
fi
|
||||
|
||||
if [ ! -f built-binutils ]
|
||||
then
|
||||
$MAKE || { echo "Error building ppc binutils"; exit 1; }
|
||||
touch built-binutils
|
||||
fi
|
||||
|
||||
$MAKE || { echo "Error building ppc binutils"; exit 1; }
|
||||
$MAKE install || { echo "Error installing ppc binutils"; exit 1; }
|
||||
|
||||
if [ ! -f installed-binutils ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing ppc binutils"; exit 1; }
|
||||
touch installed-binutils
|
||||
fi
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/binutils
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install mn10200 binutils
|
||||
|
|
@ -35,14 +42,26 @@ rm -fr $target/binutils
|
|||
mkdir -p mn10200/binutils
|
||||
cd mn10200/binutils
|
||||
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
if [ ! -f configured-binutils ]
|
||||
then
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
--prefix=$prefix --target=mn10200 --disable-nls --disable-shared --disable-debug \
|
||||
--with-gcc --with-gnu-as --with-gnu-ld \
|
||||
|| { echo "Error configuing mn10200 binutils"; exit 1; }
|
||||
touch configured-binutils
|
||||
fi
|
||||
|
||||
if [ ! -f built-binutils ]
|
||||
then
|
||||
$MAKE || { echo "Error building mn10200 binutils"; exit 1; }
|
||||
touch built-binutils
|
||||
fi
|
||||
|
||||
$MAKE || { echo "Error building mn10200 binutils"; exit 1; }
|
||||
$MAKE install || { echo "Error installing mn10200 binutils"; exit 1; }
|
||||
if [ ! -f installed-binutils ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing mn10200 binutils"; exit 1; }
|
||||
touch installed-binutils
|
||||
fi
|
||||
|
||||
for f in $INSTALLDIR/devkitPPC/mn10200/bin/*
|
||||
do
|
||||
|
|
@ -51,21 +70,15 @@ done
|
|||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr mn10200
|
||||
|
||||
rm -fr $BINUTILS_SRCDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install just the c compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
mkdir -p $target/gcc
|
||||
cd $target/gcc
|
||||
|
||||
|
||||
CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
|
||||
if [ ! -f configured-gcc ]
|
||||
then
|
||||
CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
|
||||
--enable-languages=c,c++ \
|
||||
--with-cpu=750\
|
||||
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
|
||||
|
|
@ -76,11 +89,20 @@ CFLAGS=-D__USE_MINGW_ACCESS ../../$GCC_SRCDIR/configure \
|
|||
--with-newlib \
|
||||
--prefix=$prefix\
|
||||
2>&1 | tee gcc_configure.log
|
||||
touch configured-gcc
|
||||
fi
|
||||
|
||||
mkdir -p libiberty libcpp fixincludes
|
||||
if [ ! -f built-gcc ]
|
||||
then
|
||||
$MAKE all-gcc || { echo "Error building gcc"; exit 1; }
|
||||
touch built-gcc
|
||||
fi
|
||||
|
||||
$MAKE all-gcc || { echo "Error building gcc"; exit 1; }
|
||||
$MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
|
||||
if [ ! -f installed-gcc ]
|
||||
then
|
||||
$MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
|
||||
touch installed-gcc
|
||||
fi
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install newlib
|
||||
|
|
@ -88,38 +110,75 @@ $MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
|
|||
cd $BUILDSCRIPTDIR
|
||||
mkdir -p $target/newlib
|
||||
cd $target/newlib
|
||||
mkdir -p etc
|
||||
|
||||
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
|
||||
if [ ! -f configured-newlib ]
|
||||
then
|
||||
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
|
||||
--target=$target \
|
||||
--prefix=$prefix \
|
||||
--enable-newlib-mb \
|
||||
--disable-debug \
|
||||
|| { echo "Error configuring newlib"; exit 1; }
|
||||
touch configured-newlib
|
||||
fi
|
||||
|
||||
$MAKE || { echo "Error building newlib"; exit 1; }
|
||||
$MAKE install || { echo "Error installing newlib"; exit 1; }
|
||||
if [ ! -f built-newlib ]
|
||||
then
|
||||
$MAKE || { echo "Error building newlib"; exit 1; }
|
||||
touch built-newlib
|
||||
fi
|
||||
if [ ! -f installed-newlib ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing newlib"; exit 1; }
|
||||
touch installed-newlib
|
||||
fi
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/newlib
|
||||
rm -fr $NEWLIB_SRCDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install the final compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
cd $target/gcc
|
||||
|
||||
$MAKE || { echo "Error building g++"; exit 1; }
|
||||
$MAKE install || { echo "Error installing g++"; exit 1; }
|
||||
if [ ! -f built-gpp ]
|
||||
then
|
||||
$MAKE || { echo "Error building g++"; exit 1; }
|
||||
touch built-gpp
|
||||
fi
|
||||
|
||||
if [ ! -f installed-gpp ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing g++"; exit 1; }
|
||||
touch installed-gpp
|
||||
fi
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
# build and install the debugger
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/gcc
|
||||
rm -fr $GCC_SRCDIR
|
||||
mkdir -p $target/gdb
|
||||
cd $target/gdb
|
||||
|
||||
if [ ! -f configured-gdb ]
|
||||
then
|
||||
../../$GDB_SRCDIR/configure \
|
||||
--disable-nls --prefix=$prefix --target=$target \
|
||||
|| { echo "Error configuring gdb"; exit 1; }
|
||||
touch configured-gdb
|
||||
fi
|
||||
|
||||
if [ ! -f built-gdb ]
|
||||
then
|
||||
$MAKE || { echo "Error building gdb"; exit 1; }
|
||||
touch built-gdb
|
||||
fi
|
||||
|
||||
if [ ! -f installed-gdb ]
|
||||
then
|
||||
$MAKE install || { echo "Error installing gdb"; exit 1; }
|
||||
touch installed-gdb
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user