summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2019-05-04Linux 4.14.116Greg Kroah-Hartman
2019-05-02Linux 4.14.115Greg Kroah-Hartman
2019-04-27Linux 4.14.114Greg Kroah-Hartman
2019-04-27Revert "kbuild: use -Oz instead of -Os when using clang"Matthias Kaehlcke
commit a75bb4eb9e565b9f5115e2e8c07377ce32cbe69a upstream. The clang option -Oz enables *aggressive* optimization for size, which doesn't necessarily result in smaller images, but can have negative impact on performance. Switch back to the less aggressive -Os. This reverts commit 6748cb3c299de1ffbe56733647b01dbcc398c419. Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-20Linux 4.14.113Greg Kroah-Hartman
2019-04-17Linux 4.14.112Greg Kroah-Hartman
2019-04-17kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LDNick Desaulniers
commit ad15006cc78459d059af56729c4d9bed7c7fd860 upstream. This causes an issue when trying to build with `make LD=ld.lld` if ld.lld and the rest of your cross tools aren't in the same directory (ex. /usr/local/bin) (as is the case for Android's build system), as the GCC_TOOLCHAIN_DIR then gets set based on `which $(LD)` which will point where LLVM tools are, not GCC/binutils tools are located. Instead, select the GCC_TOOLCHAIN_DIR based on another tool provided by binutils for which LLVM does not provide a substitute for, such as elfedit. Fixes: 785f11aa595b ("kbuild: Add better clang cross build support") Link: https://github.com/ClangBuiltLinux/linux/issues/341 Suggested-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Tested-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-05Linux 4.14.111Greg Kroah-Hartman
2019-04-03Linux 4.14.110Greg Kroah-Hartman
2019-03-27Linux 4.14.109Greg Kroah-Hartman
2019-03-23Linux 4.14.108Greg Kroah-Hartman
2019-03-19Linux 4.14.107Greg Kroah-Hartman
2019-03-13Linux 4.14.106Greg Kroah-Hartman
2019-03-05Linux 4.14.105Greg Kroah-Hartman
2019-02-27Linux 4.14.104Greg Kroah-Hartman
2019-02-23Linux 4.14.103Greg Kroah-Hartman
2019-02-20Linux 4.14.102Greg Kroah-Hartman
2019-02-15Linux 4.14.101Greg Kroah-Hartman
2019-02-15Linux 4.14.100Greg Kroah-Hartman
2019-02-12Linux 4.14.99Greg Kroah-Hartman
2019-02-06Linux 4.14.98Greg Kroah-Hartman
2019-01-31Linux 4.14.97Greg Kroah-Hartman
2019-01-26Linux 4.14.96Greg Kroah-Hartman
2019-01-23Linux 4.14.95Greg Kroah-Hartman
2019-01-16Linux 4.14.94Greg Kroah-Hartman
2019-01-13Linux 4.14.93Greg Kroah-Hartman
2019-01-13Makefile: Export clang toolchain variablesJoel Stanley
commit 3bd9805090af843b25f97ffe5049f20ade1d86d6 upstream. The powerpc makefile will use these in it's boot wrapper. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: consolidate Clang compiler flagsMasahiro Yamada
commit 238bcbc4e07fad2fff99c5b157d0c37ccd4d093c upstream. Collect basic Clang options such as --target, --prefix, --gcc-toolchain, -no-integrated-as into a single variable CLANG_FLAGS so that it can be easily reused in other parts of Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Acked-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: add -no-integrated-as Clang option unconditionallyMasahiro Yamada
commit dbe27a002ef8573168cb64e181458ea23a74e2b6 upstream. We are still a way off the Clang's integrated assembler support for the kernel. Hence, -no-integrated-as is mandatory to build the kernel with Clang. If you had an ancient version of Clang that does not recognize this option, you would not be able to compile the kernel anyway. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: fix false positive warning/error about missing libelfMasahiro Yamada
[ Upstream commit ef7cfd00b2caf6edeb7f169682b64be2d0a798cf ] For the same reason as commit 25896d073d8a ("x86/build: Fix compiler support check for CONFIG_RETPOLINE"), you cannot put this $(error ...) into the parse stage of the top Makefile. Perhaps I'd propose a more sophisticated solution later, but this is the best I can do for now. Link: https://lkml.org/lkml/2017/12/25/211 Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com> Reported-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reported-by: Qian Cai <cai@lca.pw> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Qian Cai <cai@lca.pw> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-09Linux 4.14.92Greg Kroah-Hartman
2018-12-29Linux 4.14.91Greg Kroah-Hartman
2018-12-21Linux 4.14.90Greg Kroah-Hartman
2018-12-17Linux 4.14.89Greg Kroah-Hartman
2018-12-13Linux 4.14.88Greg Kroah-Hartman
2018-12-08Linux 4.14.87Greg Kroah-Hartman
2018-12-08disable stringop truncation warnings for nowStephen Rothwell
commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream. They are too noisy Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-05Linux 4.14.86Greg Kroah-Hartman
2018-12-01Linux 4.14.85Greg Kroah-Hartman
2018-12-01kbuild: allow to use GCC toolchain not in Clang search pathStefan Agner
commit ef8c4ed9db80261f397f0c0bf723684601ae3b52 upstream. When using a GCC cross toolchain which is not in a compiled in Clang search path, Clang reverts to the system assembler and linker. This leads to assembler or linker errors, depending on which tool is first used for a given architecture. It seems that Clang is not searching $PATH for a matching assembler or linker. Make sure that Clang picks up the correct assembler or linker by passing the cross compilers bin directory as search path. This allows to use Clang provided by distributions with GCC toolchains not in /usr/bin. Link: https://github.com/ClangBuiltLinux/linux/issues/78 Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-and-tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [nc: Adjust context] Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-27Linux 4.14.84Greg Kroah-Hartman
2018-11-23Linux 4.14.83Greg Kroah-Hartman
2018-11-21Linux 4.14.82Greg Kroah-Hartman
2018-11-13Linux 4.14.81Greg Kroah-Hartman
2018-11-10Linux 4.14.80Greg Kroah-Hartman
2018-11-04Linux 4.14.79Greg Kroah-Hartman
2018-11-04kbuild: set no-integrated-as before incl. arch MakefileStefan Agner
[ Upstream commit 0f0e8de334c54c38818a4a5390a39aa09deff5bf ] In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile. Fixes: cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile") Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-10-20Linux 4.14.78Greg Kroah-Hartman
2018-10-18Linux 4.14.77Greg Kroah-Hartman
2018-10-13Linux 4.14.76Greg Kroah-Hartman