From fcca7574430a04f0b0c6aeecc5399f7758dfc38c Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 2 May 2022 20:31:17 -0600 Subject: [PATCH] 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 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- utils/genrandconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/genrandconfig b/utils/genrandconfig index 89ad53ca4c..60ef8739cc 100755 --- a/utils/genrandconfig +++ b/utils/genrandconfig @@ -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')