mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
libevas: refactor *_CONF_OPT assignment with cpu-feature options
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7fed07d3a4
commit
8d74cc7b88
@ -115,23 +115,23 @@ LIBEVAS_CONF_OPT += --enable-gl-flavor-gles --enable-gles-variety-s3c6410
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# code options
|
# code options
|
||||||
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
||||||
# defaults
|
|
||||||
LIBEVAS_CONF_OPT += --disable-cpu-mmx --disable-cpu-sse --disable-cpu-sse3
|
|
||||||
|
|
||||||
# enable if cpu variant has mmx support
|
|
||||||
ifneq ($(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_i686)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
|
|
||||||
LIBEVAS_CONF_OPT += --enable-cpu-mmx
|
LIBEVAS_CONF_OPT += --enable-cpu-mmx
|
||||||
|
else
|
||||||
|
LIBEVAS_CONF_OPT += --disable-cpu-mmx
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_x86_pentium_mmx)$(BR2_x86_pentium2)$(BR2_x86_k6)$(BR2_x86_k6_2)$(BR2_x86_athlon)$(BR2_x86_c3)$(BR2_x86_winchip_c6)$(BR2_x86_winchip2),y)
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
||||||
LIBEVAS_CONF_OPT += --enable-cpu-sse
|
LIBEVAS_CONF_OPT += --enable-cpu-sse
|
||||||
|
else
|
||||||
|
LIBEVAS_CONF_OPT += --disable-cpu-sse
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_x86_pentium3)$(BR2_x86_pentium4)$(BR2_x86_prescott)$(BR2_x86_athlon_4)$(BR2_x86_opteron)$(BR2_x86_c32)$(BR2_x86_64_opteron),y)
|
ifeq ($(BR2_X86_CPU_HAS_SSE3),y)
|
||||||
LIBEVAS_CONF_OPT += --enable-cpu-sse3
|
LIBEVAS_CONF_OPT += --enable-cpu-sse3
|
||||||
endif # sse3
|
else
|
||||||
endif # sse
|
LIBEVAS_CONF_OPT += --disable-cpu-sse3
|
||||||
endif # mmx
|
endif
|
||||||
endif # x86
|
|
||||||
|
|
||||||
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
|
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
|
||||||
LIBEVAS_CONF_OPT += --enable-cpu-altivec
|
LIBEVAS_CONF_OPT += --enable-cpu-altivec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user