From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/4] sandbox: add support for architecture-specific debug options
Date: Mon, 16 Dec 2024 12:36:38 +0100 [thread overview]
Message-ID: <20241216113640.403845-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20241216113640.403845-1-a.fatoum@pengutronix.de>
There is work under way for better debugging facilities in sandbox,
including libfuzzer and code coverage support.
Let's provide a home for the new config options in the form of an
architecture specific Kconfig.debug file like Linux already has.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/Kconfig.debug | 2 ++
arch/kvx/Kconfig.debug | 2 ++
arch/mips/Kconfig.debug | 2 ++
arch/openrisc/Kconfig.debug | 2 ++
arch/powerpc/Kconfig.debug | 2 ++
arch/riscv/Kconfig.debug | 2 ++
arch/sandbox/Kconfig.debug | 2 ++
arch/x86/Kconfig.debug | 2 ++
common/Kconfig.debug | 6 ++++++
9 files changed, 22 insertions(+)
create mode 100644 arch/arm/Kconfig.debug
create mode 100644 arch/kvx/Kconfig.debug
create mode 100644 arch/mips/Kconfig.debug
create mode 100644 arch/openrisc/Kconfig.debug
create mode 100644 arch/powerpc/Kconfig.debug
create mode 100644 arch/riscv/Kconfig.debug
create mode 100644 arch/sandbox/Kconfig.debug
create mode 100644 arch/x86/Kconfig.debug
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/arm/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/kvx/Kconfig.debug b/arch/kvx/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/kvx/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/mips/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/openrisc/Kconfig.debug b/arch/openrisc/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/openrisc/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/powerpc/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/riscv/Kconfig.debug b/arch/riscv/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/riscv/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/sandbox/Kconfig.debug b/arch/sandbox/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/sandbox/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
new file mode 100644
index 000000000000..295942fe3fd5
--- /dev/null
+++ b/arch/x86/Kconfig.debug
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# dummy file, do not delete
diff --git a/common/Kconfig.debug b/common/Kconfig.debug
index ea6864ac4d91..c4d1313ef866 100644
--- a/common/Kconfig.debug
+++ b/common/Kconfig.debug
@@ -161,4 +161,10 @@ config WERROR
If in doubt, say Y.
+menu "$(SRCARCH) Debugging"
+
+source "arch/$(SRCARCH)/Kconfig.debug"
+
+endmenu
+
endmenu
--
2.39.5
next prev parent reply other threads:[~2024-12-16 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-16 11:36 [PATCH 1/4] sandbox: add support for --loglevel option Ahmad Fatoum
2024-12-16 11:36 ` Ahmad Fatoum [this message]
2024-12-16 11:36 ` [PATCH 3/4] sandbox: move CONFIG_ASAN to architecture Kconfig Ahmad Fatoum
2024-12-16 11:36 ` [PATCH 4/4] startup: set barebox_main in data section Ahmad Fatoum
2024-12-20 9:04 ` [PATCH 1/4] sandbox: add support for --loglevel option 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=20241216113640.403845-2-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