mkinitfs: appends device tree to image even though it's not always used
For example on the Pinephone, we are loading the dtb from the boot script but still the vmlinuz-*-dtb image is being generated (and currently also being used for some reason).
If deviceinfo_dtb
has a value, it both appends the dtb file to the vmlinuz (e.g. zImage) file and also copies the dtb to the /boot
folder; but in the PinePhone use-case we only need the latter step. Doing that would also save (currently) 14.4MB of space.
One other thing I don't quite understand is, why we have the cp "$kernel" "${kernel}-dtb"
statement that gets run when there's no dtb file - is something using the -dtb variant of the vmlinuz file on downstream kernels?
One thing I nearly forgot is that we have this soft-fail because we had issues when a device has both downstream and upstream kernels, which is not making things less complicated