From: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
To: <openembedded-core@lists.openembedded.org>
Cc: ken.sharp@ni.com
Subject: [PATCH] wic/isoimage-isohybrid: check for grub-mkimage
Date: Wed, 4 Jan 2017 20:34:58 +0200 [thread overview]
Message-ID: <20170104183458.2518-1-adrian.ratiu@ni.com> (raw)
The isohybrid plugin uses grub-mkimage but doesn't make sure it gets built.
Add a check to avoid the following error:
Error: A native program grub-mkimage required to build the image was not found (see details above).
Wic failed to find a recipe to build native grub-mkimage. Please file a bug against wic.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
---
scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 3858fd439b..9c408d046f 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -242,6 +242,11 @@ class IsoImagePlugin(SourcePlugin):
msger.info("Building mtools-native...\n")
exec_cmd("bitbake mtools-native")
+ # Make sure grub-mkconfig is available in native sysroot
+ if not os.path.isfile("%s/usr/bin/grub-mkimage" % native_sysroot):
+ msger.info("Building grub-native...\n")
+ exec_cmd("bitbake grub-native")
+
@classmethod
def do_configure_partition(cls, part, source_params, creator, cr_workdir,
oe_builddir, bootimg_dir, kernel_dir,
--
2.11.0
reply other threads:[~2017-01-04 18:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170104183458.2518-1-adrian.ratiu@ni.com \
--to=adrian.ratiu@ni.com \
--cc=ken.sharp@ni.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox