blob: 3f9a3cdc756332103e9a48ad4080f9ec5e141200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
LICENSE = "GPLv2"
inherit module
SRC_URI = "http://dominion.thruhere.net/koen/OE/omap3-sgx-modules-${PV}.tar.bz2 \
file://0001-Compile-fixes-for-DSS2.patch;patch=1 \
file://0001-New-build-system-for-SGX.patch;patch=1 \
file://spurious-irq-fix.diff;patch=1 \
"
PVRBUILD = "release"
MAKE_TARGETS = " BUILD=${PVRBUILD}"
do_compile_prepend() {
find ${S} -name "*.*o" | xargs rm || true
if [ $(echo ${KERNEL_VERSION} | cut -c5,6) -gt 28 ] ; then
sed -i -e 's:omap_dispc_unregister_isr(OMAPLFBVSyncISR):omap_dispc_unregister_isr(OMAPLFBVSyncISR, psSwapChain, DISPC_IRQ_VSYNC):g' services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
fi
}
do_install() {
mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
cp ${S}/pvrsrvkm.ko ${S}/services4/3rdparty/dc_omap3430_linux/omaplfb.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
}
|