package/flashrom: add BR2_PACKAGE_FLASHROM_ARCH_SUPPORTS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 7 Mar 2019 22:08:24 +0000 (23:08 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 7 Mar 2019 22:15:34 +0000 (23:15 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/22c72369cd5b7a8200bb03564bdc342ed026ccac
 - http://autobuild.buildroot.org/results/ef6869bc40382145fad1079b79107275c4973494
 - http://autobuild.buildroot.org/results/09d857102c469ede1db0bff8aa0dcd82a4001eaf

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Thomas: change formatting of new option.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/flashrom/Config.in

index cf1f53c1a308636fca477c11efd7cea38062ed31..c333c2973072a5785f24588a8dc986f77025b5af 100644 (file)
@@ -1,6 +1,18 @@
+config BR2_PACKAGE_FLASHROM_ARCH_SUPPORTS
+       bool
+       default y if BR2_aarch64 || BR2_aarch64_be
+       default y if BR2_arm || BR2_armeb
+       default y if BR2_i386 || BR2_x86_64
+       default y if BR2_m68k
+       default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
+       default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
+       default y if BR2_riscv
+       default y if BR2_sh
+       default y if BR2_sparc || BR2_sparc64
+
 config BR2_PACKAGE_FLASHROM
        bool "flashrom"
-       depends on !BR2_microblaze && !BR2_xtensa # platform.h
+       depends on BR2_PACKAGE_FLASHROM_ARCH_SUPPORTS
        help
          flashrom is a utility for identifying, reading, writing,
          verifying and erasing flash chips. It is designed to flash