aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>2017-12-22 02:20:42 +0100
committerDominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>2017-12-22 02:20:42 +0100
commit2cec27cbd9c2ae84140ed678bb4e110a46f4a817 (patch)
tree286e29de4d7075b965e69b9b2e0b7c0fcfadfdc7 /scripts
parent2c7cf28a8b9297648ff195d70cd3b410dff4086b (diff)
adding copying of microcode.cpio if present
Change-Id: Ia1903d6e5906f3353ba1ad1f9c259865bf507330 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkefi-agl.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mkefi-agl.sh b/scripts/mkefi-agl.sh
index 43a0c3e7f..f2480e2e3 100755
--- a/scripts/mkefi-agl.sh
+++ b/scripts/mkefi-agl.sh
@@ -415,10 +415,14 @@ if [ -f $HDDIMG_MNT/vmlinuz ]; then
debug "kernel is vmlinuz"
fi
if [ -f $HDDIMG_MNT/bzimage ]; then
- cp $HDDIMG_MNT/bzimage $BOOTFS_MNT 1>&3 2>&1 || die "Failed to copy vmlinuz"
+ cp $HDDIMG_MNT/bzimage $BOOTFS_MNT 1>&3 2>&1 || die "Failed to copy bzimage"
KERNEL_TYPE="BZIMAGE"
debug "kernel is bzimage"
fi
+if [ -f $HDDIMG_MNT/microcode.cpio ]; then
+ cp $HDDIMG_MNT/microcode.cpio $BOOTFS_MNT 1>&3 2>&1 || die "Failed to copy microcode.cpio"
+ debug "microcode.cpio copied"
+fi
[ -z $KERNEL_TYPE ] && die "Linux kernel type in $HDDIMG is unsupported"
if [ -f $HDDIMG_MNT/initrd ]