summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-09-16 17:05:14 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-09-18 19:16:04 +0300
commited571d729613e9a467a3ac49d6f22bf21efc1d07 (patch)
tree9278d7e04fd1973b3b11bf2fbf6fb4fe8b3a8fe4
parentdbeae85ad074897bb63daa21a526c0f3a86e2f81 (diff)
downloadmeta-raspberrypi-ed571d729613e9a467a3ac49d6f22bf21efc1d07.tar.gz
RPi-config: Create recipe for config.txt file
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--recipes-bcm/bootfiles/RPi-config_0.1.bb31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-bcm/bootfiles/RPi-config_0.1.bb b/recipes-bcm/bootfiles/RPi-config_0.1.bb
new file mode 100644
index 0000000..88de94e
--- /dev/null
+++ b/recipes-bcm/bootfiles/RPi-config_0.1.bb
@@ -0,0 +1,31 @@
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 = "23e90347da3f1a6029984306e7eb5177adc34df8"
11SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
12 "
13
14S = "${WORKDIR}/git"
15
16PR = "r0"
17
18addtask deploy before do_package after do_install
19
20do_deploy() {
21 install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
22 cp config.txt ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/
23 if [ -n "${KEY_DECODE_MPG2}" ]; then
24 sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
25 fi
26 if [ -n "${KEY_DECODE_WVC1}" ]; then
27 sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
28 fi
29}
30
31PACKAGE_ARCH = "${MACHINE_ARCH}"