summaryrefslogtreecommitdiff
path: root/package/jpeg-turbo
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2016-12-11 16:52:17 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-11 18:21:53 +0100
commit6c5ff61a6aa1b81ee1ca4e54f16fe97a8f56aeac (patch)
treec527520fa52f5c6463fc3196cf12f6d857f5fa7b /package/jpeg-turbo
parentb965cfc9f4f8474bf35976e458916a85fb972b5e (diff)
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-turbo')
-rw-r--r--package/jpeg-turbo/jpeg-turbo.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/jpeg-turbo/jpeg-turbo.mk b/package/jpeg-turbo/jpeg-turbo.mk
index c3de04af7e..e2b7e63b9a 100644
--- a/package/jpeg-turbo/jpeg-turbo.mk
+++ b/package/jpeg-turbo/jpeg-turbo.mk
@@ -15,7 +15,7 @@ JPEG_TURBO_DEPENDENCIES = host-pkgconf
JPEG_TURBO_CONF_OPTS = --with-jpeg8
-ifeq ($(BR2_X86_CPU_HAS_MMX)$(BR2_ARM_CPU_HAS_NEON),y)
+ifeq ($(BR2_PACKAGE_JPEG_SIMD_SUPPORT),y)
JPEG_TURBO_CONF_OPTS += --with-simd
# x86 simd support needs nasm
JPEG_TURBO_DEPENDENCIES += $(if $(BR2_X86_CPU_HAS_MMX),host-nasm)