# Special release for ALU
# How to use:
# 1) source submit_lsf.sh /proj/ppc/DT/labhome/edmar/build_repo <rev number> F492 XLMe6500x ALU.log Y
# 2) Expand tarball, remove host triplet from path, adjust specs, re-generate tarball

JOBDESC=(
    ########################  Sources section   ########################
    # dINSTPREFIX
    [0]="-XMe6500-linux"

    # dLSTSOURCES
    [1]=""

    # dLSTPATCHES
    [2]=""

    ######################## Parameters section ########################
    # dLSTSTEPS
    [10]="chk dst rm src intgr gmp mpfr mpc ppl cloog Xbin Tbin gccMl lhdr ghdr rhdr gccSl glibc rpc Xgccl Xloc Gloc Wsetup Wiconv Wgtext Wgmp Wmpfr Wmpc Wppl Wcloog Wbin Wgcc"

    # dTRPTARGET
    [11]="powerpc-unknown-linux-gnu"

    # dTRPBUILD
    [12]="i686-pc-linux-gnu"

    # dTRPHOST
    [13]="i686-mingw32"

    # dARCH
    [14]="powerpc"

    # dTBUILD
    [15]=""

    # dWTBUILD
    [16]="i686-pc-mingw32-"

    # dUSESYS
    [17]="N"

    ########################   Config section   ########################
    # dBINCONFIG
    [30]="--enable-targets=powerpc-linux,powerpc64-linux"

    # dGCCCONFIG1
    [31]="--with-cpu-64=e6500 --with-cpu-32=e6500 \
       '--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
       --enable-targets=powerpc-linux,powerpc64-linux"

    # dGCCCONFIG2
    [32]="--with-cpu-64=e6500 --with-cpu-32=e6500 \
       '--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
       --enable-targets=powerpc-linux,powerpc64-linux --enable-threads --enable-shared"

    # dGCCCONFIG3
    [33]="--with-cpu-64=e6500 --with-cpu-32=e6500 \
       '--with-host-libstdcxx=-static-libgcc -static -Wl,-Bstatic,-lstdc++ -lm' \
       --enable-targets=powerpc-linux,powerpc64-linux --enable-threads --enable-shared"

    # dGCCCONFIG3LSF
    [51]="--with-cpu-64=e6500 --with-cpu-32=e6500 \
       '--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
       --enable-targets=powerpc-linux,powerpc64-linux --enable-threads --enable-shared"

    # dLIBCONFIG
    [34]="--enable-kernel=3.12.37 --enable-add-ons --disable-multi-arch \
       libc_cv_powerpc64_tls=yes libc_cv_powerpc32_tls=yes"

    # dGMPCONFIG32
    [35]="--enable-cxx"

    # dGMPCONFIG64
    [36]="--enable-cxx"

    # dTGMPCONFIG32
    [37]="--enable-cxx"

    # dTGMPCONFIG64
    [38]="--enable-cxx"

    # dPPLCONFIG32
    [39]=""

    # dPPLCONFIG64
    [40]=""

    # dCLOOGCONFIG32
    [41]=""

    # dCLOOGCONFIG64
    [42]=""

    # dWGMPCONFIG
    [43]="--enable-cxx"

    # dWPPLCONFIG
    [44]=""

    # dWCLOOGCONFIG
    [45]=""

    # dWBINCONFIG
    [46]="--enable-targets=powerpc-linux,powerpc64-linux"

    # dWGCCCONFIG
    [47]="--with-cpu-64=e6500 --with-cpu-32=e6500 \
       '--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -L\\\$WHOSTLIBINST/usr/lib -lintl -lm' \
       --enable-targets=powerpc-linux,powerpc64-linux --enable-threads --enable-shared"

    ########################  Multilib section  ########################
    # dMLSIZE
    [60]="3"

    # dMLDIRS
    [61]=". . nof"

    # dMLOSDIRS
    [66]=". ../lib64 ."

    # dMLCONFIG
    [62]="\"--with-cpu=e6500\" \"--with-cpu=e6500\" \"--with-cpu=e6500 --without-fp\""

    # dMLCFLAGS
    [63]="\"-mcpu=e6500 -m32 -falign-loops=1 -mno-isel\" \"-mcpu=e6500 -falign-loops=1 -m64\" \"-mcpu=e6500 -m32 -falign-loops=1 -mno-isel -msoft-float\""

    # dMLTARGET
    [64]="powerpc-unknown-linux-gnu powerpc64-unknown-linux-gnu powerpc-unknown-linux-gnu"

    # dMLDEJAGNU
    [65]="\"\" /-m64 /-msoft-float"

    ########################   Tests section    ########################
    # dBRDTYPE
    [70]=""

    # dBRDNAME
    [71]=""

    # dBRDHOSTNAME
    [72]=""

    # dBRDLIBDIR
    [73]=""

    # dBRDTESTRUNFLAGS
    [74]=""
)
