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
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); \
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); \
echo -e "==> $(TERM_RED)Applying Patch:$(TERM_NORMAL) $$i"; \
patch -p1 < $$i; \
done; \
- $(BUILDENV_NO_LTO) \
+ $(BUILDENV) \
./configure \
$(FFMPEG_CONFIGURE) \
$(FFMPEG_CONF_OPTS); \
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); \
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); \