|
@@ -1,34 +0,0 @@
|
|
|
-From d580bf031011d1e1e022ab1e1024f7cc5939f956 Mon Sep 17 00:00:00 2001
|
|
|
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
-Date: Fri, 2 Dec 2016 23:09:44 +0100
|
|
|
-Subject: [PATCH] Makefile: allow passing CFLAGS/LDFLAGS
|
|
|
-
|
|
|
-This might be needed to pass some custom CFLAGS/LDFLAGS when building
|
|
|
-rpiboot.
|
|
|
-
|
|
|
-Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2
|
|
|
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
-[Rebased on 9324fd7]
|
|
|
-Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
-[Rebased on 20240926-102326-0-g82d8755]
|
|
|
-Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
|
|
|
----
|
|
|
- Makefile | 2 +-
|
|
|
- 1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
-
|
|
|
-diff --git a/Makefile b/Makefile
|
|
|
-index d2f7585..9812d6d 100755
|
|
|
---- a/Makefile
|
|
|
-+++ b/Makefile
|
|
|
-@@ -3,7 +3,7 @@ GIT_VER=$(shell git rev-parse HEAD 2>/dev/null | cut -c1-8 || echo "")
|
|
|
- INSTALL_PREFIX?=/usr
|
|
|
-
|
|
|
- rpiboot: main.c bootfiles.c decode_duid.c msd/bootcode.h msd/start.h msd/bootcode4.h msd/start4.h
|
|
|
-- $(CC) -Wall -Wextra -g -o $@ main.c bootfiles.c decode_duid.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\"
|
|
|
-+ $(CC) -Wall -Wextra -g $(CFLAGS) -o $@ main.c bootfiles.c decode_duid.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" $(LDFLAGS)
|
|
|
-
|
|
|
- %.h: %.bin ./bin2c
|
|
|
- ./bin2c $< $@
|
|
|
---
|
|
|
-2.45.2
|
|
|
-
|