0001-build-get-along-with-buildroot.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 44f80bce0914d4d9c5e7486c7cdb521ba637b324 Mon Sep 17 00:00:00 2001
  2. From: Tzu-Jung Lee <tjlee@ambarella.com>
  3. Date: Fri, 19 Jul 2013 22:45:18 +0800
  4. Subject: [PATCH] build: get along with buildroot
  5. Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
  6. ---
  7. Makefile | 12 ++++++------
  8. 1 file changed, 6 insertions(+), 6 deletions(-)
  9. diff --git a/Makefile b/Makefile
  10. index 2c3568e..98bb994 100644
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -34,12 +34,6 @@ SHELL = /bin/sh
  14. .SUFFIXES:
  15. .SUFFIXES: .c .o
  16. -ifdef CROSS_COMPILE
  17. -CC = $(CROSS_COMPILE)gcc
  18. -else
  19. -CC = gcc
  20. -endif
  21. -
  22. # Use WARN=1 periodically to get too many warnings...
  23. ifdef WARN
  24. WARNING_FLAGS = -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wmissing-declarations -Wunreachable-code -Winline
  25. @@ -452,3 +446,9 @@ test_lists: $(BINDIR)/test_nal_unit_list $(BINDIR)/test_es_unit_list
  26. @echo +++ Testing ES unit lists
  27. $(BINDIR)/test_es_unit_list
  28. @echo +++ Test succeeded
  29. +
  30. +.PHONY: install
  31. +install:
  32. + @for i in $(PROGS); do \
  33. + cp -f $$i $(DESTDIR)/usr/bin/; \
  34. + done
  35. --
  36. 1.8.3.2