do_keys() {
# create directory
install -d ${KEYS_OUTDIR}
openssl genrsa -out ${KEYS_OUTDIR}/uboot_sign.key 4096
openssl req -batch -new -x509 -key ${KEYS_OUTDIR}/uboot_sign.key -out ${KEYS_OUTDIR}/uboot_sign.crt
}
addtask keys before do_bundle_initramfs_dtb
do_bundle_initramfs_dtb[prefuncs] += " do_keys"
ZG9fa2V5cygpIHsKICAjIGNyZWF0ZSBkaXJlY3RvcnkKICBpbnN0YWxsIC1kICR7S0VZU19PVVRESVJ9CiAgb3BlbnNzbCBnZW5yc2EgLW91dCAke0tFWVNfT1VURElSfS91Ym9vdF9zaWduLmtleSA0MDk2CiAgb3BlbnNzbCByZXEgLWJhdGNoIC1uZXcgLXg1MDkgLWtleSAke0tFWVNfT1VURElSfS91Ym9vdF9zaWduLmtleSAtb3V0ICR7S0VZU19PVVRESVJ9L3Vib290X3NpZ24uY3J0Cn0KYWRkdGFzayBrZXlzIGJlZm9yZSBkb19idW5kbGVfaW5pdHJhbWZzX2R0YgoKZG9fYnVuZGxlX2luaXRyYW1mc19kdGJbcHJlZnVuY3NdICs9ICIgZG9fa2V5cyIK