| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From 389e8138f543baf334442ca52edf5f7b4cfe13dc Mon Sep 17 00:00:00 2001 |
| 2 | From: Marcus Schref <mschref@web.de> |
| 3 | Date: Mon, 22 Aug 2022 10:02:13 +0200 |
| 4 | Subject: [PATCH] sx1302_hal: edit cflags |
| 5 | |
| 6 | Enable use of TARGET_CFLAGS in addition to specified CFLAGS |
| 7 | |
| 8 | Signed-off-by: Marcus Schref <mschref@web.de> |
| 9 | --- |
| 10 | libloragw/Makefile | 2 +- |
| 11 | libtools/Makefile | 2 +- |
| 12 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | --- a/libloragw/Makefile |
| 15 | +++ b/libloragw/Makefile |
| 16 | @@ -11,7 +11,7 @@ CROSS_COMPILE ?= |
| 17 | CC := $(CROSS_COMPILE)gcc |
| 18 | AR := $(CROSS_COMPILE)ar |
| 19 | |
| 20 | -CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. -I../libtools/inc |
| 21 | +CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I. -I../libtools/inc |
| 22 | |
| 23 | OBJDIR = obj |
| 24 | INCLUDES = $(wildcard inc/*.h) $(wildcard ../libtools/inc/*.h) |
| 25 | --- a/libtools/Makefile |
| 26 | +++ b/libtools/Makefile |
| 27 | @@ -7,7 +7,7 @@ CROSS_COMPILE ?= |
| 28 | CC := $(CROSS_COMPILE)gcc |
| 29 | AR := $(CROSS_COMPILE)ar |
| 30 | |
| 31 | -CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. |
| 32 | +CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I. |
| 33 | |
| 34 | OBJDIR = obj |
| 35 | INCLUDES = $(wildcard inc/*.h) |