diff options
| -rw-r--r-- | meta/recipes-core/ovmf/ovmf_git.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 834ee32466..7944ee97d4 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb | |||
| @@ -217,6 +217,7 @@ FILES_ovmf-shell-efi = " \ | |||
| 217 | 217 | ||
| 218 | DEPLOYDEP = "" | 218 | DEPLOYDEP = "" |
| 219 | DEPLOYDEP_class-target = "qemu-system-native:do_populate_sysroot" | 219 | DEPLOYDEP_class-target = "qemu-system-native:do_populate_sysroot" |
| 220 | DEPLOYDEP_class-target += " ${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'openssl-native:do_populate_sysroot', '', d)}" | ||
| 220 | do_deploy[depends] += "${DEPLOYDEP}" | 221 | do_deploy[depends] += "${DEPLOYDEP}" |
| 221 | 222 | ||
| 222 | do_deploy() { | 223 | do_deploy() { |
| @@ -232,6 +233,13 @@ do_deploy_class-target() { | |||
| 232 | ; do | 233 | ; do |
| 233 | qemu-img convert -f raw -O qcow2 ${WORKDIR}/ovmf/$i.fd ${DEPLOYDIR}/$i.qcow2 | 234 | qemu-img convert -f raw -O qcow2 ${WORKDIR}/ovmf/$i.fd ${DEPLOYDIR}/$i.qcow2 |
| 234 | done | 235 | done |
| 236 | |||
| 237 | if ${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'true', 'false', d)}; then | ||
| 238 | # Create a test Platform Key and first Key Exchange Key to use with EnrollDefaultKeys | ||
| 239 | openssl req -new -x509 -newkey rsa:2048 -keyout ${DEPLOYDIR}/OvmfPkKek1.key \ | ||
| 240 | -out ${DEPLOYDIR}/OvmfPkKek1.crt -nodes -days 20 -subj "/CN=OVMFSecBootTest" | ||
| 241 | openssl x509 -in ${DEPLOYDIR}/OvmfPkKek1.crt -out ${DEPLOYDIR}/OvmfPkKek1.pem -outform PEM | ||
| 242 | fi | ||
| 235 | } | 243 | } |
| 236 | addtask do_deploy after do_compile before do_build | 244 | addtask do_deploy after do_compile before do_build |
| 237 | 245 | ||
