package/makedumpfile: add BR2_PACKAGE_MAKEDUMPFILE_ARCH_SUPPORTS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 6 Sep 2020 08:00:28 +0000 (10:00 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 6 Sep 2020 09:13:44 +0000 (11:13 +0200)
makedumpfile only defines KV_BASE in makedumpfile.h with the following
architectures:
 - aarch64
 - arm
 - x86
 - x86_64
 - powerpc32
 - powerpc64
 - s390
 - ia64
 - sparc64

Fixes:
 - http://autobuild.buildroot.org/results/0e20c17bd604ee1168cc379061c120a2d8263e5f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/makedumpfile/Config.in

index 8ae8579ceae27cfd0cbd94104d0bc3017d0032c2..a90ccbdf3c617ea44fb1d3cc55a4727cb639f92b 100644 (file)
@@ -1,9 +1,19 @@
+config BR2_PACKAGE_MAKEDUMPFILE_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_powerpc || BR2_powerpc64 || BR2_powerpc64le
+       default y if BR2_sparc64
+
 comment "makedumpfile needs a uClibc or glibc toolchain w/ wchar, dynamic library"
+       depends on BR2_PACKAGE_MAKEDUMPFILE_ARCH_SUPPORTS
        depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
                || !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
 
 config BR2_PACKAGE_MAKEDUMPFILE
        bool "makedumpfile"
+       depends on BR2_PACKAGE_MAKEDUMPFILE_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on !BR2_STATIC_LIBS # dlopen
        depends on BR2_USE_WCHAR