diff options
| -rw-r--r-- | README | 22 | ||||
| -rwxr-xr-x | recipes-bcm/bootfiles/bcm2835-bootfiles.bb | 7 | ||||
| -rw-r--r-- | recipes-bcm/common/firmware.inc | 8 | ||||
| -rw-r--r-- | recipes-bcm/vc-graphics/files/egl.pc | 10 | ||||
| -rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics-hardfp.bb | 8 | ||||
| -rwxr-xr-x | recipes-bcm/vc-graphics/vc-graphics.bb | 8 | ||||
| -rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics.inc | 38 | ||||
| -rwxr-xr-x | recipes-kernel/linux/linux-raspberrypi_3.1.9.bb | 4 |
8 files changed, 98 insertions, 7 deletions
| @@ -9,11 +9,27 @@ More information can be found at: | |||
| 9 | http://www.raspberrypi.org/ (Official Site) | 9 | http://www.raspberrypi.org/ (Official Site) |
| 10 | http://www.distant-earth.com/ (My Site) | 10 | http://www.distant-earth.com/ (My Site) |
| 11 | 11 | ||
| 12 | Build scripts to support making a firmware image for the RaspberryPi can be found at: | 12 | Build scripts patched to support making a firmware image for the RaspberryPi with Angstrom can be found at: |
| 13 | 13 | ||
| 14 | TODO: Fork Angstrom setup-scripts with layer added. | 14 | http://github.com/Angstrom-distribution/setup-scripts |
| 15 | 15 | ||
| 16 | This layer depends on: | 16 | When not depending on meta-openembedded and not using systemd, you may need to |
| 17 | mask few recipes requiring systemd or other recipes not included in your distribution of choice. | ||
| 18 | |||
| 19 | You can achieve this by adding something like the following to local.conf: | ||
| 20 | |||
| 21 | BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd" | ||
| 22 | |||
| 23 | You can adjust the BBMASK for any .bbappends that your distribution does not contain recipes for. | ||
| 24 | |||
| 25 | The core BSP part of meta-raspberrypi should work with different OpenEmbedded/Yocto | ||
| 26 | distributions and layer stacks, such as: | ||
| 27 | |||
| 28 | * Distro-less (only with OE-Core). | ||
| 29 | * Angstrom (main focus of testing). | ||
| 30 | * Yocto/Poky. | ||
| 31 | |||
| 32 | This layer in its entirety depends on: | ||
| 17 | 33 | ||
| 18 | URI: git://git.openembedded.org/openembedded-core | 34 | URI: git://git.openembedded.org/openembedded-core |
| 19 | branch: master | 35 | branch: master |
diff --git a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb b/recipes-bcm/bootfiles/bcm2835-bootfiles.bb index 385067a..e059142 100755 --- a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb +++ b/recipes-bcm/bootfiles/bcm2835-bootfiles.bb | |||
| @@ -3,11 +3,10 @@ LICENSE = "Proprietary" | |||
| 3 | 3 | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9" | 4 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9" |
| 5 | 5 | ||
| 6 | # This is on the master branch | 6 | include ../common/firmware.inc |
| 7 | SRCREV = "56cd7ffb3f7244017c8eb3b492ea37592c678506" | ||
| 8 | 7 | ||
| 9 | SRC_URI = " \ | 8 | SRC_URI = " \ |
| 10 | git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \ | 9 | git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \ |
| 11 | " | 10 | " |
| 12 | 11 | ||
| 13 | S = "${WORKDIR}/git/boot" | 12 | S = "${WORKDIR}/git/boot" |
| @@ -23,7 +22,7 @@ do_deploy() { | |||
| 23 | done | 22 | done |
| 24 | for i in *.bin ; do | 23 | for i in *.bin ; do |
| 25 | cp $i ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles | 24 | cp $i ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles |
| 26 | done | 25 | done |
| 27 | } | 26 | } |
| 28 | 27 | ||
| 29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 28 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bcm/common/firmware.inc b/recipes-bcm/common/firmware.inc new file mode 100644 index 0000000..89192a2 --- /dev/null +++ b/recipes-bcm/common/firmware.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | # 21/06/2012 firmware; this can be overridden from distro config | ||
| 3 | RPIFW_SRCREV ?= "fc0232ac463f0618914bab9314e8e2ae27466d8c" | ||
| 4 | RPIFW_DATE ?= "20120621" | ||
| 5 | |||
| 6 | |||
| 7 | SRCREV = "${RPIFW_SRCREV}" | ||
| 8 | PV = "${RPIFW_DATE}" \ No newline at end of file | ||
diff --git a/recipes-bcm/vc-graphics/files/egl.pc b/recipes-bcm/vc-graphics/files/egl.pc new file mode 100644 index 0000000..c314202 --- /dev/null +++ b/recipes-bcm/vc-graphics/files/egl.pc | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | prefix=/usr | ||
| 2 | exec_prefix=${prefix} | ||
| 3 | libdir=${exec_prefix}/lib | ||
| 4 | includedir=${prefix}/include | ||
| 5 | |||
| 6 | Name: egl | ||
| 7 | Description: egl for RaspberryPI | ||
| 8 | Version: 0.0 | ||
| 9 | Libs: -L${libdir} -lEGL -lGLESv2 | ||
| 10 | Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads | ||
diff --git a/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb new file mode 100644 index 0000000..e96c291 --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | CONFLICTS = "vc-graphics" | ||
| 3 | |||
| 4 | VCDIR = "hardfp/opt/vc" | ||
| 5 | require vc-graphics.inc | ||
| 6 | |||
| 7 | PR = "${INCPR}.0" | ||
| 8 | |||
diff --git a/recipes-bcm/vc-graphics/vc-graphics.bb b/recipes-bcm/vc-graphics/vc-graphics.bb new file mode 100755 index 0000000..e78a80b --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.bb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | CONFLICTS = "vc-graphics-hardfp" | ||
| 3 | |||
| 4 | VCDIR = "opt/vc" | ||
| 5 | require vc-graphics.inc | ||
| 6 | |||
| 7 | PR = "${INCPR}.0" | ||
| 8 | |||
diff --git a/recipes-bcm/vc-graphics/vc-graphics.inc b/recipes-bcm/vc-graphics/vc-graphics.inc new file mode 100644 index 0000000..19ce4ba --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.inc | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | DESCRIPTION = "Graphics libraries for BCM2835." | ||
| 2 | LICENSE = "proprietary-binary" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" | ||
| 5 | |||
| 6 | PROVIDES += "virtual/egl" | ||
| 7 | |||
| 8 | include ../common/firmware.inc | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ | ||
| 11 | file://egl.pc" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git/${VCDIR}" | ||
| 14 | |||
| 15 | INCPR = "r0" | ||
| 16 | |||
| 17 | inherit pkgconfig | ||
| 18 | |||
| 19 | do_install () { | ||
| 20 | install -d ${D}${bindir} | ||
| 21 | cp -R bin/* ${D}${bindir} | ||
| 22 | |||
| 23 | install -d ${D}${sbindir} | ||
| 24 | cp -R sbin/* ${D}${sbindir} | ||
| 25 | |||
| 26 | install -d ${D}${libdir} | ||
| 27 | cp -R lib/* ${D}${libdir} | ||
| 28 | |||
| 29 | install -d ${D}${includedir} | ||
| 30 | cp -R include/* ${D}${includedir} | ||
| 31 | |||
| 32 | install -d ${D}${libdir}/pkgconfig | ||
| 33 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ | ||
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libdir}/lib*.so*" | ||
| 38 | FILES_${PN}-dev += "${libdir}/pkgconfig" | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb b/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb index 1ab698b..ab5c6a0 100755 --- a/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb | |||
| @@ -27,3 +27,7 @@ PARALLEL_MAKEINST = "" | |||
| 27 | do_configure_prepend() { | 27 | do_configure_prepend() { |
| 28 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | 28 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." |
| 29 | } | 29 | } |
| 30 | |||
| 31 | do_install_prepend() { | ||
| 32 | install -d ${D}/lib/firmware | ||
| 33 | } | ||
