1eb8dc403SDave CobbleyDESCRIPTION = "Graphics libraries for BCM2835."
2cae294d8SBrad BishopLICENSE = "Broadcom-RPi"
3eb8dc403SDave Cobbley
4eb8dc403SDave CobbleyLIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780"
5eb8dc403SDave Cobbley
6eb8dc403SDave CobbleyPROVIDES = "virtual/libgles2 virtual/egl"
7eb8dc403SDave CobbleyCOMPATIBLE_MACHINE = "^rpi$"
8eb8dc403SDave Cobbley
9eb8dc403SDave CobbleyINHIBIT_DEFAULT_DEPS = "1"
10eb8dc403SDave Cobbley
1126bdd445SBrad Bishopinclude recipes-bsp/common/raspberrypi-firmware.inc
12eb8dc403SDave Cobbley
13eb8dc403SDave CobbleySRC_URI += " \
14eb8dc403SDave Cobbley    file://egl.pc \
15eb8dc403SDave Cobbley    file://vchiq.sh \
16eb8dc403SDave Cobbley"
17eb8dc403SDave Cobbley
18eb8dc403SDave CobbleyS = "${RPIFW_S}/${VCDIR}"
19eb8dc403SDave Cobbley
20eb8dc403SDave CobbleyINCPR = "r1"
21eb8dc403SDave Cobbley
22eb8dc403SDave Cobbleyinherit pkgconfig update-rc.d
23eb8dc403SDave Cobbley
24eb8dc403SDave Cobbleydo_install () {
25eb8dc403SDave Cobbley  install -d ${D}${bindir}
26eb8dc403SDave Cobbley  cp -R bin/* ${D}${bindir}
27eb8dc403SDave Cobbley
28eb8dc403SDave Cobbley  install -d ${D}${libdir}
29eb8dc403SDave Cobbley  # note: -H option to deref symlinked .so
30eb8dc403SDave Cobbley  cp -R -H lib/* ${D}${libdir}
31eb8dc403SDave Cobbley
32eb8dc403SDave Cobbley  install -d ${D}${includedir}
33eb8dc403SDave Cobbley  cp -R include/* ${D}${includedir}
34eb8dc403SDave Cobbley
35eb8dc403SDave Cobbley  install -d ${D}${libdir}/pkgconfig
36eb8dc403SDave Cobbley  install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/
37eb8dc403SDave Cobbley
38eb8dc403SDave Cobbley  install -d ${D}/${sysconfdir}/init.d
39eb8dc403SDave Cobbley  install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/
40eb8dc403SDave Cobbley}
41eb8dc403SDave Cobbley
42eb8dc403SDave Cobbley# These are proprietary binaries generated elsewhere so don't check ldflags
43*213cb269SPatrick WilliamsINSANE_SKIP:${PN} = "ldflags"
44eb8dc403SDave Cobbley
45eb8dc403SDave CobbleyINITSCRIPT_NAME = "vchiq.sh"
46eb8dc403SDave CobbleyINITSCRIPT_PARAMS = "start 03 S ."
47eb8dc403SDave Cobbley
48*213cb269SPatrick WilliamsFILES:${PN} = "${bindir}/* \
49eb8dc403SDave Cobbley               ${libdir}/lib*.so \
50eb8dc403SDave Cobbley               ${sysconfdir}/init.d \
51eb8dc403SDave Cobbley               ${libdir}/plugins"
52*213cb269SPatrick WilliamsFILES:${PN}-dev = "${libdir}/pkgconfig \
53eb8dc403SDave Cobbley                   ${includedir}"
54*213cb269SPatrick WilliamsFILES:${PN}-dbg += "${libdir}/plugins/.debug"
55