mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00
Merge pull request #13 from tthef/master
Packaging of firmware for VC graphics
This commit is contained in:
commit
426cafd050
|
@ -3,11 +3,10 @@ LICENSE = "proprietary-binary"
|
|||
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9"
|
||||
|
||||
# This is on the master branch
|
||||
SRCREV = "56cd7ffb3f7244017c8eb3b492ea37592c678506"
|
||||
include ../common/firmware.inc
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \
|
||||
git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git/boot"
|
||||
|
@ -23,7 +22,7 @@ do_deploy() {
|
|||
done
|
||||
for i in *.bin ; do
|
||||
cp $i ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
|
8
recipes-bcm/common/firmware.inc
Normal file
8
recipes-bcm/common/firmware.inc
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
# 21/06/2012 firmware; this can be overridden from distro config
|
||||
RPIFW_SRCREV ?= "fc0232ac463f0618914bab9314e8e2ae27466d8c"
|
||||
RPIFW_DATE ?= "20120621"
|
||||
|
||||
|
||||
SRCREV = "${RPIFW_SRCREV}"
|
||||
PV = "${RPIFW_DATE}"
|
10
recipes-bcm/vc-graphics/files/egl.pc
Normal file
10
recipes-bcm/vc-graphics/files/egl.pc
Normal file
|
@ -0,0 +1,10 @@
|
|||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: egl
|
||||
Description: egl for RaspberryPI
|
||||
Version: 0.0
|
||||
Libs: -L${libdir} -lEGL -lGLESv2
|
||||
Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads
|
8
recipes-bcm/vc-graphics/vc-graphics-hardfp.bb
Normal file
8
recipes-bcm/vc-graphics/vc-graphics-hardfp.bb
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
CONFLICTS = "vc-graphics"
|
||||
|
||||
VCDIR = "hardfp/opt/vc"
|
||||
require vc-graphics.inc
|
||||
|
||||
PR = "${INCPR}.0"
|
||||
|
8
recipes-bcm/vc-graphics/vc-graphics.bb
Executable file
8
recipes-bcm/vc-graphics/vc-graphics.bb
Executable file
|
@ -0,0 +1,8 @@
|
|||
|
||||
CONFLICTS = "vc-graphics-hardfp"
|
||||
|
||||
VCDIR = "opt/vc"
|
||||
require vc-graphics.inc
|
||||
|
||||
PR = "${INCPR}.0"
|
||||
|
38
recipes-bcm/vc-graphics/vc-graphics.inc
Normal file
38
recipes-bcm/vc-graphics/vc-graphics.inc
Normal file
|
@ -0,0 +1,38 @@
|
|||
DESCRIPTION = "Graphics libraries for BCM2835."
|
||||
LICENSE = "proprietary-binary"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780"
|
||||
|
||||
PROVIDES += "virtual/egl"
|
||||
|
||||
include ../common/firmware.inc
|
||||
|
||||
SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\
|
||||
file://egl.pc"
|
||||
|
||||
S = "${WORKDIR}/git/${VCDIR}"
|
||||
|
||||
INCPR = "r0"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir}
|
||||
cp -R bin/* ${D}${bindir}
|
||||
|
||||
install -d ${D}${sbindir}
|
||||
cp -R sbin/* ${D}${sbindir}
|
||||
|
||||
install -d ${D}${libdir}
|
||||
cp -R 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/
|
||||
}
|
||||
|
||||
|
||||
FILES_${PN} = "${bindir}/* ${sbindir}/* ${libdir}/lib*.so*"
|
||||
FILES_${PN}-dev += "${libdir}/pkgconfig"
|
Loading…
Reference in New Issue
Block a user