0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch 771 B

12345678910111213141516171819202122232425262728
  1. From 5b015e67af27679f4ca8f7f5f2f71020ec054b0c Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Fri, 2 Dec 2016 23:09:44 +0100
  4. Subject: [PATCH] Makefile: allow passing CFLAGS/LDFLAGS
  5. This might be needed to pass some custom CFLAGS/LDFLAGS when building
  6. rpiboot.
  7. Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. ---
  10. Makefile | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/Makefile b/Makefile
  13. index 3e7d1e4..d9a7220 100755
  14. --- a/Makefile
  15. +++ b/Makefile
  16. @@ -1,5 +1,5 @@
  17. rpiboot: main.c
  18. - $(CC) -g -o $@ $< -lusb-1.0
  19. + $(CC) -g $(CFLAGS) -o $@ $< -lusb-1.0 $(LDFLAGS)
  20. install: rpiboot
  21. cp rpiboot /usr/bin
  22. --
  23. 2.7.4