diff options
| author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-07 15:56:55 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-07 15:56:55 +0200 |
| commit | 7d299298b1c102eaaa9cfab1f0221829d5aeed1e (patch) | |
| tree | 9f5545aca3fb94f65a5fbf924e02cc93610e2550 | |
| parent | 744fa220bf7314729abb2778a23aa1d52aa28476 (diff) | |
| download | buildroot-7d299298b1c102eaaa9cfab1f0221829d5aeed1e.tar.gz buildroot-7d299298b1c102eaaa9cfab1f0221829d5aeed1e.zip | |
libseccomp: introduce BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
Instead of duplicating the architecture dependency between the main
option and the Config.in comment, add a
BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS hidden option.
This is done in preparation to enabling libseccomp on ARM.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| -rw-r--r-- | package/libseccomp/Config.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/package/libseccomp/Config.in b/package/libseccomp/Config.in index ddfe9f07c0..35317ad3ed 100644 --- a/package/libseccomp/Config.in +++ b/package/libseccomp/Config.in @@ -1,8 +1,13 @@ +config BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS + bool + default y if BR2_aarch64 + default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el + default y if BR2_i386 || BR2_x86_64 + default y if BR2_powerpc64 || BR2_powerpc + config BR2_PACKAGE_LIBSECCOMP bool "libseccomp" - depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \ - BR2_mips64el || BR2_i386 || BR2_x86_64 || BR2_powerpc64 || \ - BR2_powerpc + depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 help High level interface to the Linux Kernel's seccomp filter @@ -17,6 +22,5 @@ config BR2_PACKAGE_LIBSECCOMP https://github.com/seccomp/libseccomp comment "libseccomp needs a toolchain w/ headers >= 3.12" - depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \ - BR2_mips64el || BR2_i386 || BR2_x86_64 + depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 |

