powerpc: add BR2_POWERPC_CPU_HAS_ALTIVEC to replace adhoc deps/checks

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Cody P Schafer 2014-05-12 22:28:17 -07:00 committed by Peter Korsgaard
parent b4c824562b
commit 40e58dab0c
7 changed files with 12 additions and 18 deletions

View File

@ -1,3 +1,6 @@
config BR2_POWERPC_CPU_HAS_ALTIVEC
bool
config BR2_POWERPC_CPU_HAS_SPE config BR2_POWERPC_CPU_HAS_SPE
bool bool
@ -51,8 +54,10 @@ config BR2_powerpc_740
bool "740" bool "740"
config BR2_powerpc_7400 config BR2_powerpc_7400
bool "7400" bool "7400"
select BR2_POWERPC_CPU_HAS_ALTIVEC
config BR2_powerpc_7450 config BR2_powerpc_7450
bool "7450" bool "7450"
select BR2_POWERPC_CPU_HAS_ALTIVEC
config BR2_powerpc_750 config BR2_powerpc_750
bool "750" bool "750"
config BR2_powerpc_821 config BR2_powerpc_821
@ -63,6 +68,7 @@ config BR2_powerpc_860
bool "860" bool "860"
config BR2_powerpc_970 config BR2_powerpc_970
bool "970" bool "970"
select BR2_POWERPC_CPU_HAS_ALTIVEC
config BR2_powerpc_8540 config BR2_powerpc_8540
bool "8540 / e500v1" bool "8540 / e500v1"
select BR2_POWERPC_CPU_HAS_SPE select BR2_POWERPC_CPU_HAS_SPE

View File

@ -136,7 +136,7 @@ else
LIBEVAS_CONF_OPT += --disable-cpu-sse3 LIBEVAS_CONF_OPT += --disable-cpu-sse3
endif endif
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y) ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
LIBEVAS_CONF_OPT += --enable-cpu-altivec LIBEVAS_CONF_OPT += --enable-cpu-altivec
else else
LIBEVAS_CONF_OPT += --disable-cpu-altivec LIBEVAS_CONF_OPT += --disable-cpu-altivec

View File

@ -299,14 +299,11 @@ FFMPEG_CONF_OPT += \
--disable-mipsdspr2 --disable-mipsdspr2
endif endif
# Set powerpc altivec appropriately ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
ifeq ($(BR2_powerpc),y)
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
FFMPEG_CONF_OPT += --enable-altivec FFMPEG_CONF_OPT += --enable-altivec
else else
FFMPEG_CONF_OPT += --disable-altivec FFMPEG_CONF_OPT += --disable-altivec
endif endif
endif
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_PREFER_STATIC_LIB),)
FFMPEG_CONF_OPT += --enable-pic FFMPEG_CONF_OPT += --enable-pic

View File

@ -63,14 +63,11 @@ ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
GST_FFMPEG_CONF_EXTRA_OPT += --enable-neon GST_FFMPEG_CONF_EXTRA_OPT += --enable-neon
endif endif
# Set powerpc altivec appropriately ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
ifeq ($(BR2_powerpc),y)
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
GST_FFMPEG_CONF_EXTRA_OPT += --enable-altivec GST_FFMPEG_CONF_EXTRA_OPT += --enable-altivec
else else
GST_FFMPEG_CONF_EXTRA_OPT += --disable-altivec GST_FFMPEG_CONF_EXTRA_OPT += --disable-altivec
endif endif
endif
ifeq ($(BR2_PREFER_STATIC_LIB),) ifeq ($(BR2_PREFER_STATIC_LIB),)
GST_FFMPEG_CONF_EXTRA_OPT += --enable-pic GST_FFMPEG_CONF_EXTRA_OPT += --enable-pic

View File

@ -71,14 +71,11 @@ else
GST1_LIBAV_CONF_EXTRA_OPT += --disable-vfp GST1_LIBAV_CONF_EXTRA_OPT += --disable-vfp
endif endif
# Set powerpc altivec appropriately ifeq ($(BR2_POWERPC_CPU_HASH_ALTIVEC),y)
ifeq ($(BR2_powerpc),y)
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
GST1_LIBAV_CONF_EXTRA_OPT += --enable-altivec GST1_LIBAV_CONF_EXTRA_OPT += --enable-altivec
else else
GST1_LIBAV_CONF_EXTRA_OPT += --disable-altivec GST1_LIBAV_CONF_EXTRA_OPT += --disable-altivec
endif endif
endif
GST1_LIBAV_CONF_OPT = \ GST1_LIBAV_CONF_OPT = \
--with-libav-extra-configure="$(GST1_LIBAV_CONF_EXTRA_OPT)" --with-libav-extra-configure="$(GST1_LIBAV_CONF_EXTRA_OPT)"

View File

@ -22,14 +22,12 @@ ifeq ($(BR2_i386),y)
MPG123_CPU = x86 MPG123_CPU = x86
endif endif
ifeq ($(BR2_powerpc),y) ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
ifneq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),)
MPG123_CPU = altivec MPG123_CPU = altivec
endif endif
ifeq ($(BR2_SOFT_FLOAT),y) ifeq ($(BR2_SOFT_FLOAT),y)
MPG123_CPU = ppc_nofpu MPG123_CPU = ppc_nofpu
endif endif
endif
ifeq ($(BR2_x86_64),y) ifeq ($(BR2_x86_64),y)
MPG123_CPU = x86-64 MPG123_CPU = x86-64

View File

@ -49,8 +49,7 @@ ifeq ($(BR2_PREFER_STATIC_LIB),)
VLC_CONF_OPT += --disable-static VLC_CONF_OPT += --disable-static
endif endif
# Set powerpc altivec appropriately ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
VCL_CONF_OPT += --enable-altivec VCL_CONF_OPT += --enable-altivec
else else
VLC_CONF_OPT += --disable-altivec VLC_CONF_OPT += --disable-altivec