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/12/16 16:20] – niccolo | doc:appunti:prog:openmoko_compile [2009/12/17 12:20] (current) – niccolo | ||
|---|---|---|---|
| Line 125: | Line 125: | ||
| In the example above we used some **'' | In the example above we used some **'' | ||
| - | **'' | + | **'' |
| - | **'' | + | **'' |
| - | **'' | + | **'' |
| Line 143: | Line 143: | ||
| === Using the toolchains === | === Using the toolchains === | ||
| - | The OpenMoko toolchain provides the **'' | + | The OpenMoko toolchain provides the **'' |
| < | < | ||
| Line 152: | 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.1260976805.txt.gz · Last modified: by niccolo
