aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2015-11-28 09:43:02 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-07 13:40:06 +0000
commit51dc79d55d0985e64838a08d39a22e8cd3fcd59a (patch)
treeda5e67e18136f2b870c65563f5973ddcd6b9d929
parent58bb2d82f4f1b111641c480a27836be6119ee279 (diff)
downloadopenembedded-core-contrib-51dc79d55d0985e64838a08d39a22e8cd3fcd59a.tar.gz
mkefidisk.sh: add startup script for automated boot
Regardless of which image is built using which layers, try to ensure the image on the SD device being prepared is the one that is booted automatically when the board is powered. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-xscripts/contrib/mkefidisk.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index cd4de053369..1c11d1a6b68 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -438,6 +438,9 @@ if [ -d $ROOTFS_MNT/etc/udev/ ] ; then
echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist
fi
+# Add startup.nsh script for automated boot
+echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh
+
# Call cleanup to unmount devices and images and remove the TMPDIR
cleanup