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