diff options
author | Paul Barker <paul@paulbarker.me.uk> | 2013-05-22 10:06:04 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2013-06-10 12:04:50 +0300 |
commit | 26000aace1cfbe839d6b7f82bf61707e6a1c3994 (patch) | |
tree | f6a545e2c1001e990fd1d9258245d014e7df1d3f | |
parent | 06630f323d9254f23258a196de2a52fd8008a2ef (diff) | |
download | meta-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.bb | 6 | ||||
-rw-r--r-- | recipes-bcm/common/firmware.inc | 3 | ||||
-rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics.inc | 9 |
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 | ||
10 | COMPATIBLE_MACHINE = "raspberrypi" | 10 | COMPATIBLE_MACHINE = "raspberrypi" |
11 | 11 | ||
12 | SRC_URI = " \ | 12 | S = "${RPIFW_S}/boot" |
13 | git://github.com/raspberrypi/firmware.git;protocol=git;branch=master \ | ||
14 | " | ||
15 | |||
16 | S = "${WORKDIR}/git/boot" | ||
17 | 13 | ||
18 | PR = "r3" | 14 | PR = "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 |
2 | RPIFW_SRCREV ?= "0ac68cce44d4550c251172e8524100090e8211fa" | 2 | RPIFW_SRCREV ?= "0ac68cce44d4550c251172e8524100090e8211fa" |
3 | RPIFW_DATE ?= "20130107" | 3 | RPIFW_DATE ?= "20130107" |
4 | RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master" | ||
5 | RPIFW_S ?= "${WORKDIR}/git" | ||
4 | 6 | ||
7 | SRC_URI = "${RPIFW_SRC_URI}" | ||
5 | SRCREV = "${RPIFW_SRCREV}" | 8 | SRCREV = "${RPIFW_SRCREV}" |
6 | PV = "${RPIFW_DATE}" | 9 | PV = "${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 | ||
9 | include ../common/firmware.inc | 9 | include ../common/firmware.inc |
10 | 10 | ||
11 | SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ | 11 | SRC_URI += " \ |
12 | file://egl.pc \ | 12 | file://egl.pc \ |
13 | file://vchiq.sh" | 13 | file://vchiq.sh \ |
14 | " | ||
14 | 15 | ||
15 | S = "${WORKDIR}/git/${VCDIR}" | 16 | S = "${RPIFW_S}/${VCDIR}" |
16 | 17 | ||
17 | INCPR = "r1" | 18 | INCPR = "r1" |
18 | 19 | ||