1 # FIXME
, consider using kernel staging directory instead of KERNEL_SOURCE which is
2 # located in the work directory. see module.bbclass
4 require pvrusb2
-mci2.inc
6 RRECOMMENDS_$
{PN
} = "kernel-module-tveeprom \
7 kernel-module-firmware-class \
9 kernel-module-msp3400 \
10 kernel-module-saa7115 \
11 kernel-module-tda9887 \
12 kernel-module-v4l1-compat \
13 kernel-module-v4l2-common \
14 kernel-module-videodev"
16 SRC_URI
= "http://www.isely.net/downloads/pvrusb2-mci-${PV}.tar.bz2 \
17 file://hotplug.functions \
18 file://firmware.hotplug \
19 file://Makefile.patch"
21 S
= "${WORKDIR}/pvrusb2-mci-${PV}/driver"
25 CFLAGS
= "'-I${KERNEL_SOURCE}/include' \
26 '-I${KERNEL_SOURCE}/drivers/media/video' "
28 CFLAGS_append_arm
= " '-D__LINUX_ARM_ARCH__=5' "
30 CFLAGS_append_armeb
= " '-D__LINUX_ARM_ARCH__=5' "
32 EXTRA_OEMAKE
= "'V=1' 'CFLAGS=${CFLAGS}' \
35 'KDIR=${STAGING_KERNEL_DIR}'"
38 install
-d $
{D
}$
{base_libdir
}/modules
/$
{KERNEL_VERSION
}/kernel
/drivers
/usb
/media
39 install
-m
0644 *$
{KERNEL_OBJECT_SUFFIX
} $
{D
}$
{base_libdir
}/modules
/$
{KERNEL_VERSION
}/kernel
/drivers
/usb
/media
40 mkdir
-p $
{D
}/etc
/hotplug.d
/firmware
41 cp $
{WORKDIR
}/hotplug.functions $
{D
}/etc
/hotplug.d
/firmware
42 cp $
{WORKDIR
}/firmware.hotplug $
{D
}/etc
/hotplug.d
/firmware
45 SRC_URI
[md5sum
] = "64805cf3efcd43f39e500229ff511b5a"
46 SRC_URI
[sha256sum
] = "fe73f3e7586cead55920d7fcdaca3924776b55d335d815042d14b16aa68d74fa"