openwrtv3/package
Jo-Philipp Wich 3f5e39e960 zlib: only enable NEON optimizations on eligible targets
Instead of inferring the availability of NEON support from the target
optimization flags, use a preprocessor test to decide whether to enable
ARMv8 NEON optimizations.

Fixes the following build error spotted by the mediatek/32 buildbot:

    [ 26%] Building C object CMakeFiles/zlib.dir/contrib/arm/inflate.o
    In file included from .../zlib-1.2.11/contrib/arm/chunkcopy.h:10:0,
                     from .../zlib-1.2.11/contrib/arm/inflate.c:87:
    .../arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
     #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
      ^
    In file included from .../zlib-1.2.11/contrib/arm/inflate.c:87:0:
    .../zlib-1.2.11/contrib/arm/chunkcopy.h:18:9: error: unknown type name 'uint8x16_t'
     typedef uint8x16_t chunkcopy_chunk_t;
             ^
    [...]
    CMakeFiles/zlib.dir/build.make:302: recipe for target 'CMakeFiles/zlib.dir/contrib/arm/inflate.o' failed

Fixes: 3acecba520 "package/libs/zlib: Add ARM and NEON optimizations"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-07 12:33:47 +01:00
..
base-files base-files: protect stop and reload actions with procd_lock 2018-01-02 07:52:57 +01:00
boot layerscape: fix package download 2017-12-21 10:02:16 +01:00
devel strace: Update to 4.20 2017-12-07 11:46:37 +08:00
firmware layerscape: add byte_swap.py script for ls-rcw package 2017-12-26 23:30:59 +01:00
kernel kernel: make uas work during early boot 2018-01-02 14:29:04 +01:00
libs zlib: only enable NEON optimizations on eligible targets 2018-01-07 12:33:47 +01:00
network hostapd: set group_mgmt_cipher when ieee80211w is enabled 2018-01-07 12:33:47 +01:00
system opkg: switch source url to git.openwrt.org 2018-01-04 13:44:42 +01:00
utils lua: clean up patch fuzz 2018-01-05 10:42:34 +01:00
Makefile build: cleanup tmp/ dir of target rootfs 2017-05-02 22:10:50 +08:00