From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] sandbox: os: define referenced config symbols
Date: Tue, 7 Jan 2025 07:49:45 +0100 [thread overview]
Message-ID: <20250107064945.2785670-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250107064945.2785670-1-a.fatoum@pengutronix.de>
We built the sandbox/os/ subdirectory with different compiler flags
to avoid barebox headers masking system provided headers.
This also means that CONFIG_ options aren't defined, but common.c
already references two of them.
Define them manually in the Makefile for now to fix build breakage in
some configurations.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/sandbox/os/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/sandbox/os/Makefile b/arch/sandbox/os/Makefile
index 055ce1a316a7..7a76fb0290e8 100644
--- a/arch/sandbox/os/Makefile
+++ b/arch/sandbox/os/Makefile
@@ -6,8 +6,11 @@ machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
KBUILD_CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
+cppflags-$(CONFIG_CONSOLE_NONE) += -DCONFIG_CONSOLE_NONE=$(CONFIG_CONSOLE_NONE)
+cppflags-$(CONFIG_ASAN) += -DCONFIG_ASAN=$(CONFIG_ASAN)
+
KBUILD_CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE) -D_FILE_OFFSET_BITS=64 \
- -DCONFIG_STACK_SIZE=$(CONFIG_STACK_SIZE)
+ -DCONFIG_STACK_SIZE=$(CONFIG_STACK_SIZE) $(cppflags-y)
KBUILD_CFLAGS := -Wall
--
2.39.5
next prev parent reply other threads:[~2025-01-07 6:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-07 6:49 [PATCH 0/2] Fix next build breakage in CI Ahmad Fatoum
2025-01-07 6:49 ` [PATCH 1/2] fixup! gpio: fix static inline stub selection Ahmad Fatoum
2025-01-07 6:49 ` Ahmad Fatoum [this message]
2025-01-07 7:48 ` (subset) [PATCH 2/2] sandbox: os: define referenced config symbols Sascha Hauer
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=20250107064945.2785670-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.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