Skip to content

Instantly share code, notes, and snippets.

@mfleming
Created July 16, 2014 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfleming/3a22a98754ca5ad63315 to your computer and use it in GitHub Desktop.
Save mfleming/3a22a98754ca5ad63315 to your computer and use it in GitHub Desktop.
biosdir fixup
diff --git a/scripts/runqemu b/scripts/runqemu
index b1d2d1a..aa8a8b9 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -494,13 +494,13 @@ fi
# Specify directory for BIOS, VGA BIOS and keymaps
if [ ! -z "$CUSTOMBIOSDIR" ]; then
- if [ -d "$OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR" ]; then
- echo "Assuming biosdir is $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR"
- SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -L $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR"
+ if [ -d "$OE_TMPDIR/sysroots/$MACHINE/$CUSTOMBIOSDIR" ]; then
+ echo "Assuming biosdir is $OE_TMPDIR/sysroots/$MACHINE/$CUSTOMBIOSDIR"
+ SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -L $OE_TMPDIR/sysroots/$MACHINE/$CUSTOMBIOSDIR"
else
if [ ! -d "$CUSTOMBIOSDIR" ]; then
echo "Custom BIOS directory not found. Tried: $CUSTOMBIOSDIR"
- echo "and $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR"
+ echo "and $OE_TMPDIR/sysroots/$MACHINE/$CUSTOMBIOSDIR"
exit 1;
fi
echo "Assuming biosdir is $CUSTOMBIOSDIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment