Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "This repository contains the source code for the ARM side \ |
| 2 | libraries used on Raspberry Pi. These typically are installed in /opt/vc/lib \ |
| 3 | and includes source for the ARM side code to interface to: EGL, mmal, GLESv2,\ |
| 4 | vcos, openmaxil, vchiq_arm, bcm_host, WFC, OpenVG." |
| 5 | LICENSE = "BSD-3-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://LICENCE;md5=0448d6488ef8cc380632b1569ee6d196" |
| 7 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 8 | PROVIDES = "virtual/libgles2 \ |
| 9 | virtual/egl" |
| 10 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | RPROVIDES_${PN} += "libgles2 egl libegl" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 12 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | COMPATIBLE_MACHINE = "^rpi$" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 14 | |
| 15 | SRCBRANCH = "master" |
| 16 | SRCFORK = "raspberrypi" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | SRCREV = "11389772c79685442e0ab8aa9be8ad0e32703f68" |
| 18 | |
| 19 | # Use the date of the above commit as the package version. Update this when |
| 20 | # SRCREV is changed. |
| 21 | PV = "20180219" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 22 | |
| 23 | SRC_URI = "\ |
| 24 | git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ |
| 25 | file://0001-Allow-applications-to-set-next-resource-handle.patch \ |
| 26 | file://0002-wayland-Add-support-for-the-Wayland-winsys.patch \ |
| 27 | file://0003-wayland-Add-Wayland-example.patch \ |
| 28 | file://0004-wayland-egl-Add-bcm_host-to-dependencies.patch \ |
| 29 | file://0005-interface-remove-faulty-assert-to-make-weston-happy-.patch \ |
| 30 | file://0006-zero-out-wl-buffers-in-egl_surface_free.patch \ |
| 31 | file://0007-initialize-front-back-wayland-buffers.patch \ |
| 32 | file://0008-Remove-RPC_FLUSH.patch \ |
| 33 | file://0009-fix-cmake-dependency-race.patch \ |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 34 | file://0010-Fix-for-framerate-with-nested-composition.patch \ |
| 35 | file://0011-build-shared-library-for-vchostif.patch \ |
| 36 | file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 37 | file://0013-Implement-triple-buffering-for-wayland.patch \ |
| 38 | file://0014-GLES2-gl2ext.h-Define-GL_R8_EXT-and-GL_RG8_EXT.patch \ |
| 39 | file://0015-EGL-glplatform.h-define-EGL_CAST.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 40 | file://0016-Allow-multiple-wayland-compositor-state-data-per-pro.patch \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 41 | " |
| 42 | S = "${WORKDIR}/git" |
| 43 | |
| 44 | inherit cmake pkgconfig |
| 45 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 46 | ASNEEDED = "" |
| 47 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 48 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed' \ |
| 49 | -DVMCS_INSTALL_PREFIX=${exec_prefix} \ |
| 50 | " |
| 51 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 52 | EXTRA_OECMAKE_append_aarch64 = " -DARM64=ON " |
| 53 | |
| 54 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 55 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" |
| 56 | |
| 57 | PACKAGECONFIG[wayland] = "-DBUILD_WAYLAND=TRUE -DWAYLAND_SCANNER_EXECUTABLE:FILEPATH=${STAGING_BINDIR_NATIVE}/wayland-scanner,,wayland-native wayland" |
| 58 | |
| 59 | CFLAGS_append = " -fPIC" |
| 60 | |
| 61 | do_install_append () { |
| 62 | for f in `find ${D}${includedir}/interface/vcos/ -name "*.h"`; do |
| 63 | sed -i 's/include "vcos_platform.h"/include "pthreads\/vcos_platform.h"/g' ${f} |
| 64 | sed -i 's/include "vcos_futex_mutex.h"/include "pthreads\/vcos_futex_mutex.h"/g' ${f} |
| 65 | sed -i 's/include "vcos_platform_types.h"/include "pthreads\/vcos_platform_types.h"/g' ${f} |
| 66 | done |
| 67 | } |
| 68 | |
| 69 | # Shared libs from userland package build aren't versioned, so we need |
| 70 | # to force the .so files into the runtime package (and keep them |
| 71 | # out of -dev package). |
| 72 | FILES_SOLIBSDEV = "" |
| 73 | INSANE_SKIP_${PN} += "dev-so" |
| 74 | |
| 75 | FILES_${PN} += " \ |
| 76 | ${libdir}/*.so \ |
| 77 | ${libdir}/plugins" |
| 78 | FILES_${PN}-dev += "${includedir} \ |
| 79 | ${prefix}/src" |
| 80 | FILES_${PN}-doc += "${datadir}/install" |
| 81 | FILES_${PN}-dbg += "${libdir}/plugins/.debug" |
| 82 | |
| 83 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 84 | |
| 85 | RDEPENDS_${PN} += "bash" |