FIT_GENERATE_KEYS = "1"
UBOOT_SIGN_ENABLE = "1"
+FIT_SIGN_INDIVIDUAL = "0"
FIT_DESC ?= "Kernel fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"
FIT_CONF_PREFIX ?= "conf-"
fitimage_emit_section_kernel() {
- kernel_csum="crc32"
+ kernel_csum="${FIT_HASH_ALG}"
kernel_sign_algo="${FIT_SIGN_ALG}"
kernel_sign_keyname="${UBOOT_SIGN_IMG_KEYNAME}"
sed -i '$ d' $1
cat << EOF >> $1
signature-1 {
- algo = "$kernel_csum,$kernel_sign_algo";
+ algo = "$kernel_csum,$kernel_sign_algo";
key-name-hint = "$kernel_sign_keyname";
};
};
fitimage_emit_section_dtb() {
- dtb_csum="crc32"
+ dtb_csum="${FIT_HASH_ALG}"
dtb_sign_algo="${FIT_SIGN_ALG}"
dtb_sign_keyname="${UBOOT_SIGN_IMG_KEYNAME}"
sed -i '$ d' $1
cat << EOF >> $1
signature-1 {
- algo = "$dtb_csum,$dtb_sign_algo";
+ algo = "$dtb_csum,$dtb_sign_algo";
key-name-hint = "$dtb_sign_keyname";
};
};
fitimage_emit_section_ramdisk() {
- ramdisk_csum="crc32"
+ ramdisk_csum="${FIT_HASH_ALG}"
ramdisk_sign_algo="${FIT_SIGN_ALG}"
ramdisk_sign_keyname="${UBOOT_SIGN_IMG_KEYNAME}"
$kernel_line
$fdt_line
$ramdisk_line
- hash-1 {
- algo = "$conf_csum";
- };
EOF
if [ -n "$conf_sign_keyname" ] ; then
signature-1 {
algo = "$conf_csum,$conf_sign_algo";
key-name-hint = "$conf_sign_keyname";
+ sign-images = "fdt", "kernel", "ramdisk";
};
EOF
fi