utils/genrandconfig: prevent selecting libffi on nds32
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Apr 2019 19:17:42 +0000 (21:17 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Apr 2019 19:17:42 +0000 (21:17 +0200)
libffi does not have support for the nds32 architecture, so let's
disallow libffi on this CPU architecture for the moment.

Fixes:

  http://autobuild.buildroot.net/results/12803a705586e82fdfb49013da2eb3b9879ccd45/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/genrandconfig

index 6cb1bed2140907e0cb462f07c7e1a128acfd26dc..5f3fe232604151c04506914a6b37166e67fd90ad 100755 (executable)
@@ -264,6 +264,9 @@ def fixup_config(configfile):
     if 'BR2_ARM_CPU_ARMV7M=y\n' in configlines and \
        'BR2_PACKAGE_LIBFFI=y\n' in configlines:
         return False
+    if 'BR2_nds32=y\n' in configlines and \
+       'BR2_PACKAGE_LIBFFI=y\n' in configlines:
+        return False
     if 'BR2_PACKAGE_SUNXI_BOARDS=y\n' in configlines:
         configlines.remove('BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE=""\n')
         configlines.append('BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a10/hackberry.fex"\n')