board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / raspberrypi-usbboot / 0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch
blobcdab6070c24cf6090fdb2a08cb2134917a4ea251
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
6 This might be needed to pass some custom CFLAGS/LDFLAGS when building
7 rpiboot.
9 Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/Makefile b/Makefile
16 index 3e7d1e4..d9a7220 100755
17 --- a/Makefile
18 +++ b/Makefile
19 @@ -1,5 +1,5 @@
20 rpiboot: main.c
21 - $(CC) -g -o $@ $< -lusb-1.0
22 + $(CC) -g $(CFLAGS) -o $@ $< -lusb-1.0 $(LDFLAGS)
24 install: rpiboot
25 cp rpiboot /usr/bin
26 --
27 2.7.4