Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Graphics libraries for BCM2835." |
| 2 | LICENSE = "Proprietary" |
| 3 | |
| 4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" |
| 5 | |
| 6 | PROVIDES = "virtual/libgles2 virtual/egl" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | COMPATIBLE_MACHINE = "^rpi$" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 8 | |
| 9 | include recipes-bsp/common/firmware.inc |
| 10 | |
| 11 | SRC_URI += " \ |
| 12 | file://egl.pc \ |
| 13 | file://vchiq.sh \ |
| 14 | " |
| 15 | |
| 16 | S = "${RPIFW_S}/${VCDIR}" |
| 17 | |
| 18 | INCPR = "r1" |
| 19 | |
| 20 | inherit pkgconfig update-rc.d |
| 21 | |
| 22 | do_install () { |
| 23 | install -d ${D}${bindir} |
| 24 | cp -R bin/* ${D}${bindir} |
| 25 | |
| 26 | install -d ${D}${sbindir} |
| 27 | cp -R sbin/* ${D}${sbindir} |
| 28 | |
| 29 | install -d ${D}${libdir} |
| 30 | # note: -H option to deref symlinked .so |
| 31 | cp -R -H lib/* ${D}${libdir} |
| 32 | |
| 33 | install -d ${D}${includedir} |
| 34 | cp -R include/* ${D}${includedir} |
| 35 | |
| 36 | install -d ${D}${libdir}/pkgconfig |
| 37 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ |
| 38 | |
| 39 | install -d ${D}/${sysconfdir}/init.d |
| 40 | install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/ |
| 41 | } |
| 42 | |
| 43 | # These are proprietary binaries generated elsewhere so don't check ldflags |
| 44 | INSANE_SKIP_${PN} = "ldflags" |
| 45 | |
| 46 | INITSCRIPT_NAME = "vchiq.sh" |
| 47 | INITSCRIPT_PARAMS = "start 03 S ." |
| 48 | |
| 49 | FILES_${PN} = "${bindir}/* \ |
| 50 | ${sbindir}/* \ |
| 51 | ${libdir}/lib*.so \ |
| 52 | ${sysconfdir}/init.d \ |
| 53 | ${libdir}/plugins" |
| 54 | FILES_${PN}-dev = "${libdir}/pkgconfig \ |
| 55 | ${includedir}" |
| 56 | FILES_${PN}-dbg += "${libdir}/plugins/.debug" |