]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/bootconfig: allow overriding CFLAGS assignment
authorBrian Masney <bmasney@redhat.com>
Fri, 28 Mar 2025 18:38:57 +0000 (14:38 -0400)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 16 May 2025 02:22:40 +0000 (11:22 +0900)
Allow overriding the CFLAGS assignment so that the user can pass in
an outside value.

Link: https://lore.kernel.org/all/20250328183858.1417835-2-bmasney@redhat.com/
Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/bootconfig/Makefile

index 566c3e0ee561f34273bce0c4fec936c4b0d6d203..d2713902ca5c68e62995e1213769fdcafe15de1b 100644 (file)
@@ -10,7 +10,7 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
 endif
 
 LIBSRC = $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig.h
-CFLAGS = -Wall -g -I$(CURDIR)/include
+override CFLAGS += -Wall -g -I$(CURDIR)/include
 
 ALL_TARGETS := bootconfig
 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))