xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/crda/crda_3.18.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Wireless Central Regulatory Domain Agent"
2HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"
3SECTION = "net"
4LICENSE = "copyleft-next-0.3.0"
5LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe"
6
7DEPENDS = "python3-m2crypto-native libnl libgcrypt"
8
9SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \
10           file://do-not-run-ldconfig-if-destdir-is-set.patch \
11           file://fix-linking-of-libraries-used-by-reglib.patch \
12           file://fix-gcc-6-unused-variables.patch \
13           file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \
14           file://make.patch \
15           file://use-target-word-size-instead-of-host-s.patch \
16           file://fix-issues-when-USE_OPENSSL-1.patch \
17           file://crda-4.14-python-3.patch \
18           file://0001-Make-alpha2-to-be-3-characters-long.patch \
19"
20SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a"
21SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf"
22
23inherit pkgconfig python3-dir python3native siteinfo
24
25# Recursive make problem
26EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg' \
27                UDEV_RULE_DIR=${nonarch_base_libdir}/udev/rules.d/"
28TARGET_BITS = "${SITEINFO_BITS}"
29export TARGET_BITS
30
31do_compile() {
32    oe_runmake all_noverify
33}
34
35do_install() {
36    oe_runmake SBINDIR=${sbindir}/ install
37}
38
39RDEPENDS:${PN} = "udev wireless-regdb-static"
40