]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
fix ffmpeg
authorMarkham <markham001@gmx.de>
Sat, 13 Jul 2024 18:13:12 +0000 (20:13 +0200)
committerMarkham <markham001@gmx.de>
Sat, 13 Jul 2024 18:13:12 +0000 (20:13 +0200)
make/environment-build.mk
make/ffmpeg.mk
make/ffmpeg6.mk

index dba3f56fdca7e9f43644176a5fafc9622e518de0..b390e5558a60b2d6b6ef7a814f912779ad62b4b3 100755 (executable)
@@ -125,13 +125,13 @@ else ifeq ($(BOXSERIES), hd2)
 else ifeq ($(BOXSERIES),$(filter $(BOXSERIES), hd5x hd6x))
   CORTEX-STRINGS         = -lcortex-strings
   TARGET                 = arm-cortex-linux-gnueabihf
-  TARGET_O_CFLAGS        = -O2
+  TARGET_O_CFLAGS        = -O2 -flto
   TARGET_ARCH            = arm
   TARGET_CPU             = armv7ve
   TARGET_ABI             = -march=$(TARGET_CPU) -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard
   TARGET_ENDIAN          = little
   TARGET_EXTRA_CFLAGS    = -Wno-implicit-function-declaration
-  TARGET_EXTRA_LDFLAGS   =
+  TARGET_EXTRA_LDFLAGS   = -flto
   CXX11_ABI              =
 
 else
index 0495f3640ba91847b8c514e58963f5ffcda60930..b9db5bc6a2da43b534dc5b7099b456b097b7fc9a 100644 (file)
@@ -524,7 +524,11 @@ ffmpeg-coolstream: $(ARCHIVE)/ffmpeg-$(FFMPEG_VER).tar.xz | $(TARGETPREFIX)
                        echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
                        patch -p1 < $$i; \
                done; \
-               $(BUILDENV_NO_LTO) \
+               if [ "$(BOXSERIES)" = "hd1" ]; then \
+                       $(BUILDENV_NO_LTO); \
+               else \
+                       $(BUILDENV); \
+               fi; \
                ./configure \
                        $(FFMPEG_CONFIGURE) \
                        $(FFMPEG_CONF_OPTS); \
@@ -548,7 +552,11 @@ ffmpeg-coolstream-3.3: $(ARCHIVE)/ffmpeg-git-$(FFMPEG_GIT).tar.gz | $(TARGETPREF
                        echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
                        patch -p1 < $$i; \
                done; \
-               $(BUILDENV) \
+               if [ "$(BOXSERIES)" = "hd1" ]; then \
+                       $(BUILDENV_NO_LTO); \
+               else \
+                       $(BUILDENV); \
+               fi; \
                ./configure \
                        $(FFMPEG_CONFIGURE) \
                        $(FFMPEG_CONF_OPTS); \
index 1ea084c69adff14f8f71e2b009b41214aaca5dd8..fb54664ccc8929cbff71e8308c90c0082d449603 100644 (file)
@@ -512,7 +512,7 @@ ffmpeg-armbox: $(ARCHIVE)/ffmpeg-$(FFMPEG_VER).tar.xz | $(TARGETPREFIX)
                        echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
                        patch -p1 < $$i; \
                done; \
-               $(BUILDENV_NO_LTO) \
+               $(BUILDENV) \
                ./configure \
                        $(FFMPEG_CONFIGURE) \
                        $(FFMPEG_CONF_OPTS); \
@@ -536,7 +536,11 @@ ffmpeg-coolstream: $(ARCHIVE)/ffmpeg-$(FFMPEG_VER).tar.xz | $(TARGETPREFIX)
                        echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
                        patch -p1 < $$i; \
                done; \
-               $(BUILDENV_NO_LTO) \
+               if [ "$(BOXSERIES)" = "hd1" ]; then \
+                       $(BUILDENV_NO_LTO); \
+               else \
+                       $(BUILDENV); \
+               fi; \
                ./configure \
                        $(FFMPEG_CONFIGURE) \
                        $(FFMPEG_CONF_OPTS); \
@@ -560,7 +564,11 @@ ffmpeg-coolstream-3.3: $(ARCHIVE)/ffmpeg-git-$(FFMPEG_GIT).tar.gz | $(TARGETPREF
                        echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
                        patch -p1 < $$i; \
                done; \
-               $(BUILDENV) \
+               if [ "$(BOXSERIES)" = "hd1" ]; then \
+                       $(BUILDENV_NO_LTO); \
+               else \
+                       $(BUILDENV); \
+               fi; \
                ./configure \
                        $(FFMPEG_CONFIGURE) \
                        $(FFMPEG_CONF_OPTS); \