patch-Makefile_include 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --- omxplayer-0.2.orig/Makefile.include 2013-10-11 15:17:41.000000000 +0200
  2. +++ omxplayer-0.2/Makefile.include 2013-10-11 15:34:42.000000000 +0200
  3. @@ -1,40 +1,16 @@
  4. -USE_BUILDROOT=0
  5. -FLOAT=hard
  6. -
  7. -ifeq ($(USE_BUILDROOT), 1)
  8. -BUILDROOT :=/opt/xbmc-bcm/buildroot
  9. -SDKSTAGE :=$(BUILDROOT)/output/staging
  10. -TARGETFS :=$(BUILDROOT)/output/target
  11. -TOOLCHAIN :=$(BUILDROOT)/output/host/usr/
  12. -HOST :=arm-unknown-linux-gnueabi
  13. -SYSROOT :=$(BUILDROOT)/output/host/usr/arm-unknown-linux-gnueabi/sysroot
  14. -else
  15. -BUILDROOT :=/opt/bcm-rootfs
  16. -SDKSTAGE :=/opt/bcm-rootfs
  17. -TARGETFS :=/opt/bcm-rootfs
  18. -TOOLCHAIN :=/home/dc4/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/
  19. -HOST :=arm-linux-gnueabihf
  20. -#SYSROOT :=$(TOOLCHAIN)/arm-bcm2708hardfp-linux-gnueabi/sysroot
  21. -SYSROOT :=/opt/bcm-rootfs
  22. -endif
  23. -
  24. JOBS=7
  25. -
  26. -CFLAGS := -isystem$(PREFIX)/include
  27. -CXXFLAGS := $(CFLAGS)
  28. -CPPFLAGS := $(CFLAGS)
  29. -LDFLAGS := -L$(BUILDROOT)/lib
  30. -LD := $(TOOLCHAIN)/bin/$(HOST)-ld --sysroot=$(SYSROOT)
  31. -CC := $(TOOLCHAIN)/bin/$(HOST)-gcc --sysroot=$(SYSROOT)
  32. -CXX := $(TOOLCHAIN)/bin/$(HOST)-g++ --sysroot=$(SYSROOT)
  33. -OBJDUMP := $(TOOLCHAIN)/bin/$(HOST)-objdump
  34. -RANLIB := $(TOOLCHAIN)/bin/$(HOST)-ranlib
  35. -STRIP := $(TOOLCHAIN)/bin/$(HOST)-strip
  36. -AR := $(TOOLCHAIN)/bin/$(HOST)-ar
  37. -CXXCP := $(CXX) -E
  38. -PATH := $(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(PATH)
  39. -
  40. -CFLAGS += -pipe -mfloat-abi=$(FLOAT) -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
  41. -LDFLAGS += -L$(SDKSTAGE)/lib -L$(SDKSTAGE)/usr/lib -L$(SDKSTAGE)/opt/vc/lib/ -Lpcre/build
  42. -#INCLUDES += -isystem$(SDKSTAGE)/usr/include -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -isystem$(SDKSTAGE)/usr/include/freetype2
  43. -INCLUDES += -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -Ipcre/build -Iboost-trunk -Ifreetype2/include
  44. +CFLAGS ?= -isystem$(PREFIX)/include
  45. +CXXFLAGS ?= $(CFLAGS)
  46. +CPPFLAGS ?= $(CFLAGS)
  47. +LDFLAGS ?= -L$(BUILDROOT)/lib
  48. +LD ?= $(TOOLCHAIN)/bin/$(HOST)-ld --sysroot=$(SYSROOT)
  49. +CC ?= $(TOOLCHAIN)/bin/$(HOST)-gcc --sysroot=$(SYSROOT)
  50. +CXX ?= $(TOOLCHAIN)/bin/$(HOST)-g++ --sysroot=$(SYSROOT)
  51. +OBJDUMP ?= $(TOOLCHAIN)/bin/$(HOST)-objdump
  52. +RANLIB ?= $(TOOLCHAIN)/bin/$(HOST)-ranlib
  53. +STRIP ?= $(TOOLCHAIN)/bin/$(HOST)-strip
  54. +AR ?= $(TOOLCHAIN)/bin/$(HOST)-ar
  55. +CXXCP ?= $(CXX) -E
  56. +PATH ?= $(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(PATH)
  57. +INCLUDES += $(CPPFLAGS)
  58. +CFLAGS += -mstructure-size-boundary=32 -mno-sched-prolog