0001-Update-Makefile-to-be-compatible-with-buildroot.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 40bf9c0960becaf0e592cac901466af93f24e52b Mon Sep 17 00:00:00 2001
  2. From: Julius Kriukas <julius@kriukas.lt>
  3. Date: Fri, 1 Dec 2017 18:29:24 +0200
  4. Subject: [PATCH] Update Makefile to be compatible with buildroot
  5. - Append to existing CFLAGS instead of overwriting.
  6. - Remove cross-compilation specific options from CFLAGS, they will be
  7. set by buildroot.
  8. - Remove local ffmpeg_compiled include, buildroot will build ffmpeg
  9. separately.
  10. - Remove hard-coded dbus, freetype, rpi-firmware include paths, they
  11. will be added by buildroot.
  12. Signed-off-by: Julius Kriukas <julius@kriukas.lt>
  13. ---
  14. Makefile | 6 +++---
  15. 1 file changed, 3 insertions(+), 3 deletions(-)
  16. diff --git a/Makefile b/Makefile
  17. index 5f4e414..53fa1bc 100644
  18. --- a/Makefile
  19. +++ b/Makefile
  20. @@ -1,10 +1,10 @@
  21. -CFLAGS=-pipe -mfloat-abi=hard -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -mno-apcs-stack-check -g -mstructure-size-boundary=32 -mno-sched-prolog
  22. +CFLAGS+=-fomit-frame-pointer -Wno-psabi -mno-apcs-stack-check -g -mstructure-size-boundary=32 -mno-sched-prolog
  23. CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
  24. LDFLAGS=-L$(SDKSTAGE)/opt/vc/lib/
  25. -LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
  26. +LDFLAGS+=-L./ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
  27. -INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/freetype2 -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads
  28. +INCLUDES+=-I./ -Ilinux
  29. DIST ?= omxplayer-dist
  30. STRIP ?= strip
  31. --
  32. 2.11.0