summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2012-09-22 15:04:53 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2012-10-17 16:43:34 +0300
commit77d077cdcc4d198223cd7a9beee7fa135e850ad3 (patch)
treebbe28c4afa4192226fb1f098e12e87f635593787
parent0a181df8c5241a6fed941d8448633b51ac5b6ee2 (diff)
downloadmeta-raspberrypi-77d077cdcc4d198223cd7a9beee7fa135e850ad3.tar.gz
rpi-config: Add variables for overclocking options.
config.txt allows several overclocking parameters to be tweakes. This makes the most important ones overridable through local.conf. Signed-off-by: Julian Scheel <julian@jusst.de>
-rw-r--r--recipes-bcm/bootfiles/rpi-config_0.1.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-bcm/bootfiles/rpi-config_0.1.bb b/recipes-bcm/bootfiles/rpi-config_0.1.bb
index 28b6f19..f0ae412 100644
--- a/recipes-bcm/bootfiles/rpi-config_0.1.bb
+++ b/recipes-bcm/bootfiles/rpi-config_0.1.bb
@@ -29,6 +29,18 @@ do_deploy() {
29 if [ -n "${DISABLE_OVERSCAN}" ]; then 29 if [ -n "${DISABLE_OVERSCAN}" ]; then
30 sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt 30 sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
31 fi 31 fi
32 if [ -n "${ARM_FREQ}" ]; then
33 sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
34 fi
35 if [ -n "${CORE_FREQ}" ]; then
36 sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
37 fi
38 if [ -n "${SDRAM_FREQ}" ]; then
39 sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
40 fi
41 if [ -n "${OVER_VOLTAGE}" ]; then
42 sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
43 fi
32} 44}
33 45
34PACKAGE_ARCH = "${MACHINE_ARCH}" 46PACKAGE_ARCH = "${MACHINE_ARCH}"