summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2018-04-16 20:44:51 +0000
committerAndrei Gherzan <andrei@gherzan.com>2018-04-23 14:08:04 +0100
commit9b2cbacb074786530c3c7eab70260c8f6de302bf (patch)
treeac02e6cb14b76eddd62d6d177f0b62b5722cd909 /recipes-bsp
parente059aaffdf8a83ab59bec7d26bd78291b5abee10 (diff)
downloadmeta-raspberrypi-9b2cbacb074786530c3c7eab70260c8f6de302bf.tar.gz
Drop unnecessary dependencies and tasks
We have a few recipes which only deploy files that go into the boot partition and do not create packages to be installed into the rootfs. These recipes don't need to run the usual packaging tasks so we can drop them to speed up the build a little. We also have a bunch of recipes that don't need the usual toolchain as they just copy files or invoke native commands like `mkimage`. So to speed up the build a little more we can set INHIBIT_DEFAULT_DEPS to avoid an unnecessary dependency on the toolchain. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/bootfiles/bcm2835-bootfiles.bb6
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb7
-rw-r--r--recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb4
3 files changed, 12 insertions, 5 deletions
diff --git a/recipes-bsp/bootfiles/bcm2835-bootfiles.bb b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
index a115037..f9af17b 100644
--- a/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
+++ b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb
@@ -3,10 +3,12 @@ LICENSE = "Proprietary"
3 3
4LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=4a4d169737c0786fb9482bb6d30401d1" 4LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=4a4d169737c0786fb9482bb6d30401d1"
5 5
6inherit deploy 6inherit deploy nopackages
7 7
8include recipes-bsp/common/firmware.inc 8include recipes-bsp/common/firmware.inc
9 9
10INHIBIT_DEFAULT_DEPS = "1"
11
10RDEPENDS_${PN} = "rpi-config" 12RDEPENDS_${PN} = "rpi-config"
11 13
12COMPATIBLE_MACHINE = "^rpi$" 14COMPATIBLE_MACHINE = "^rpi$"
@@ -32,7 +34,7 @@ do_deploy() {
32 touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp 34 touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp
33} 35}
34 36
35addtask deploy before do_package after do_install 37addtask deploy before do_build after do_install
36do_deploy[dirs] += "${DEPLOYDIR}/${PN}" 38do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
37 39
38PACKAGE_ARCH = "${MACHINE_ARCH}" 40PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index c04090f..e21872e 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -15,6 +15,8 @@ S = "${WORKDIR}/git"
15 15
16PR = "r5" 16PR = "r5"
17 17
18INHIBIT_DEFAULT_DEPS = "1"
19
18PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" 20PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
19PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" 21PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
20PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" 22PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
@@ -23,7 +25,8 @@ PITFT35r="${@bb.utils.contains("MACHINE_FEATURES", "pitft35r", "1", "0", d)}"
23VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" 25VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
24VC4DTBO_raspberrypi3-64 ?= "vc4-fkms-v3d" 26VC4DTBO_raspberrypi3-64 ?= "vc4-fkms-v3d"
25VC4DTBO ?= "vc4-kms-v3d" 27VC4DTBO ?= "vc4-kms-v3d"
26inherit deploy 28
29inherit deploy nopackages
27 30
28do_deploy() { 31do_deploy() {
29 install -d ${DEPLOYDIR}/bcm2835-bootfiles 32 install -d ${DEPLOYDIR}/bcm2835-bootfiles
@@ -185,7 +188,7 @@ do_deploy_append_raspberrypi3-64() {
185 echo "device_tree=bcm2710-rpi-3-b.dtb" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 188 echo "device_tree=bcm2710-rpi-3-b.dtb" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
186} 189}
187 190
188addtask deploy before do_package after do_install 191addtask deploy before do_build after do_install
189do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" 192do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
190 193
191PACKAGE_ARCH = "${MACHINE_ARCH}" 194PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
index 3457300..0106ac3 100644
--- a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
+++ b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
@@ -5,6 +5,8 @@ COMPATIBLE_MACHINE = "^rpi$"
5 5
6DEPENDS = "u-boot-mkimage-native" 6DEPENDS = "u-boot-mkimage-native"
7 7
8INHIBIT_DEFAULT_DEPS = "1"
9
8SRC_URI = "file://boot.cmd.in" 10SRC_URI = "file://boot.cmd.in"
9 11
10do_compile() { 12do_compile() {
@@ -14,7 +16,7 @@ do_compile() {
14 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr 16 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
15} 17}
16 18
17inherit deploy 19inherit deploy nopackages
18 20
19do_deploy() { 21do_deploy() {
20 install -d ${DEPLOYDIR} 22 install -d ${DEPLOYDIR}