From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/4] add first LLVM/clang support
Date: Mon, 25 Nov 2024 16:09:41 +0100 [thread overview]
Message-ID: <20241125150945.166979-1-a.fatoum@pengutronix.de> (raw)
We can't compile all of barebox with clang yet, because we use
GCC-specific extensions, especially C-code in naked functions, which we
is judiciously used on 32-bit ARM platforms.
Nevertheless, sandbox can already be used with clang and it's useful for
incoming support for libfuzzer, so let's add support to Kbuild.
Ahmad Fatoum (4):
sandbox: use host system's UBSan library
common: implement CC_IS_GCC and CC_IS_CLANG symbols
fixdep: sync with Linux
Makefile: add LLVM/clang support
Makefile | 45 ++++--
arch/arm/Kconfig | 3 +-
arch/sandbox/Makefile | 4 +
common/Kconfig | 16 +++
lib/Kconfig.ubsan | 3 +
lib/Makefile | 2 +-
scripts/Kbuild.include | 31 ++--
scripts/Kconfig.include | 6 +
scripts/Makefile.build | 8 +-
scripts/Makefile.clang | 9 ++
scripts/Makefile.ubsan | 33 +++--
scripts/basic/Makefile | 2 +
scripts/basic/fixdep.c | 297 ++++++++++++++++++++++++---------------
scripts/cc-version.sh | 52 +++++++
scripts/compiler.h | 20 +--
scripts/include/xalloc.h | 34 +++++
scripts/mod/sumversion.c | 19 ++-
17 files changed, 411 insertions(+), 173 deletions(-)
create mode 100644 scripts/Makefile.clang
create mode 100755 scripts/cc-version.sh
create mode 100644 scripts/include/xalloc.h
--
2.39.5
next reply other threads:[~2024-11-25 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 15:09 Ahmad Fatoum [this message]
2024-11-25 15:09 ` [PATCH 1/4] sandbox: use host system's UBSan library Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 2/4] common: implement CC_IS_GCC and CC_IS_CLANG symbols Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 3/4] fixdep: sync with Linux Ahmad Fatoum
2024-11-25 15:09 ` [PATCH 4/4] Makefile: add LLVM/clang support Ahmad Fatoum
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=20241125150945.166979-1-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