mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-07-16 15:56:57 +00:00
26000aace1
The variables RPIFW_SRC_URI and RPIFW_S are created in the common firmware include file so that it is easier to override the firmware source in a local or distro config file. RPIFW_SRC_URI is used to set SRC_URI in firmware.inc as it is common to both bootfiles and vc-graphics. RPIFW_S is used as a prefix for S in bcm2835-bootfiles.bb and vc-graphics.inc as different subdirectories are referenced in each recipe. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
DESCRIPTION = "Graphics libraries for BCM2835."
|
|
LICENSE = "Proprietary"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780"
|
|
|
|
PROVIDES = "virtual/libgles2 virtual/egl"
|
|
COMPATIBLE_MACHINE = "raspberrypi"
|
|
|
|
include ../common/firmware.inc
|
|
|
|
SRC_URI += " \
|
|
file://egl.pc \
|
|
file://vchiq.sh \
|
|
"
|
|
|
|
S = "${RPIFW_S}/${VCDIR}"
|
|
|
|
INCPR = "r1"
|
|
|
|
inherit pkgconfig update-rc.d
|
|
|
|
do_install () {
|
|
install -d ${D}${bindir}
|
|
cp -R bin/* ${D}${bindir}
|
|
|
|
install -d ${D}${sbindir}
|
|
cp -R sbin/* ${D}${sbindir}
|
|
|
|
install -d ${D}${libdir}
|
|
# note: -H option to deref symlinked .so
|
|
cp -R -H lib/* ${D}${libdir}
|
|
|
|
install -d ${D}${includedir}
|
|
cp -R include/* ${D}${includedir}
|
|
|
|
install -d ${D}${libdir}/pkgconfig
|
|
install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/
|
|
|
|
install -d ${D}/${sysconfdir}/init.d
|
|
install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/
|
|
}
|
|
|
|
# These are proprietary binaries generated elsewhere so don't check ldflags
|
|
INSANE_SKIP_${PN} = "ldflags"
|
|
|
|
INITSCRIPT_NAME = "vchiq.sh"
|
|
INITSCRIPT_PARAMS = "start 03 S ."
|
|
|
|
FILES_${PN} = "${bindir}/* \
|
|
${sbindir}/* \
|
|
${libdir}/lib*.so \
|
|
${sysconfdir}/init.d"
|
|
FILES_${PN}-dev = "${libdir}/pkgconfig \
|
|
${includedir}"
|