meta-digi-del: simplify crda recipe

Yocto v1.3 (Danny) does *not* have python-m2crypto-native support so
enabling VIRTUAL-RUNTIME_crda_use_gcrypt breaks the build.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-04-25 20:12:57 +02:00
parent 7445a69310
commit bb06677e47
1 changed files with 18 additions and 21 deletions

View File

@ -9,39 +9,36 @@ LICENSE = "ISC"
PR = "${DISTRO}.r0"
# Virtual runtime settings can be overriden by the distribution.
VIRTUAL-RUNTIME_crda_use_gcrypt ?= "0"
# The distribution could set this to its device manger, for example udev.
VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev"
DEPENDS = "libnl ${@base_conditional('VIRTUAL-RUNTIME_crda_use_gcrypt', '1' , 'libgcrypt python-m2crypto-native python-native', '', d)}"
DEPENDS = "libnl"
RDEPENDS_${PN} = '${VIRTUAL-RUNTIME_dev_manager}'
REG_RELEASE_DATE = "2013.01.11"
SRC_URI = "http://wireless.kernel.org/download/crda/${PN}-${PV}.tar.bz2;name=crda \
SRC_URI = " \
http://wireless.kernel.org/download/crda/${PN}-${PV}.tar.bz2;name=crda \
http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/${REG_RELEASE_DATE}-regulatory.bin;name=reg \
"
SRC_URI += '${@base_conditional("VIRTUAL-RUNTIME_crda_use_gcrypt", "1" , "", "file://0001-Make-crypto-optional.patch", d)}'
EXTRA_OEMAKE = "MAKEFLAGS="
do_compile() {
oe_runmake all_noverify
}
do_install() {
oe_runmake DESTDIR=${D} install
install -d ${D}/usr/lib/crda/
install -m 0644 ${WORKDIR}/${REG_RELEASE_DATE}-regulatory.bin ${D}/usr/lib/crda/regulatory.bin
}
file://0001-Make-crypto-optional.patch \
"
SRC_URI[crda.md5sum] = "29579185e06a75675507527243d28e5c"
SRC_URI[crda.sha256sum] = "aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0"
SRC_URI[reg.md5sum] = "e0c8a5ca63fb8bf803213f9a0c90b50b"
SRC_URI[reg.sha256sum] = "b1ee0b20c123c612dfdb6851ab42c01666f66fb583e0e590942f19bb54cf84be"
EXTRA_OEMAKE = ""
do_compile() {
oe_runmake all_noverify
}
do_install() {
oe_runmake DESTDIR=${D} install
install -d ${D}${libdir}/crda
install -m 0644 ${WORKDIR}/${REG_RELEASE_DATE}-regulatory.bin ${D}${libdir}/crda/regulatory.bin
}
FILES_${PN} += "\
/lib/udev/rules.d/85-regulatory.rules \
/usr/lib/crda/regulatory.bin \
${libdir}/crda/regulatory.bin \
"