dahdi-linux: Organize recipe

Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
This commit is contained in:
Fabio Berton 2015-10-15 14:34:19 -03:00
parent 425322314a
commit f6bd02dc68
1 changed files with 45 additions and 49 deletions

View File

@ -2,9 +2,9 @@ DESCRITOPN = "Digium Asterisk Hardware Driver Interface - Linux kernel part"
SECTION = "base"
HOMEPAGE = "http://www.asterisk.org"
LICENSE = "GPLv2"
RDEPENDS_${PN} = "kernel (${KERNEL_VERSION})"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a"
DEPENDS = "virtual/kernel"
RRECOMMENDS_${PN} = "dahdi-firmware"
# those firmware images are normally downloaded as part of the 'make'
# process of dahdi-linux. In the context of OE, we want to list them
@ -34,10 +34,6 @@ http://downloads.digium.com/pub/telephony/firmware/releases/zaptel-fw-vpmadt032-
SRC_URI = "http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-${PV}.tar.gz "
SRC_URI =+ "${FIRMWARE_URI}"
INC_PR="r9"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a"
inherit module
do_configure() {
@ -46,7 +42,6 @@ do_configure() {
cp ${DL_DIR}/dahdi-fwload-*.tar.gz drivers/dahdi/firmware/
cp ${DL_DIR}/zaptel-fw-*.tar.gz drivers/dahdi/firmware/
cp ${DL_DIR}/dahdi-fw-*.tar.gz drivers/dahdi/firmware/
# Enable the mirror for pcap..
sed -i s,"\/\* #define CONFIG_DAHDI_MIRROR \*\/","#define CONFIG_DAHDI_MIRROR", ${S}/include/dahdi/dahdi_config.h
}
@ -70,10 +65,11 @@ do_install () {
install
}
PACKAGE_ARCH_dahdi-firmware = "all"
PACKAGES =+ "dahdi-firmware"
FILES_${PN} = "${base_libdir}/modules/ ${sysconfdir}/udev/rules.d"
FILES_dahdi-firmware = "${base_libdir}/firmware ${datadir}/dahdi"
PACKAGE_ARCH_dahdi-firmware = "all"
RDEPENDS_${PN} = "kernel (${KERNEL_VERSION})"
RRECOMMENDS_${PN} = "dahdi-firmware"