diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-11-14 23:41:20 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-11-27 22:42:42 +0200 |
commit | 43faccc5042fa8d4832423f68e2da9dafdf4286b (patch) | |
tree | 607ff7f3d28931fca0acdd270c6aa1280c9db850 | |
parent | 14734e73a3e77ed66d21ab1fb734350478b08d54 (diff) | |
download | meta-raspberrypi-43faccc5042fa8d4832423f68e2da9dafdf4286b.tar.gz |
rpi-config: Add variables to set memory split for 256/512 models
GPU_MEM
gpu_mem - GPU memory in megabyte. Sets the memory split between the ARM and
GPU. ARM gets the remaining memory. Min 16. Default 64
GPU_MEM_256
gpu_mem_256 -GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by
the 512MB RP. Overrides gpu_mem. Max 192.
GPU_MEM_512
gpu_mem_512 -GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by
the 256MB RP. Overrides gpu_mem. Max 448.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-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}" |