Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
ifeq ($(ARCH),armhf)
FFMPEG_HOST := arm-linux-gnueabihf
FFMPEG_ARCH := armv7
+FFMPEG_CPU := armv7-a
endif
ifeq ($(ARCH),arm64)
FFMPEG_HOST := aarch64-linux-gnu
FFMPEG_ARCH := aarch64
+FFMPEG_CPU := armv8-a
endif
unexport CFLAGS
CONFIGURE_PI := CC="$(COMPILER) $(CFLAGS_PI)" $(CONFIGURE)
ifneq (,$(FFMPEG_ARCH))
-CONFIGURE_FFMPEG := $(CONFIGURE) --arch=$(FFMPEG_ARCH)
+CONFIGURE_FFMPEG := $(CONFIGURE) --arch=$(FFMPEG_ARCH) --cpu=$(FFMPEG_CPU) --target-os=linux --enable-cross-compile
else
CONFIGURE_FFMPEG := $(CONFIGURE)
endif