summaryrefslogtreecommitdiffstats
path: root/recipes-selftest/images/secureboot-selftest-image-unsigned.bb
blob: e03e7b4791e7652d92575827a020bb5e604601a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require recipes-core/images/core-image-minimal.bb

DEPENDS_remove = "grub-efi"

inherit uefi-comboapp

WKS_FILE = "generic-bootdisk.wks.in"

do_uefiapp_deploy_append() {
    for i in ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.boot*.efi; do
        target=`basename $i`
        target=`echo $target | sed -e 's/${IMAGE_LINK_NAME}.//'`

        cat > ${IMAGE_ROOTFS}/boot/startup.nsh << EOF
$target
reset
EOF
    break
    done
}