utils/genrandconfig: disallow configs with BR2_XTENSA_CUSTOM=y

When BR2_XTENSA_CUSTOM=y is used with the internal toolchain, an
overlay file is mandatory, which genrandconfig can't provide. So we
simply disallow such configurations.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit c81da5e41c)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Thomas Petazzoni 2022-11-11 22:57:59 +01:00 committed by Peter Korsgaard
parent 19a07fbe5f
commit 868734d040

View File

@ -304,6 +304,11 @@ def fixup_config(sysinfo, configfile):
# No C library for internal toolchain
if 'BR2_TOOLCHAIN_BUILDROOT_NONE=y' in configlines:
return False
# Xtensa custom cores require an overlay file with internal
# toolchains
if 'BR2_XTENSA_CUSTOM=y' in configlines and \
'BR2_TOOLCHAIN_BUILDROOT=y' in configlines:
return False
if 'BR2_PACKAGE_AUFS_UTIL=y\n' in configlines and \
'BR2_PACKAGE_AUFS_UTIL_VERSION=""\n' in configlines: