1From 38b730c00f45abf324caf687b5b00662ff4252c2 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Fri, 2 Dec 2016 23:09:44 +0100 4Subject: [PATCH] Makefile: allow passing CFLAGS/LDFLAGS 5 6This might be needed to pass some custom CFLAGS/LDFLAGS when building 7rpiboot. 8 9Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2 10Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11[Rebased on 9324fd7] 12Signed-off-by: Peter Seiderer <ps.report@gmx.net> 13--- 14 Makefile | 2 +- 15 1 file changed, 1 insertion(+), 1 deletion(-) 16 17diff --git a/Makefile b/Makefile 18index 822e714..875e717 100755 19--- a/Makefile 20+++ b/Makefile 21@@ -1,5 +1,5 @@ 22 rpiboot: main.c msd/bootcode.h msd/start.h msd/bootcode4.h msd/start4.h 23- $(CC) -Wall -Wextra -g -o $@ $< -lusb-1.0 24+ $(CC) -Wall -Wextra -g $(CFLAGS) -o $@ $< -lusb-1.0 $(LDFLAGS) 25 26 %.h: %.bin ./bin2c 27 ./bin2c $< $@ 28-- 292.31.1 30 31