diff options
-rw-r--r-- | recipes-bcm/bootfiles/RPi-config_0.1.bb | 31 |
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 @@ | |||
1 | DESCRIPTION = "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." | ||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "raspberrypi" | ||
9 | |||
10 | SRCREV = "23e90347da3f1a6029984306e7eb5177adc34df8" | ||
11 | SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \ | ||
12 | " | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | PR = "r0" | ||
17 | |||
18 | addtask deploy before do_package after do_install | ||
19 | |||
20 | do_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 | |||
31 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||