diff options
| author | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-16 17:05:14 +0300 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-18 19:16:04 +0300 |
| commit | ed571d729613e9a467a3ac49d6f22bf21efc1d07 (patch) | |
| tree | 9278d7e04fd1973b3b11bf2fbf6fb4fe8b3a8fe4 | |
| parent | dbeae85ad074897bb63daa21a526c0f3a86e2f81 (diff) | |
| download | meta-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.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}" | ||
