1 #-----------------------------------------------------------------------------
4 #@DESCRIPTION: Building packages for OpenWRT using its official SDK.
6 #@COMMENT: This allows to build packages only, not the whole images.
7 #@COMMENT: You should install and have in path an SDK from the www.openwrt.org.
8 #@COMMENT: SDK installers are both host and target specific (so look in download
9 #@COMMENT: dir for your target). If there is no SDK for your host arch,
10 #@COMMENT: you can also look at downloads of x-wrt.org, a sister project.
11 #@COMMENT: To build a package, use command like:
12 #@COMMENT: DISTRO=openwrt-sdk TARGET_ARCH=<arch> bitbake <package>
13 #-----------------------------------------------------------------------------
15 require conf/distro/generic-uclibc.conf
20 DISTRO_NAME = "OpenWRT"
23 # Build ipk's wrapped with tar.gz instead of ar, like OpenWRT has them
24 OPKGBUILDCMD = "opkg-build -c -o 0 -g 0"
26 # This is what lives in SDK
27 ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"
29 # Rename packages to names used in OpenWRT
30 PKG_ncurses = "libncurses"
32 # Make sure that we have correct package dependencies for SDK-provided libs.
33 ASSUME_SHLIBS += "libc.so.0:uclibc libm.so.0:uclibc libgcc_s.so.1:libgcc"