diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-02-14 12:56:58 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-02-14 13:00:25 +0100 |
commit | 243d849d35b10acd7fc23df5ba504c6c11195b37 (patch) | |
tree | 4d77749fc432ebac3348473009457427525ba4ca /rules/libjpeg.make | |
parent | 67f71cb6e4c6841b9ff887d8db37a98274ed67ac (diff) | |
download | ptxdist-243d849d35b10acd7fc23df5ba504c6c11195b37.tar.gz ptxdist-243d849d35b10acd7fc23df5ba504c6c11195b37.tar.xz |
libjpeg: fix SIMD handling
- nasm is needed for x86
- simd on ARM needs NEON
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libjpeg.make')
-rw-r--r-- | rules/libjpeg.make | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rules/libjpeg.make b/rules/libjpeg.make index 01c872de0..19a5e6e10 100644 --- a/rules/libjpeg.make +++ b/rules/libjpeg.make @@ -34,6 +34,15 @@ LIBJPEG_LICENSE_FILES := \ # Prepare # ---------------------------------------------------------------------------- + +LIBJPEG_SIMD := +ifdef PTXCONF_ARCH_X86 +LIBJPEG_SIMD := y +endif +ifdef PTXCONF_ARCH_ARM_NEON +LIBJPEG_SIMD := y +endif + LIBJPEG_CONF_TOOL := autoconf LIBJPEG_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ @@ -46,7 +55,7 @@ LIBJPEG_CONF_OPT := \ --without-turbojpeg \ --without-java \ --without-gas-preprocessor \ - --with-simd + --$(call ptx/wwo, LIBJPEG_SIMD)-simd # ---------------------------------------------------------------------------- # Target-Install |