@@ -125,11 +125,11 @@ fitimage_emit_section_kernel() {
cat << EOF >> $1
kernel-$2 {
description = "Linux kernel";
- data = /incbin/("$3");
type = "${UBOOT_MKIMAGE_KERNEL_TYPE}";
+ compression = "$4";
+ data = /incbin/("$3");
arch = "${UBOOT_ARCH}";
os = "linux";
- compression = "$4";
load = <${UBOOT_LOADADDRESS}>;
entry = <$ENTRYPOINT>;
hash-1 {
@@ -174,10 +174,10 @@ fitimage_emit_section_dtb() {
cat << EOF >> $1
fdt-$2 {
description = "Flattened Device Tree blob";
- data = /incbin/("$3");
type = "flat_dt";
- arch = "${UBOOT_ARCH}";
compression = "none";
+ data = /incbin/("$3");
+ arch = "${UBOOT_ARCH}";
$dtb_loadline
hash-1 {
algo = "$dtb_csum";
@@ -212,10 +212,10 @@ fitimage_emit_section_boot_script() {
cat << EOF >> $1
bootscr-$2 {
description = "U-boot script";
- data = /incbin/("$3");
type = "script";
- arch = "${UBOOT_ARCH}";
compression = "none";
+ data = /incbin/("$3");
+ arch = "${UBOOT_ARCH}";
hash-1 {
algo = "$bootscr_csum";
};
@@ -249,11 +249,11 @@ fitimage_emit_section_setup() {
cat << EOF >> $1
setup-$2 {
description = "Linux setup.bin";
- data = /incbin/("$3");
type = "x86_setup";
+ compression = "none";
+ data = /incbin/("$3");
arch = "${UBOOT_ARCH}";
os = "linux";
- compression = "none";
load = <0x00090000>;
entry = <0x00090000>;
hash-1 {
@@ -298,11 +298,11 @@ fitimage_emit_section_ramdisk() {
cat << EOF >> $1
ramdisk-$2 {
description = "${INITRAMFS_IMAGE}";
- data = /incbin/("$3");
type = "ramdisk";
+ compression = "none";
+ data = /incbin/("$3");
arch = "${UBOOT_ARCH}";
os = "linux";
- compression = "none";
$ramdisk_loadline
$ramdisk_entryline
hash-1 {
@@ -509,11 +509,11 @@ class KernelFitImageTests(FitImageTestCase):
its_field_check = [
'description = "%s";' % bb_vars['FIT_DESC'],
'description = "Linux kernel";',
- 'data = /incbin/("linux.bin");',
'type = "' + str(bb_vars['UBOOT_MKIMAGE_KERNEL_TYPE']) + '";',
+ # 'compression = "' + str(bb_vars['FIT_KERNEL_COMP_ALG']) + '";', defined based on files in TMPDIR, not ideal...
+ 'data = /incbin/("linux.bin");',
'arch = "' + str(bb_vars['UBOOT_ARCH']) + '";',
'os = "linux";',
- # 'compression = "' + str(bb_vars['FIT_KERNEL_COMP_ALG']) + '";', defined based on files in TMPDIR, not ideal...
'load = <' + str(bb_vars['UBOOT_LOADADDRESS']) + '>;',
'entry = <' + str(bb_vars['UBOOT_ENTRYPOINT']) + '>;',
]