doc:appunti:prog:openmoko_compile
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:prog:openmoko_compile [2009/11/21 16:07] – niccolo | doc:appunti:prog:openmoko_compile [2009/12/17 12:20] (current) – niccolo | ||
|---|---|---|---|
| Line 118: | Line 118: | ||
| < | < | ||
| om-conf --host=arm-angstrom-linux-gnueabi --enable-avoid-unaligned --enable-avoid-float \ | om-conf --host=arm-angstrom-linux-gnueabi --enable-avoid-unaligned --enable-avoid-float \ | ||
| - | --enable-svg2png-scaling-flag=32 --enable-cache-size=20971520 | + | --enable-cache-size=20971520 |
| + | --enable-svg2png-scaling=16, | ||
| navit | navit | ||
| </ | </ | ||
| + | |||
| + | In the example above we used some **'' | ||
| + | |||
| + | **'' | ||
| + | |||
| + | **'' | ||
| + | |||
| + | **'' | ||
| + | |||
| It's time to cross-compile: | It's time to cross-compile: | ||
| Line 133: | Line 143: | ||
| === Using the toolchains === | === Using the toolchains === | ||
| - | The OpenMoko toolchain provides the **'' | + | The OpenMoko toolchain provides the **'' |
| < | < | ||
| Line 142: | Line 152: | ||
| The control file is described [[http:// | The control file is described [[http:// | ||
| - | If you need more control files (e.g. a '' | + | If you need more control files (e.g. a '' |
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh -e | ||
| + | |||
| + | error_exit () { | ||
| + | echo usage: $(basename ${0}) [app_dir_name] [ipkg_control_file] | ||
| + | exit 1 | ||
| + | } | ||
| + | |||
| + | test x${OMTOOL_DIR} = x && . / | ||
| + | . ${OMTOOL_DIR}/ | ||
| + | S=${1} | ||
| + | (test x${S} = x || test ! -d ${S}) && error_exit | ||
| + | appname=$(basename ${S}) | ||
| + | tmpdir=/ | ||
| + | test -e " | ||
| + | make -C ${S} install DESTDIR=" | ||
| + | # Copy control files to destination directory. | ||
| + | cp -pr opkg/* ${tmpdir} | ||
| + | ipkg-build -o 0 -g 0 ${tmpdir} | ||
| + | rm -rf ${tmpdir} | ||
| + | </ | ||
| + | |||
| + | Control files and other files are arranged into the '' | ||
| + | |||
| + | < | ||
| + | opkg/ | ||
| + | opkg/ | ||
| + | opkg/ | ||
| + | </ | ||
| === Using opkg-utils === | === Using opkg-utils === | ||
doc/appunti/prog/openmoko_compile.1258816057.txt.gz · Last modified: by niccolo
