aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-09-29 10:28:19 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-06 12:03:33 +0100
commita93c5869cb716cba5e05bbe4fc2e1c11adb9e30f (patch)
treed5ddb2184675754229688f41404797bc188cc232
parent312b4d6175e189852c0787ca2fe99b99ce92d1bd (diff)
downloadopenembedded-core-contrib-a93c5869cb716cba5e05bbe4fc2e1c11adb9e30f.tar.gz
openembedded-core-contrib-a93c5869cb716cba5e05bbe4fc2e1c11adb9e30f.tar.bz2
openembedded-core-contrib-a93c5869cb716cba5e05bbe4fc2e1c11adb9e30f.zip
image_types: Fix bmaptool support for RSS
With RSS we need to ensure that when making a bmap image that the python3 that we created is found via /usr/bin/env rather than the host python3. Otherwise we're relying on the build host to have bmaptool support installed. Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/classes/image_types.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 61dca626311..b373b217145 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -311,3 +311,6 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso"
# The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES,
# images that will not be built at do_rootfs time: vmdk, vdi, qcow2, hdddirect, hddimg, iso, etc.
IMAGE_TYPES_MASKED ?= ""
+
+# bmap requires python3 to be in the PATH
+EXTRANATIVEPATH += "${@'python3-native' if d.getVar('IMAGE_FSTYPES').find('.bmap') else ''}"