Differences

This shows you the differences between two versions of the page.

doc:howto:obtain.firmware.sdk [2013/03/22 19:53]
mforkel
doc:howto:obtain.firmware.sdk [2014/02/07 13:40] (current)
caog Add problems section
Line 8: Line 8:
===== Obtain SDK ===== ===== Obtain SDK =====
 +You can either download an already compiled SDK, or compile it yourself by using the "make menuconfig" command.
 +
==== Download ==== ==== Download ====
You should find bz2-archives ready for download in the corresponding download directory: You should find bz2-archives ready for download in the corresponding download directory:
Line 51: Line 53:
  * ''make package///example///clean'' - clean the sourcecode   * ''make package///example///clean'' - clean the sourcecode
  * ''make package/index'' - build a repository index to make the output directory usable as local //opkg// source   * ''make package/index'' - build a repository index to make the output directory usable as local //opkg// source
 +
 +Some packages are built on host:
 +
 +| ''$ make package///example///host/{clean,compile} V=99'' |
The common command to recompile a package //example// and enable verbose output is: The common command to recompile a package //example// and enable verbose output is:
Line 69: Line 75:
$ grep DEPENDS package/nano/Makefile $ grep DEPENDS package/nano/Makefile
  DEPENDS:=+libncurses   DEPENDS:=+libncurses
-$ svn export svn://svn.openwrt.org/openwrt/trunk/package/ncurses package/ncurses+$ svn export svn://svn.openwrt.org/openwrt/trunk/package/libs/ncurses package/ncurses
A    package/ncurses A    package/ncurses
A    package/ncurses/patches A    package/ncurses/patches
Line 93: Line 99:
==== Build your own packages ==== ==== Build your own packages ====
See [[doc/devel/packages|Creating packages]] See [[doc/devel/packages|Creating packages]]
 +
 +==== Problems ====
 +Compiler not found, due to ccache problem.
 +https://dev.openwrt.org/ticket/13949
 +
===== from Oldwiki ===== ===== from Oldwiki =====
Line 114: Line 125:
Let's start with porting and packaging the well known "Hello world" program as an example. Let's start with porting and packaging the well known "Hello world" program as an example.
 +
 +You can download an existing example here: https://forum.openwrt.org/viewtopic.php?pid=198460. Another useful resource is http://fleshandmachines.wordpress.com/2011/08/22/openwrt-cc-programing/.
===== Obtaining and installing the SDK ===== ===== Obtaining and installing the SDK =====
Line 445: Line 458:
===== Compile the package ===== ===== Compile the package =====
-The <code>make</code> +The make command below compiles every package that you have created in the package directory.
- command below compiles every package that you have created in the <code>package</code> +
- directory.+
<code> <code>

Back to top

doc/howto/obtain.firmware.sdk.1363978427.txt.bz2 · Last modified: 2013/03/22 19:53 (external edit)