S9 & S9+ & Note 9 kernel source with linux-stable merged in ..................................................................................... Supported Devices codename: S9 "aka. starlte aka. G960" |||||| S9+ "aka. star2lte aka. G965" |||||| Note 9 "aka. crownlte aka. N960"
Find a file
Kees Cook 9c537aaffc
BACKPORT: FROMGIT: kbuild: mkcompile_h: Include $LD version in /proc/version
When doing Clang builds of the kernel, it is possible to link with
either ld.bfd (binutils) or ld.lld (LLVM), but it is not possible to
discover this from a running kernel. Add the "$LD -v" output to
/proc/version.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

Bug: 153484457
(cherry picked from commit 6f04f056df3c
 https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
 for-next)
[nd: commit 4b950bb9ac0c ("Kbuild: Handle PREEMPT_RT for version string and magic")
     missing in 4.14, first landed in 5.4-rc1.
     commit b79c6aa6a1f1 ("kbuild: remove unnecessary in-subshell execution")
     missing in 4.14, first landed in 5.1-rc1.
]
Change-Id: Ifa5a98fe159392862e8d07a733c0f141fa9c7715
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
2023-04-30 22:09:42 +03:00
arch kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2023-04-30 22:09:39 +03:00
block smp: Avoid using two cache lines for struct call_single_data 2023-04-30 19:42:50 +03:00
certs This is the 4.9.126 stable release 2018-09-10 09:20:19 +02:00
crypto crypto: disable module force on crypto test module 2023-04-30 19:50:25 +03:00
Documentation trusty-irq: Add support for secure interrupt mapping 2023-02-21 00:26:10 +03:00
drivers drivers: input: input.c: Remove old input_booster 2023-04-30 19:56:41 +03:00
firmware firmware: Makefile: build all firmwares at one time 2023-02-21 00:20:21 +03:00
fs erofs: change build_bug.h to bug.h 2023-02-21 00:36:03 +03:00
include input: input_booster.h: add slab.h include 2023-04-30 20:05:59 +03:00
init BACKPORT: FROMGIT: kbuild: mkcompile_h: Include $LD version in /proc/version 2023-04-30 22:09:42 +03:00
ipc BACKPORT: mm: introduce kv[mz]alloc helpers 2023-02-21 00:19:39 +03:00
kernel locking/refcounts, x86/asm: Implement fast refcount overflow protection 2023-04-30 19:49:33 +03:00
lib locking/refcounts: Include fewer headers in <linux/refcount.h> 2023-04-30 19:49:36 +03:00
mm treewide: use kv[mz]alloc* rather than opencoded variants 2023-02-21 00:20:54 +03:00
net bpf: remove dependency on module support 2023-04-30 19:46:22 +03:00
samples statx: Include a mask for stx_attributes in struct statx 2023-02-21 00:20:50 +03:00
scripts BACKPORT: FROMGIT: kbuild: mkcompile_h: Include $LD version in /proc/version 2023-04-30 22:09:42 +03:00
security selinux: fix double free 2023-02-21 00:37:54 +03:00
sound asoc: abox: add delay to ensure that ABOX core is suspended 2023-04-30 19:44:09 +03:00
tools Merge 4.9.219 branch 'android-4.9-q' into tw10-android-4.9-q 2020-04-22 21:31:43 +03:00
usr usr/Kconfig: make initrd compression algorithm selection not expert 2014-12-13 12:42:52 -08:00
virt BACKPORT: mm: introduce kv[mz]alloc helpers 2023-02-21 00:19:39 +03:00
.cocciconfig scripts: add Linux .cocciconfig for coccinelle 2016-07-22 12:13:39 +02:00
.get_maintainer.ignore Add hch to .get_maintainer.ignore 2015-08-21 14:30:10 -07:00
.gitattributes .gitattributes: set git diff driver for C source code files 2016-10-07 18:46:30 -07:00
.gitignore .gitignore: update 2023-02-21 00:19:47 +03:00
.mailmap Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-10-15 09:26:12 -07:00
AndroidKernel.mk import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
build.config.aarch64 ANDROID: refactor build.config files to remove duplication 2019-10-23 12:11:09 +00:00
build.config.common ANDROID: clang: update to 9.0.8 based on r365631c 2019-10-23 21:26:07 +00:00
build.config.cuttlefish.aarch64 ANDROID: refactor build.config files to remove duplication 2019-10-23 12:11:09 +00:00
build.config.cuttlefish.x86_64 ANDROID: refactor build.config files to remove duplication 2019-10-23 12:11:09 +00:00
build.config.goldfish.arm ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.goldfish.arm64 ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.goldfish.mips ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.goldfish.mips64 ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.goldfish.x86 ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.goldfish.x86_64 ANDROID: build.config: enforce trace_printk check 2018-05-07 23:46:39 +00:00
build.config.universal9810 import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
build.config.x86_64 ANDROID: refactor build.config files to remove duplication 2019-10-23 12:11:09 +00:00
build_kernel.sh import G96xFXXU7DTB4 OSRC 2020-03-27 23:59:55 +02:00
buildN9.sh BuildScript: move variables and functions to one file 2023-02-21 00:24:40 +03:00
buildS9+.sh BuildScript: move variables and functions to one file 2023-02-21 00:24:40 +03:00
buildS9.sh BuildScript: move variables and functions to one file 2023-02-21 00:24:40 +03:00
clean.sh BuildScript: move variables and functions to one file 2023-02-21 00:24:40 +03:00
COPYING [PATCH] update FSF address in COPYING 2005-09-10 10:06:29 -07:00
CREDITS Fix up a couple of field names in the CREDITS file 2016-12-02 10:48:50 -08:00
Kbuild kbuild: Consolidate header generation from ASM offset information 2018-11-23 08:20:34 +01:00
Kconfig import G965FXXU7DTAA OSRC 2020-02-04 13:50:09 +02:00
MAINTAINERS FROMLIST: HID: nintendo: add nintendo switch controller driver 2020-02-28 11:02:31 -08:00
Makefile Revert "Makefile: Set --lto-O3 LLD linker flag when building with clang LTO" 2023-04-30 22:09:41 +03:00
README README: Delete obsolete i386 info + update arch/i386/ paths 2016-08-14 12:24:56 -06:00
README.md import G96XFXXUGFUG4 OSRC 2023-02-21 00:10:27 +03:00
REPORTING-BUGS Docs: fix missing word in REPORTING-BUGS 2016-02-15 11:18:23 +01:00
variables.sh BuildScript: Variables: enable KALLSYMS_EXTRA_PASS 2023-02-21 00:26:00 +03:00
verity_dev_keys.x509 x86_64_cuttlefish_defconfig: enable verity cert 2018-07-26 10:36:03 -07:00
zip.sh BuildScript: add automatic zip script location 2023-02-21 00:21:58 +03:00