1config BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
2	bool
3	# see src/syscfg/
4	default y if \
5		BR2_aarch64	|| BR2_aarch64_be	|| \
6		BR2_arm		|| BR2_armeb		|| \
7		BR2_i386	|| BR2_mips		|| \
8		BR2_mipsel	|| BR2_mips64		|| \
9		BR2_mips64el	|| BR2_m68k		|| \
10		BR2_nios2	|| BR2_or1k		|| \
11		BR2_powerpc	|| BR2_powerpc64 	|| \
12		BR2_powerpc64le	|| BR2_RISCV_64		|| \
13		BR2_RISCV_32	|| BR2_s390x		|| \
14		BR2_sh4		|| BR2_sh4eb		|| \
15		BR2_sh4a	|| BR2_sh4aeb		|| \
16		BR2_sparc	|| BR2_sparc64		|| \
17		BR2_x86_64
18
19config BR2_PACKAGE_LIBGPG_ERROR
20	bool "libgpg-error"
21	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
22	help
23	  Libgpg-error is a small library with error codes and
24	  descriptions shared by most GnuPG related software.
25
26	  https://www.gnupg.org/related_software/libgpg-error
27
28config BR2_PACKAGE_LIBGPG_ERROR_SYSCFG
29	string
30	default "aarch64-unknown-linux-gnu" \
31		if BR2_aarch64 || BR2_aarch64_be
32	default "arm-unknown-linux-gnueabi" \
33		if BR2_arm || BR2_armeb
34	default "i686-pc-linux-gnu" \
35		if BR2_i386
36	default "mips-unknown-linux-gnu" \
37		if BR2_mips || BR2_mipsel
38	default "mips64el-unknown-linux-gnuabi64" \
39		if BR2_mips64 || BR2_mips64el
40	default "m68k-unknown-linux-gnu" \
41		if BR2_m68k
42	default "nios2-unknown-linux-gnu" \
43		if BR2_nios2
44	default "or1k-unknown-linux-gnu" \
45		if BR2_or1k
46	default "powerpc-unknown-linux-gnu" \
47		if BR2_powerpc
48	default "powerpc64-unknown-linux-gnu" \
49		if BR2_powerpc64 || BR2_powerpc64le
50	default "riscv32-unknown-linux-gnu" \
51		if BR2_RISCV_32
52	default "riscv64-unknown-linux-gnu" \
53		if BR2_RISCV_64
54	default "s390x-unknown-linux-gnu" \
55		if BR2_s390x
56	default "sh4-unknown-linux-gnu" \
57		if BR2_sh4 || BR2_sh4eb || BR2_sh4a || BR2_sh4aeb
58	default "sparc-unknown-linux-gnu" \
59		if BR2_sparc
60	default "sparc64-unknown-linux-gnu" \
61		if BR2_sparc64
62	default "x86_64-unknown-linux-gnu" \
63		if BR2_x86_64
64