Performance oriented customized Linux kernel based on the mainline kernel.
Find a file
Nick Desaulniers 231ad7f409 Makefile: infer --target from ARCH for CC=clang
We get constant feedback that the command line invocation of make is too
long when compiling with LLVM. CROSS_COMPILE is helpful when a toolchain
has a prefix of the target triple, or is an absolute path outside of
$PATH.

Since a Clang binary is generally multi-targeted, we can infer a given
target from SRCARCH/ARCH.  If CROSS_COMPILE is not set, simply set
--target= for CLANG_FLAGS, KBUILD_CFLAGS, and KBUILD_AFLAGS based on
$SRCARCH.

Previously, we'd cross compile via:
$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make LLVM=1 LLVM_IAS=1
Now:
$ ARCH=arm64 make LLVM=1 LLVM_IAS=1

For native builds (not involving cross compilation) we now explicitly
specify a target triple rather than rely on the implicit host triple.

Link: https://github.com/ClangBuiltLinux/linux/issues/1399
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Suggested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Arnd Bergmann <arnd@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2021-08-10 09:13:25 +09:00
arch kbuild: do not require sub-make for separate output tree builds 2021-08-10 08:23:39 +09:00
block block-5.14-2021-08-07 2021-08-07 10:26:21 -07:00
certs
crypto
Documentation
drivers Char/Misc driver fixes for 5.14-rc5 2021-08-08 10:41:49 -07:00
fs io_uring-5.14-2021-08-07 2021-08-07 10:34:26 -07:00
include TTY/Serial fixes for 5.14-rc5 2021-08-08 10:23:13 -07:00
init
ipc
kernel A single timer fix: 2021-08-08 11:53:30 -07:00
lib
LICENSES
mm
net
samples
scripts Makefile: infer --target from ARCH for CC=clang 2021-08-10 09:13:25 +09:00
security
sound sound fixes for 5.14-rc5 2021-08-06 10:50:26 -07:00
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Makefile: move initial clang flag handling into scripts/Makefile.clang 2021-08-10 09:13:25 +09:00
Makefile Makefile: move initial clang flag handling into scripts/Makefile.clang 2021-08-10 09:13:25 +09:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.