diff options
author | Paul Barker <pbarker@toganlabs.com> | 2018-04-16 20:44:51 +0000 |
---|---|---|
committer | Paul Barker <pbarker@toganlabs.com> | 2018-04-20 17:40:07 +0000 |
commit | 3056eab04859eef87f1dac7c099c860ba2dadbc0 (patch) | |
tree | ac02e6cb14b76eddd62d6d177f0b62b5722cd909 | |
parent | 3287a23fa8cb85164959865f9013a38fa1e87299 (diff) | |
download | meta-raspberrypi-3056eab04859eef87f1dac7c099c860ba2dadbc0.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>
-rw-r--r-- | recipes-bsp/bootfiles/bcm2835-bootfiles.bb | 6 | ||||
-rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 7 | ||||
-rw-r--r-- | recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb | 4 | ||||
-rw-r--r-- | recipes-core/udev/udev-rules-rpi.bb | 2 | ||||
-rw-r--r-- | recipes-core/udev/udev-rules-udisks-rpi_1.0.bb | 2 | ||||
-rw-r--r-- | recipes-graphics/vc-graphics/vc-graphics.inc | 2 | ||||
-rw-r--r-- | recipes-kernel/linux-firmware/linux-firmware-raspbian.bb | 2 |
7 files changed, 20 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 | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=4a4d169737c0786fb9482bb6d30401d1" | 4 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=4a4d169737c0786fb9482bb6d30401d1" |
5 | 5 | ||
6 | inherit deploy | 6 | inherit deploy nopackages |
7 | 7 | ||
8 | include recipes-bsp/common/firmware.inc | 8 | include recipes-bsp/common/firmware.inc |
9 | 9 | ||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
10 | RDEPENDS_${PN} = "rpi-config" | 12 | RDEPENDS_${PN} = "rpi-config" |
11 | 13 | ||
12 | COMPATIBLE_MACHINE = "^rpi$" | 14 | COMPATIBLE_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 | ||
35 | addtask deploy before do_package after do_install | 37 | addtask deploy before do_build after do_install |
36 | do_deploy[dirs] += "${DEPLOYDIR}/${PN}" | 38 | do_deploy[dirs] += "${DEPLOYDIR}/${PN}" |
37 | 39 | ||
38 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 40 | PACKAGE_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 | ||
16 | PR = "r5" | 16 | PR = "r5" |
17 | 17 | ||
18 | INHIBIT_DEFAULT_DEPS = "1" | ||
19 | |||
18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 20 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" | 21 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" |
20 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" | 22 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" |
@@ -23,7 +25,8 @@ PITFT35r="${@bb.utils.contains("MACHINE_FEATURES", "pitft35r", "1", "0", d)}" | |||
23 | VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" | 25 | VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" |
24 | VC4DTBO_raspberrypi3-64 ?= "vc4-fkms-v3d" | 26 | VC4DTBO_raspberrypi3-64 ?= "vc4-fkms-v3d" |
25 | VC4DTBO ?= "vc4-kms-v3d" | 27 | VC4DTBO ?= "vc4-kms-v3d" |
26 | inherit deploy | 28 | |
29 | inherit deploy nopackages | ||
27 | 30 | ||
28 | do_deploy() { | 31 | do_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 | ||
188 | addtask deploy before do_package after do_install | 191 | addtask deploy before do_build after do_install |
189 | do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" | 192 | do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" |
190 | 193 | ||
191 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 194 | PACKAGE_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 | ||
6 | DEPENDS = "u-boot-mkimage-native" | 6 | DEPENDS = "u-boot-mkimage-native" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
8 | SRC_URI = "file://boot.cmd.in" | 10 | SRC_URI = "file://boot.cmd.in" |
9 | 11 | ||
10 | do_compile() { | 12 | do_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 | ||
17 | inherit deploy | 19 | inherit deploy nopackages |
18 | 20 | ||
19 | do_deploy() { | 21 | do_deploy() { |
20 | install -d ${DEPLOYDIR} | 22 | install -d ${DEPLOYDIR} |
diff --git a/recipes-core/udev/udev-rules-rpi.bb b/recipes-core/udev/udev-rules-rpi.bb index 20443d3..b249d97 100644 --- a/recipes-core/udev/udev-rules-rpi.bb +++ b/recipes-core/udev/udev-rules-rpi.bb | |||
@@ -6,6 +6,8 @@ SRC_URI = " file://99-com.rules" | |||
6 | 6 | ||
7 | S = "${WORKDIR}" | 7 | S = "${WORKDIR}" |
8 | 8 | ||
9 | INHIBIT_DEFAULT_DEPS = "1" | ||
10 | |||
9 | do_install () { | 11 | do_install () { |
10 | install -d ${D}${sysconfdir}/udev/rules.d | 12 | install -d ${D}${sysconfdir}/udev/rules.d |
11 | install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/ | 13 | install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/ |
diff --git a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb index a238f52..ae35521 100644 --- a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb +++ b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb | |||
@@ -3,6 +3,8 @@ LICENSE = "MIT" | |||
3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
4 | SRC_URI = "file://80-udisks-rpi.rules" | 4 | SRC_URI = "file://80-udisks-rpi.rules" |
5 | 5 | ||
6 | INHIBIT_DEFAULT_DEPS = "1" | ||
7 | |||
6 | do_install () { | 8 | do_install () { |
7 | install -d ${D}${base_libdir}/udev/rules.d | 9 | install -d ${D}${base_libdir}/udev/rules.d |
8 | install -m 644 ${WORKDIR}/80-udisks-rpi.rules ${D}${base_libdir}/udev/rules.d | 10 | install -m 644 ${WORKDIR}/80-udisks-rpi.rules ${D}${base_libdir}/udev/rules.d |
diff --git a/recipes-graphics/vc-graphics/vc-graphics.inc b/recipes-graphics/vc-graphics/vc-graphics.inc index 668c5ce..cd0d57b 100644 --- a/recipes-graphics/vc-graphics/vc-graphics.inc +++ b/recipes-graphics/vc-graphics/vc-graphics.inc | |||
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" | |||
6 | PROVIDES = "virtual/libgles2 virtual/egl" | 6 | PROVIDES = "virtual/libgles2 virtual/egl" |
7 | COMPATIBLE_MACHINE = "^rpi$" | 7 | COMPATIBLE_MACHINE = "^rpi$" |
8 | 8 | ||
9 | INHIBIT_DEFAULT_DEPS = "1" | ||
10 | |||
9 | include recipes-bsp/common/firmware.inc | 11 | include recipes-bsp/common/firmware.inc |
10 | 12 | ||
11 | SRC_URI += " \ | 13 | SRC_URI += " \ |
diff --git a/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb b/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb index ee89301..d11a53b 100644 --- a/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb +++ b/recipes-kernel/linux-firmware/linux-firmware-raspbian.bb | |||
@@ -5,6 +5,8 @@ LICENSE = "Firmware-broadcom_bcm43xx" | |||
5 | 5 | ||
6 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" | 6 | LIC_FILES_CHKSUM = "file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
8 | # These are not common licenses, set NO_GENERIC_LICENSE for them | 10 | # These are not common licenses, set NO_GENERIC_LICENSE for them |
9 | # so that the license files will be copied from fetched source | 11 | # so that the license files will be copied from fetched source |
10 | NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx" | 12 | NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx" |