What kind of application? It depends if you are compiling some code of your own app, or just adding app from already available apps in Carambola and OpenWrt software repository.
Easiest way is to use OpenWrt Imagebuilder, follow instructions from OpenWrt wiki:
http://wiki.openwrt.org/doc/howto/obtai ... e.generate