[OpenWrt-Devel] [PATCH] target: bump minimum CPU type to pentium-mmx

Hauke Mehrtens hauke at hauke-m.de
Sat Feb 22 09:13:38 EST 2020


On 1/12/20 5:44 AM, Rosen Penev wrote:
> f4f8f4a180366ee90fd8e153213db2cb746ca361 broke ffmpeg compilation with x86
> 
> The reason is that ffmpeg's x86 assembly requires at least MMX, which the
> pentium CPU_TYPE was preventing.

As far as I understand it MMX is already needed and you just want to
rename the toolchain from pentium to pentium_mmx, is this correct?

> 
> Fixes ffmpeg compilation on x86_legacy and x86_geode.
> 
> Signed-off-by: Rosen Penev <rosenp at gmail.com>
> ---
>  include/target.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/target.mk b/include/target.mk
> index a813ba2d2d..a30400c5bc 100644
> --- a/include/target.mk
> +++ b/include/target.mk
> @@ -177,8 +177,8 @@ ifeq ($(DUMP),1)
>      CPU_CFLAGS_octeonplus = -march=octeon+ -mabi=64
>    endif
>    ifeq ($(ARCH),i386)
> -    CPU_TYPE ?= pentium
> -    CPU_CFLAGS_pentium = -march=pentium-mmx
> +    CPU_TYPE ?= pentium-mmx
> +    CPU_CFLAGS_pentium-mmx = -march=pentium-mmx
>      CPU_CFLAGS_pentium4 = -march=pentium4
>    endif
>    ifneq ($(findstring arm,$(ARCH)),)
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200222/9bb42268/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list