linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Masney <bmasney@redhat.com>
To: mhiramat@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	aruiz@redhat.com
Subject: [PATCH 1/2] tools/bootconfig: allow overriding CFLAGS assignment
Date: Fri, 28 Mar 2025 14:38:57 -0400	[thread overview]
Message-ID: <20250328183858.1417835-2-bmasney@redhat.com> (raw)
In-Reply-To: <20250328183858.1417835-1-bmasney@redhat.com>

Allow overriding the CFLAGS assignment so that the user can pass in
an outside value.

Signed-off-by: Brian Masney <bmasney@redhat.com>
---
 tools/bootconfig/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile
index 566c3e0ee561..d2713902ca5c 100644
--- a/tools/bootconfig/Makefile
+++ b/tools/bootconfig/Makefile
@@ -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))
-- 
2.47.0


  reply	other threads:[~2025-03-28 18:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-28 18:38 [PATCH 0/2] tools/bootconfig: allow overriding CFLAGS and LDFLAGS Brian Masney
2025-03-28 18:38 ` Brian Masney [this message]
2025-03-28 18:38 ` [PATCH 2/2] tools/bootconfig: specify LDFLAGS as an argument to CC Brian Masney
2025-03-31 12:23 ` [PATCH 0/2] tools/bootconfig: allow overriding CFLAGS and LDFLAGS Masami Hiramatsu
2025-04-10 15:36   ` Brian Masney
2025-05-16  2:25   ` Masami Hiramatsu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250328183858.1417835-2-bmasney@redhat.com \
    --to=bmasney@redhat.com \
    --cc=aruiz@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).