]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Force ffmpeg to use correct architecture with cross-compile mode
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Mon, 3 Nov 2025 15:26:38 +0000 (15:26 +0000)
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Mon, 3 Nov 2025 15:26:38 +0000 (15:26 +0000)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Makefile.ffmpeg

index b8e1076d7edb033fc0b18cf9f0f32412a25da81b..dadd0076cb0c1b095f3b25453398eeae26db42c1 100644 (file)
@@ -27,11 +27,13 @@ endif
 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
@@ -186,7 +188,7 @@ CONFIGURE := FFMPEG_PREFIX=$(EPREFIX) \
 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