From 1b201b48c59d619af21de7fcc5face22824c0285 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 16 Jul 2021 15:32:28 +0000 Subject: pkg/build/linux: add compiler detection Detect compiler that was used to build the Linux kernel from auto-generated header files. This would be the most precise information. --- pkg/build/testdata/linux_compiler_ok/include/generated/compile.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pkg/build/testdata/linux_compiler_ok/include/generated/compile.h (limited to 'pkg/build/testdata/linux_compiler_ok') diff --git a/pkg/build/testdata/linux_compiler_ok/include/generated/compile.h b/pkg/build/testdata/linux_compiler_ok/include/generated/compile.h new file mode 100644 index 000000000..38ab316ce --- /dev/null +++ b/pkg/build/testdata/linux_compiler_ok/include/generated/compile.h @@ -0,0 +1,7 @@ +/* This file is auto generated, version 3 */ +/* SMP PREEMPT */ +#define UTS_MACHINE "x86_64" +#define UTS_VERSION "#3 SMP PREEMPT Tue Jul 6 10:38:03 UTC 2021" +#define LINUX_COMPILE_BY "user" +#define LINUX_COMPILE_HOST "localhost" +#define LINUX_COMPILER "gcc (Debian 10.2.1-6+build2) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2" -- cgit mrf-deployment