diff options
| -rw-r--r-- | recipes-bcm/bootfiles/rpi-config_0.1.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/recipes-bcm/bootfiles/rpi-config_0.1.bb b/recipes-bcm/bootfiles/rpi-config_0.1.bb index 705edc2..a8938dc 100644 --- a/recipes-bcm/bootfiles/rpi-config_0.1.bb +++ b/recipes-bcm/bootfiles/rpi-config_0.1.bb | |||
| @@ -13,7 +13,7 @@ SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \ | |||
| 13 | 13 | ||
| 14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 15 | 15 | ||
| 16 | PR = "r2" | 16 | PR = "r3" |
| 17 | 17 | ||
| 18 | addtask deploy before do_package after do_install | 18 | addtask deploy before do_package after do_install |
| 19 | 19 | ||
| @@ -41,6 +41,17 @@ do_deploy() { | |||
| 41 | if [ -n "${OVER_VOLTAGE}" ]; then | 41 | if [ -n "${OVER_VOLTAGE}" ]; then |
| 42 | sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt | 42 | sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt |
| 43 | fi | 43 | fi |
| 44 | |||
| 45 | # GPU memory | ||
| 46 | if [ -n "${GPU_MEM}" ]; then | ||
| 47 | sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt | ||
| 48 | fi | ||
| 49 | if [ -n "${GPU_MEM_256}" ]; then | ||
| 50 | sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt | ||
| 51 | fi | ||
| 52 | if [ -n "${GPU_MEM_512}" ]; then | ||
| 53 | sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt | ||
| 54 | fi | ||
| 44 | } | 55 | } |
| 45 | 56 | ||
| 46 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 57 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
