Useful e.g. if you want to upgrade a package without reflashing the router, etc.
Follow Building OpenWrt up to the point when you have to
make menuconfig. Select the target, then check the package you want to build, and also its dependencies. If you don't know them, you can ask the router. Let's assume we want to build
opkg info nano:
Package: nano Version: 2.2.5-1 Depends: libncurses Provides: Status: install user installed Architecture: ar71xx Installed-Time: 1300757537
Depends: line is what we're interested into. The same information can also be found in the
Packages file from http://downloads.openwrt.org.
Now issue the following commands:
make tools/install make toolchain/install
The next step is building the dependencies. Back to our nano example:
make package/ncurses/compile make package/ncurses/install
And finally, you get to build the package:
make package/nano/compile make package/nano/install make package/index
Done! You will find your coveted package in the
doc/howtobuild/single.package.txt · Last modified: 2013/01/06 18:14 by laird