blob: 0cdab96eef60131b6d9d686f3451e89ab59443a9 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
DESCRIPTION = "Userspace libraries for SGX"
HOMEPAGE = "http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://OMAP5-Linux-Graphics-DDK-UM-Manifest.doc;md5=360d293df455e4f2d363bb4014a49603"
COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"
BRANCH_omap-a15 = "master"
BRANCH_ti33x = "am3/k4.1"
BRANCH_ti43x = "am4/k4.1"
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
SRCREV_omap-a15 = "b6801bf89e00d69893c2957455bbeb3195c0ed52"
SRCREV_ti33x = "84ae5444c7cbc3f4c65a226b9fea62d4a513f3e0"
SRCREV_ti43x = "fdf4c0b594ca142a68aabb4c3f82b75be50b46cc"
INITSCRIPT_NAME = "pvr-init"
INITSCRIPT_PARAMS = "defaults 8"
inherit update-rc.d
PR = "r15"
PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
RDEPENDS_${PN} += "libdrm"
RREPLACES_${PN} = "libegl libgles1 libgles2"
RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
RREPLACES_${PN}-dbg = "libegl-dbg"
S = "${WORKDIR}/git"
SRC_URI_append = " \
file://rc.pvr \
file://powervr.ini \
"
do_install () {
oe_runmake install DESTDIR=${D}
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/powervr.ini ${D}${sysconfdir}/
}
FILES_${PN} = "${bindir}/*"
FILES_${PN} += " ${libdir}/*"
FILES_${PN} += "${includedir}/* /usr/share/sgx-lib/"
FILES_${PN} += "${sysconfdir}/init.d/pvr-init"
FILES_${PN} += "${sysconfdir}/powervr.ini"
PACKAGES =+ "${PN}-plugins"
FILES_${PN}-plugins = ""
FILES_${PN}-plugins_ti43x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrws_WAYLAND.so ${libdir}/libpvrws_KMS.so "
FILES_${PN}-plugins_ti33x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrDRMWSEGL_FRONT.so "
RDEPENDS_${PN} += "${PN}-plugins"
ALLOW_EMPTY_${PN}-plugins = "1"
INHIBIT_PACKAGE_STRIP = "1"
INSANE_SKIP_${PN} += "dev-so ldflags useless-rpaths"
INSANE_SKIP_${PN}-plugins = "dev-so"
CLEANBROKEN = "1"
|