summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2013-05-22 10:06:04 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2013-06-10 12:04:50 +0300
commit26000aace1cfbe839d6b7f82bf61707e6a1c3994 (patch)
treef6a545e2c1001e990fd1d9258245d014e7df1d3f
parent06630f323d9254f23258a196de2a52fd8008a2ef (diff)
downloadmeta-raspberrypi-26000aace1cfbe839d6b7f82bf61707e6a1c3994.tar.gz
bootfiles, vc-graphics: consolidate SRC_URI and S variables
The variables RPIFW_SRC_URI and RPIFW_S are created in the common firmware include file so that it is easier to override the firmware source in a local or distro config file. RPIFW_SRC_URI is used to set SRC_URI in firmware.inc as it is common to both bootfiles and vc-graphics. RPIFW_S is used as a prefix for S in bcm2835-bootfiles.bb and vc-graphics.inc as different subdirectories are referenced in each recipe. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
-rw-r--r--recipes-bcm/bootfiles/bcm2835-bootfiles.bb6
-rw-r--r--recipes-bcm/common/firmware.inc3
-rw-r--r--recipes-bcm/vc-graphics/vc-graphics.inc9
3 files changed, 9 insertions, 9 deletions
diff --git a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb b/recipes-bcm/bootfiles/bcm2835-bootfiles.bb
index 28d1639..36cbcf5 100644
--- a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb
+++ b/recipes-bcm/bootfiles/bcm2835-bootfiles.bb
@@ -9,11 +9,7 @@ RDEPENDS_${PN} = "rpi-config"
9 9
10COMPATIBLE_MACHINE = "raspberrypi" 10COMPATIBLE_MACHINE = "raspberrypi"
11 11
12SRC_URI = " \ 12S = "${RPIFW_S}/boot"
13 git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \
14"
15
16S = "${WORKDIR}/git/boot"
17 13
18PR = "r3" 14PR = "r3"
19 15
diff --git a/recipes-bcm/common/firmware.inc b/recipes-bcm/common/firmware.inc
index 166bb7b..e291832 100644
--- a/recipes-bcm/common/firmware.inc
+++ b/recipes-bcm/common/firmware.inc
@@ -1,6 +1,9 @@
1# 7/1/2013 firmware; this can be overridden from distro config 1# 7/1/2013 firmware; this can be overridden from distro config
2RPIFW_SRCREV ?= "0ac68cce44d4550c251172e8524100090e8211fa" 2RPIFW_SRCREV ?= "0ac68cce44d4550c251172e8524100090e8211fa"
3RPIFW_DATE ?= "20130107" 3RPIFW_DATE ?= "20130107"
4RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master"
5RPIFW_S ?= "${WORKDIR}/git"
4 6
7SRC_URI = "${RPIFW_SRC_URI}"
5SRCREV = "${RPIFW_SRCREV}" 8SRCREV = "${RPIFW_SRCREV}"
6PV = "${RPIFW_DATE}" 9PV = "${RPIFW_DATE}"
diff --git a/recipes-bcm/vc-graphics/vc-graphics.inc b/recipes-bcm/vc-graphics/vc-graphics.inc
index 28c95a1..e9575da 100644
--- a/recipes-bcm/vc-graphics/vc-graphics.inc
+++ b/recipes-bcm/vc-graphics/vc-graphics.inc
@@ -8,11 +8,12 @@ COMPATIBLE_MACHINE = "raspberrypi"
8 8
9include ../common/firmware.inc 9include ../common/firmware.inc
10 10
11SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ 11SRC_URI += " \
12 file://egl.pc \ 12 file://egl.pc \
13 file://vchiq.sh" 13 file://vchiq.sh \
14"
14 15
15S = "${WORKDIR}/git/${VCDIR}" 16S = "${RPIFW_S}/${VCDIR}"
16 17
17INCPR = "r1" 18INCPR = "r1"
18 19