Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] image_types: Fix bmaptool support for RSS
@ 2017-09-27 17:00 Tom Rini
  2017-09-27 17:10 ` Burton, Ross
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Tom Rini @ 2017-09-27 17:00 UTC (permalink / raw)
  To: openembedded-core

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>
---
I played around with a few ways to try and fix this problem, and this
was the best I could come up with.  Once this is in we need this in pyro
as well as it's broken there too.
---
 meta/classes/image_types.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 61dca626311e..3ff960e3a889 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 ''}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-10-02 10:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-27 17:00 [PATCH] image_types: Fix bmaptool support for RSS Tom Rini
2017-09-27 17:10 ` Burton, Ross
2017-09-27 17:52   ` Tom Rini
2017-09-27 19:34     ` Tom Rini
2017-09-27 21:01 ` Khem Raj
2017-09-27 21:53   ` Tom Rini
2017-09-27 22:14     ` Khem Raj
2017-09-27 22:17       ` Tom Rini
2017-09-28  4:38         ` Khem Raj
2017-09-28 14:13 ` Ed Bartosh
2017-09-28 14:53   ` Tom Rini
2017-09-29 11:16 ` Ed Bartosh
2017-09-29 12:36   ` Tom Rini
2017-09-29 14:21     ` Ed Bartosh
2017-09-29 14:28 ` [PATCHv2] " Tom Rini
2017-10-02  9:59   ` Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox