mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00

Building userland source with gcc 5.x causes multiple issues such as: vcos_thread.h:186:15: warning: inline function 'vcos_thread_get_affinity' declared but never defined | VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread); The following patches fixes these issues and allows building userland on the current poky master branch. Signed-off-by: Tom Doehring <toolmmy@googlemail.com>
52 lines
1.4 KiB
BlitzBasic
52 lines
1.4 KiB
BlitzBasic
DESCRIPTION = "This repository contains the source code for the ARM side \
|
|
libraries used on Raspberry Pi. These typically are installed in /opt/vc/lib \
|
|
and includes source for the ARM side code to interface to: EGL, mmal, GLESv2,\
|
|
vcos, openmaxil, vchiq_arm, bcm_host, WFC, OpenVG."
|
|
LICENSE = "Broadcom"
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=957f6640d5e2d2acfce73a36a56cb32f"
|
|
|
|
PR = "r5"
|
|
|
|
PROVIDES = "virtual/libgles2 \
|
|
virtual/egl"
|
|
|
|
COMPATIBLE_MACHINE = "raspberrypi"
|
|
|
|
SRCBRANCH = "master"
|
|
SRCFORK = "raspberrypi"
|
|
SRCREV = "cc92dfd6c4e8e2d90c3903dccfe77f7274b8d1b7"
|
|
|
|
SRC_URI = "\
|
|
git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
|
|
file://0001-fix-gcc-5.x-inlines.patch \
|
|
file://0002-fix-musl-build.patch \
|
|
file://0003-fix-alloc-size-uninitialized.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit cmake
|
|
|
|
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed'"
|
|
CFLAGS_append = " -fPIC"
|
|
|
|
# The compiled binaries don't provide sonames.
|
|
SOLIBS = "${SOLIBSDEV}"
|
|
|
|
do_install_append() {
|
|
mkdir -p ${D}/${prefix}
|
|
mv ${D}/opt/vc/* ${D}/${prefix}
|
|
rm -rf ${D}/opt
|
|
}
|
|
|
|
FILES_${PN} += " \
|
|
${libdir}/*${SOLIBS} \
|
|
${libdir}/plugins"
|
|
FILES_${PN}-dev = "${includedir} \
|
|
${prefix}/src"
|
|
FILES_${PN}-doc += "${datadir}/install"
|
|
FILES_${PN}-dbg += "${libdir}/plugins/.debug"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|