diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/crda/crda_3.13.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/crda/crda_3.13.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/crda/crda_3.13.bb b/meta-networking/recipes-connectivity/crda/crda_3.13.bb new file mode 100644 index 0000000000..2ccced42e6 --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda_3.13.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "Wireless Central Regulatory Domain Agent" | ||
| 2 | HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA" | ||
| 3 | |||
| 4 | LICENSE = "copyleft-next-0.3.0 & ISC" | ||
| 5 | LIC_FILES_CHKSUM = "file://copyleft-next-0.3.0;md5=8743a2c359037d4d329a31e79eabeffe \ | ||
| 6 | file://${WORKDIR}/wireless-regdb-2014.11.18/LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c" | ||
| 7 | |||
| 8 | DEPENDS = "python-m2crypto-native python-native" | ||
| 9 | |||
| 10 | SRC_URI = "https://www.kernel.org/pub/software/network/crda/${BP}.tar.xz;name=crda \ | ||
| 11 | https://www.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2014.11.18.tar.xz;name=bin \ | ||
| 12 | file://crda-Fix-the-linking-order-to-avoid-compilation-erro.patch \ | ||
| 13 | file://crda-Add-DESTDIR-support-in-install-libreg-rules-in-.patch \ | ||
| 14 | file://do-not-run-ldconfig-if-destdir-is-set.patch \ | ||
| 15 | file://fix-linking-of-libraries-used-by-reglib.patch \ | ||
| 16 | " | ||
| 17 | SRC_URI[crda.md5sum] = "66b1b0417c1ad19f0009a5c0c0c1aebc" | ||
| 18 | SRC_URI[crda.sha256sum] = "2f85da7ab0170b140d6ed62596c8f268d4a7dedecf84cac7182ada979742ff59" | ||
| 19 | |||
| 20 | SRC_URI[bin.md5sum] = "d750c402c5510add7380edcb1d9b75b2" | ||
| 21 | SRC_URI[bin.sha256sum] = "eab6b50f30748a8b0065ba38cf3df05aac161a5861ae0a6c3cfd01d38a71c9dd" | ||
| 22 | |||
| 23 | inherit python-dir pythonnative | ||
| 24 | # Recursive make problem | ||
| 25 | EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D} LIBDIR=${libdir}/crda LDLIBREG='-Wl,-rpath,${libdir}/crda -lreg'" | ||
| 26 | |||
| 27 | do_compile() { | ||
| 28 | oe_runmake all_noverify | ||
| 29 | } | ||
| 30 | |||
| 31 | do_install() { | ||
| 32 | oe_runmake SBINDIR=${sbindir}/ install | ||
| 33 | |||
| 34 | install -d ${D}${libdir}/crda/ | ||
| 35 | |||
| 36 | install -m 0644 ${WORKDIR}/wireless-regdb-2014.11.18/regulatory.bin ${D}${libdir}/crda/regulatory.bin | ||
| 37 | } | ||
| 38 | |||
| 39 | |||
| 40 | RDEPENDS_${PN} = "udev libgcrypt libnl" | ||
| 41 | FILES_${PN} += "${libdir}crda/regulatory.bin \ | ||
| 42 | ${base_libdir}/udev/rules.d/85-regulatory.rules \ | ||
| 43 | " | ||
