utils/genrandconfig: add DTS cuimage fixup

If we don't have a DTS name or path we need to also disable cuimage
to disable DTS support as BR2_LINUX_KERNEL_CUIMAGE requires DTS
support.

Fixes:
linux/linux.mk:591: *** No kernel device tree source specified, check your BR2_LINUX_KERNEL_INTREE_DTS_NAME / BR2_LINUX_KERNEL_CUSTOM_DTS_PATH settings.  Stop.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
James Hilliard 2022-05-02 20:31:17 -06:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent ac05c0d68d
commit fcca757443

View File

@ -385,6 +385,9 @@ def fixup_config(sysinfo, configfile):
if 'BR2_LINUX_KERNEL_APPENDED_ZIMAGE=y\n' in configlines:
configlines.remove('BR2_LINUX_KERNEL_APPENDED_ZIMAGE=y\n')
configlines.append('BR2_LINUX_KERNEL_ZIMAGE=y\n')
if 'BR2_LINUX_KERNEL_CUIMAGE=y\n' in configlines:
configlines.remove('BR2_LINUX_KERNEL_CUIMAGE=y\n')
configlines.append('BR2_LINUX_KERNEL_UIMAGE=y\n')
if 'BR2_LINUX_KERNEL_SIMPLEIMAGE=y\n' in configlines:
configlines.remove('BR2_LINUX_KERNEL_SIMPLEIMAGE=y\n')
configlines.append('BR2_LINUX_KERNEL_VMLINUX=y\n')