blob: 7b663cdbb4799348ff4f7f93f5e76a1458d462d0 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Wireless Central Regulatory Domain Agent"
2HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"
3SECTION = "net"
Patrick Williamsddad1a12017-02-23 20:36:32 -06004LICENSE = "copyleft-next-0.3.0"
5LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006
Andrew Geissler82c905d2020-04-13 13:39:40 -05007DEPENDS = "python3-m2crypto-native libnl libgcrypt"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
Patrick Williamsddad1a12017-02-23 20:36:32 -06009SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 file://do-not-run-ldconfig-if-destdir-is-set.patch \
11 file://fix-linking-of-libraries-used-by-reglib.patch \
Patrick Williamsddad1a12017-02-23 20:36:32 -060012 file://fix-gcc-6-unused-variables.patch \
13 file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \
Brad Bishop7f28bc52017-12-03 23:42:40 -050014 file://make.patch \
15 file://use-target-word-size-instead-of-host-s.patch \
16 file://fix-issues-when-USE_OPENSSL-1.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050017 file://crda-4.14-python-3.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018"
Patrick Williamsddad1a12017-02-23 20:36:32 -060019SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a"
20SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
Andrew Geissler82c905d2020-04-13 13:39:40 -050022inherit python3-dir python3native siteinfo
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
Patrick Williamsb48b7b42016-08-17 15:04:38 -050024# Recursive make problem
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg' \
Brad Bishop0e2770c2020-01-21 07:31:46 -050026 UDEV_RULE_DIR=${nonarch_base_libdir}/udev/rules.d/"
Brad Bishop7f28bc52017-12-03 23:42:40 -050027TARGET_BITS = "${SITEINFO_BITS}"
28export TARGET_BITS
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029
30do_compile() {
31 oe_runmake all_noverify
32}
33
34do_install() {
35 oe_runmake SBINDIR=${sbindir}/ install
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038RDEPENDS:${PN} = "udev wireless-regdb-static"