opencomputeproject / onie

Open Network Install Environment
https://opencomputeproject.github.io/onie
Other
606 stars 376 forks source link

Problem in shim keys in install onie kvm_x85_64 #984

Closed mehran12623 closed 2 years ago

mehran12623 commented 2 years ago

when i compile onie kvm_x86_64 on release 2021.11br i have below error:

==== Building cross linux ====
make[1]: Entering directory '/home/mehran/Project/onie_kvm_x86_64/build/kvm_x86_64-r0/kernel/linux-5.4.86'
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
  CHK     include/generated/compile.h
make[2]: *** No rule to make target '/home/mehran/Project/onie_kvm_x86_64/encryption/machines/kvm_x86_64/keys/ONIE/efi-keys/ONIE-shim-key-cert.pem', needed by 'certs/signing_key.x509'.  Stop.
make[1]: *** [Makefile:1732: certs] Error 2
make[1]: Leaving directory '/home/mehran/Project/onie_kvm_x86_64/build/kvm_x86_64-r0/kernel/linux-5.4.86'
make: *** [make/kernel.make:116: /home/mehran/Project/onie_kvm_x86_64/build/kvm_x86_64-r0/stamp/kernel-build] Error 2

Can you please help me to fix this error?

mehran12623 commented 2 years ago

To do this, I first had to generate the keys, then compile them

make MACHINE=kvm_x86_64 signing-keys-generate
make MACHINE=kvm_x86_64 -j4 shim-self-sign