aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2020-08-06 12:22:21 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2020-08-10 11:09:45 +0100
commit5c3bda2acb8bd1c65e80ba9140e146f2f4a80b56 (patch)
tree8fac1228592654ba257f9f8e7b7b6cd3943d3af4
parentf046b4128c9ca3420614887006101fa2b10fc6e7 (diff)
downloadmeta-raspberrypi-master.tar.gz
meta-raspberrypi-master.tar.bz2
meta-raspberrypi-master.zip
sdcard_image-rpi.bbclass: Fix when RPI_SDIMG_EXTRA_DEPENDS not definedHEADmaster
If the variable is not defined, bitbake will fail: [...] Task 'depends' should be specified in the form 'packagename:task' [...] This is because not expanding the variable leaves an invalid entry. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--classes/sdcard_image-rpi.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 9bf42db..8197978 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -49,6 +49,8 @@ SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${SDIMG_ROOTFS_TYPE}"
# For the names of kernel artifacts
inherit kernel-artifact-names
+RPI_SDIMG_EXTRA_DEPENDS ?= ""
+
do_image_rpi_sdimg[depends] = " \
parted-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \