meta-intel: Include and deploy a startup.nsh file 01/11101/3
authorTom Rini <trini@konsulko.com>
Tue, 3 Oct 2017 22:12:08 +0000 (18:12 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 9 Oct 2017 21:23:48 +0000 (21:23 +0000)
On EFI systems we need to include a startup.nsh file that EFI will load
and run, in the case of not having the device we're booting from be
defined in the boot order.  We have the kernel provide this as it is
independent of boot loader.

Bug-AGL: SPEC-898
Change-Id: Ifdf615e78012e2dbcbd87ee97e4c9d9a19ea01fc
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11101
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/meta-intel/recipes-kernel/linux/files/startup.nsh [new file with mode: 0644]
meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-intel_4.9%.bbappend

diff --git a/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/startup.nsh b/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/startup.nsh
new file mode 100644 (file)
index 0000000..3374624
--- /dev/null
@@ -0,0 +1 @@
+fs0:EFI\BOOT\BOOTx64.EFI\r
index d524ebf..8b490f7 100644 (file)
@@ -10,3 +10,10 @@ KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/extra-graphic-devices.cfg"
 
 # Enable support for usb video class for usb camera devices
 KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/uvc.cfg"
+
+# Ensure we have a startup.nsh file
+SRC_URI_append = " file://startup.nsh"
+
+do_deploy_append() {
+       install -m 0755 ${WORKDIR}/startup.nsh ${DEPLOYDIR}/
+}