Changes between Version 1 and Version 2 of CompilationGuide/MIPS


Ignore:
Timestamp:
Mar 17, 2015, 2:42:27 PM (5 years ago)
Author:
klaussfreire
Comment:

Add hardfloat instructions

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MIPS

    v1 v2  
    1010http://download.opensuse.org/repositories/home:/duwe:/crosstools/openSUSE_13.1/
    1111
     12If you want to build for hard float ABI, add the following repo in addition to the above:
     13
     14http://download.opensuse.org/repositories/home:/klaussfreire:/crosstools/openSUSE_13.1/
     15
    1216Afer adding these, install all required tools running the following
    1317
     
    1620}}}
    1721
    18 In order to get a working build, both dsp and hard float have to be disabled, and only use static builds - at the moment of this writing, simply specifying a library path to qemu-mips will result in a runaway process eating all system memory until killed by the OOM. The result is a very slow build, but functional enough to run fate tests:
     22Or, for hard float builds:
     23
     24{{{
     25$ sudo zypper in cross-mips-linux-binutils cross-mips-linux-hf-gcc cross-mips-linux-hf-glibc qemu-linux-user
     26}}}
     27
     28In order to get a working build without hard-float, both dsp and hard float have to be disabled, and only use static builds - at the moment of this writing, simply specifying a library path to qemu-mips will result in a runaway process eating all system memory until killed by the OOM. The result is a very slow build, but functional enough to run fate tests:
    1929
    2030{{{
     
    2434}}}
    2535
    26 As a protection against the runaway-memory-eating bug, you may want to ulimit your shell (assuming you have 2G of RAM or more free):
     36Otherwise configure with:
     37
     38{{{
     39$ ./configure --target-os=linux --arch=mips \
     40  --enable-cross-compile --cross-prefix=mips-linux- --target-exec="qemu-mips -cpu 74Kf" --prefix=/opt/cross \
     41  --extra-ldflags=-static --ranlib=mips-linux-ranlib
     42}}}
     43
     44Just in case, as a protection against the runaway-memory-eating bug, you may want to ulimit your shell (assuming you have 2G of RAM or more free):
    2745
    2846{{{
     
    3553
    3654{{{
    37 $ qemu-mips ffmpeg --help
     55$ qemu-mips -cpu 74Kf ffmpeg --help
    3856}}}