Skip to content

Commit

Permalink
ffmpeg: Ensure correct arch gets passed to ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 3, 2020
1 parent db8de95 commit 1fe55ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/depends/target/ffmpeg/Makefile
Expand Up @@ -28,8 +28,13 @@ ffmpg_config += --enable-encoder=png --enable-encoder=mjpeg
ffmpg_config += --enable-libdav1d
ffmpg_config += $(FFMPEG_CONFIGURE_OPTIONS)

ARCH = $(CPU)
ifeq ($(CPU), cortex-a7)
ARCH = arm
endif

ifeq ($(CROSS_COMPILING), yes)
ffmpg_config += --arch=$(CPU) --enable-cross-compile
ffmpg_config += --arch=$(ARCH) --enable-cross-compile
endif
ifeq ($(OS), linux)
ffmpg_config += --target-os=$(OS)
Expand Down Expand Up @@ -73,7 +78,7 @@ ifeq ($(Configuration), Release)
ffmpg_config += --disable-debug
endif

ffmpg_config += --enable-rpi
ffmpg_config += --enable-rpi --extra-cflags=-mfpu=neon

all: .installed-$(PLATFORM)

Expand Down

0 comments on commit 1fe55ea

Please sign in to comment.