Merge pull request #13 from tthef/master

Packaging of firmware for VC graphics
This commit is contained in:
David-John Willis 2012-06-29 15:10:34 -07:00
commit 426cafd050
6 changed files with 75 additions and 4 deletions

View File

@ -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}"

View 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}"

View 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

View File

@ -0,0 +1,8 @@
CONFLICTS = "vc-graphics"
VCDIR = "hardfp/opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View File

@ -0,0 +1,8 @@
CONFLICTS = "vc-graphics-hardfp"
VCDIR = "opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View 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"