diff options
| author | Peter Korsgaard <peter@korsgaard.com> | 2016-12-11 16:52:17 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-12-11 18:21:53 +0100 |
| commit | 6c5ff61a6aa1b81ee1ca4e54f16fe97a8f56aeac (patch) | |
| tree | c527520fa52f5c6463fc3196cf12f6d857f5fa7b /package/jpeg | |
| parent | b965cfc9f4f8474bf35976e458916a85fb972b5e (diff) | |
| download | buildroot-6c5ff61a6aa1b81ee1ca4e54f16fe97a8f56aeac.tar.gz buildroot-6c5ff61a6aa1b81ee1ca4e54f16fe97a8f56aeac.zip | |
jpeg: rework jpeg-turbo simd support handling
In preperation for adding more architectures to the jpeg-turbo simd
handling, introduce a hidden BR2_PACKAGE_JPEG_SIMDS_SUPPORT symbol and use
that to enable simd support and default to jpeg-turbo, instead of open
coding it in both places.
While we are at it, reword the help text to be more useful.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/jpeg')
| -rw-r--r-- | package/jpeg/Config.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/package/jpeg/Config.in b/package/jpeg/Config.in index f337aeb956..170e58c5d9 100644 --- a/package/jpeg/Config.in +++ b/package/jpeg/Config.in @@ -3,13 +3,18 @@ config BR2_PACKAGE_JPEG help Select the desired JPEG library provider. +# jpeg-turbo has simd support for some architectures +config BR2_PACKAGE_JPEG_SIMD_SUPPORT + bool + default y if BR2_X86_CPU_HAS_MMX || BR2_ARM_CPU_HAS_NEON + if BR2_PACKAGE_JPEG choice prompt "jpeg variant" - default BR2_PACKAGE_JPEG_TURBO if (BR2_X86_CPU_HAS_MMX || BR2_ARM_CPU_HAS_NEON) + default BR2_PACKAGE_JPEG_TURBO if BR2_PACKAGE_JPEG_SIMD_SUPPORT help - Select the older stable version, or the newer developer version + Select the normal libjpeg or libjpeg-turbo. config BR2_PACKAGE_LIBJPEG bool "jpeg" |

