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 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | INHIBIT_DEFAULT_DEPS = "1" |
| 10 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 11 | include recipes-bsp/common/firmware.inc |
| 12 | |
| 13 | SRC_URI += " \ |
| 14 | file://egl.pc \ |
| 15 | file://vchiq.sh \ |
| 16 | " |
| 17 | |
| 18 | S = "${RPIFW_S}/${VCDIR}" |
| 19 | |
| 20 | INCPR = "r1" |
| 21 | |
| 22 | inherit pkgconfig update-rc.d |
| 23 | |
| 24 | do_install () { |
| 25 | install -d ${D}${bindir} |
| 26 | cp -R bin/* ${D}${bindir} |
| 27 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 28 | install -d ${D}${libdir} |
| 29 | # note: -H option to deref symlinked .so |
| 30 | cp -R -H lib/* ${D}${libdir} |
| 31 | |
| 32 | install -d ${D}${includedir} |
| 33 | cp -R include/* ${D}${includedir} |
| 34 | |
| 35 | install -d ${D}${libdir}/pkgconfig |
| 36 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ |
| 37 | |
| 38 | install -d ${D}/${sysconfdir}/init.d |
| 39 | install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/ |
| 40 | } |
| 41 | |
| 42 | # These are proprietary binaries generated elsewhere so don't check ldflags |
| 43 | INSANE_SKIP_${PN} = "ldflags" |
| 44 | |
| 45 | INITSCRIPT_NAME = "vchiq.sh" |
| 46 | INITSCRIPT_PARAMS = "start 03 S ." |
| 47 | |
| 48 | FILES_${PN} = "${bindir}/* \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 49 | ${libdir}/lib*.so \ |
| 50 | ${sysconfdir}/init.d \ |
| 51 | ${libdir}/plugins" |
| 52 | FILES_${PN}-dev = "${libdir}/pkgconfig \ |
| 53 | ${includedir}" |
| 54 | FILES_${PN}-dbg += "${libdir}/plugins/.debug" |