summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2015-03-02 00:06:17 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2015-03-12 22:20:51 +0100
commit5810be737dc10cd71abdf6fc94237b61ad824474 (patch)
tree9eddcd9c9ea5c4c587c27ecae3a9d269c558cc3e /recipes-bsp
parentc0ee9c764159e887d99f4a6e0fb3375f053a071f (diff)
downloadmeta-raspberrypi-5810be737dc10cd71abdf6fc94237b61ad824474.tar.gz
bootfiles: Move to recipes-bsp
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/bootfiles/bcm2835-bootfiles.bb39
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb74
2 files changed, 113 insertions, 0 deletions
diff --git a/recipes-bsp/bootfiles/bcm2835-bootfiles.bb b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
new file mode 100644
index 0000000..0665944
--- /dev/null
+++ b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "Closed source binary files to help boot the ARM on the BCM2835."
2LICENSE = "Proprietary"
3
4LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9"
5
6inherit deploy
7
8include recipes-bsp/common/firmware.inc
9
10RDEPENDS_${PN} = "rpi-config"
11
12COMPATIBLE_MACHINE = "raspberrypi"
13
14S = "${RPIFW_S}/boot"
15
16PR = "r3"
17
18do_deploy() {
19 install -d ${DEPLOYDIR}/${PN}
20
21 for i in ${S}/*.elf ; do
22 cp $i ${DEPLOYDIR}/${PN}
23 done
24 for i in ${S}/*.dat ; do
25 cp $i ${DEPLOYDIR}/${PN}
26 done
27 for i in ${S}/*.bin ; do
28 cp $i ${DEPLOYDIR}/${PN}
29 done
30
31 # Add stamp in deploy directory
32 touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp
33}
34
35addtask deploy before do_package after do_install
36do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
37
38PACKAGE_ARCH = "${MACHINE_ARCH}"
39
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
new file mode 100644
index 0000000..29ced34
--- /dev/null
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -0,0 +1,74 @@
1DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \
2 The Raspberry Pi config.txt file is read by the GPU before \
3 the ARM core is initialised. It can be used to set various \
4 system configuration parameters."
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
7
8COMPATIBLE_MACHINE = "raspberrypi"
9
10SRCREV = "5d2ca5f9bcb1b239c051e20c05a233fd79cf09d5"
11SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
12 "
13
14S = "${WORKDIR}/git"
15
16PR = "r4"
17
18inherit deploy
19
20do_deploy() {
21 install -d ${DEPLOYDIR}/bcm2835-bootfiles
22
23 cp ${S}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/
24
25 if [ -n "${KEY_DECODE_MPG2}" ]; then
26 sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
27 fi
28 if [ -n "${KEY_DECODE_WVC1}" ]; then
29 sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
30 fi
31 if [ -n "${DISABLE_OVERSCAN}" ]; then
32 sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
33 fi
34 if [ -n "${ARM_FREQ}" ]; then
35 sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
36 fi
37 if [ -n "${CORE_FREQ}" ]; then
38 sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
39 fi
40 if [ -n "${SDRAM_FREQ}" ]; then
41 sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
42 fi
43 if [ -n "${OVER_VOLTAGE}" ]; then
44 sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
45 fi
46
47 # GPU memory
48 if [ -n "${GPU_MEM}" ]; then
49 sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
50 fi
51 if [ -n "${GPU_MEM_256}" ]; then
52 sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
53 fi
54 if [ -n "${GPU_MEM_512}" ]; then
55 sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
56 fi
57
58 # Video camera support
59 if [ -n "${VIDEO_CAMERA}" ]; then
60 echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
61 echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
62 fi
63
64 # Offline compositing support
65 if [ -n "${DISPMANX_OFFLINE}" ]; then
66 echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
67 echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
68 fi
69}
70
71addtask deploy before do_package after do_install
72do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
73
74PACKAGE_ARCH = "${MACHINE_ARCH}"