initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,63 @@
From 6e4e407a374512b5bcb5a7c184258653e472ef9f Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Tue, 19 Jan 2021 07:47:58 +0100
Subject: [PATCH] fix build with gcc 10
Fix the following build failure with gcc 10 (which defaults to
-fno-common):
/home/buildroot/autobuild/instance-2/output-1/host/bin/x86_64-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wimplicit-function-declaration -Dx64_BIT -o i7z i7z.o helper_functions.o i7z_Single_Socket.o i7z_Dual_Socket.o -lncurses -lpthread -lrt -lm
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/10.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: i7z_Dual_Socket.o:(.bss+0x0): multiple definition of `global_ts'; i7z_Single_Socket.o:(.bss+0x0): first defined here
Fixes:
- http://autobuild.buildroot.org/results/1a433611ba8676cf1ca276fccaf3633971bd562e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/ajaiantilal/i7z/pull/27]
---
i7z.c | 1 +
i7z_Dual_Socket.c | 2 +-
i7z_Single_Socket.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/i7z.c b/i7z.c
index 61e2757..910a608 100644
--- a/i7z.c
+++ b/i7z.c
@@ -34,6 +34,7 @@ int Dual_Socket();
int socket_0_num=0, socket_1_num=1;
bool use_ncurses = true;
+struct timespec global_ts;
/////////////////////LOGGING TO FILE////////////////////////////////////////
FILE *fp_log_file_freq;
diff --git a/i7z_Dual_Socket.c b/i7z_Dual_Socket.c
index 1388339..ceafdce 100644
--- a/i7z_Dual_Socket.c
+++ b/i7z_Dual_Socket.c
@@ -37,7 +37,7 @@ float Read_Voltage_CPU(int cpu_num);
extern struct program_options prog_options;
FILE *fp_log_file;
-struct timespec global_ts;
+extern struct timespec global_ts;
extern FILE *fp_log_file_freq_1, *fp_log_file_freq_2;
extern char* CPU_FREQUENCY_LOGGING_FILE_single;
diff --git a/i7z_Single_Socket.c b/i7z_Single_Socket.c
index 16e98c1..b7266e6 100644
--- a/i7z_Single_Socket.c
+++ b/i7z_Single_Socket.c
@@ -35,7 +35,7 @@ int Read_Thermal_Status_CPU(int cpu_num);
extern struct program_options prog_options;
extern FILE *fp_log_file_freq;
-struct timespec global_ts;
+extern struct timespec global_ts;
extern char* CPU_FREQUENCY_LOGGING_FILE_single;
extern char* CPU_FREQUENCY_LOGGING_FILE_dual;
--
2.29.2
+17
View File
@@ -0,0 +1,17 @@
config BR2_PACKAGE_I7Z
bool "i7z"
depends on BR2_i386 || BR2_x86_64
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_NCURSES
help
"A better i7 (and now i3, i5) reporting tool for Linux."
i7z can print out the C-states and temperature for i3, i5
and i7 based Core processors from Intel (including Nehalems,
Sandy Bridge and Ivy Bridge).
https://github.com/ajaiantilal/i7z
comment "i7z needs a toolchain w/ threads"
depends on BR2_i386 || BR2_x86_64
depends on !BR2_TOOLCHAIN_HAS_THREADS
+3
View File
@@ -0,0 +1,3 @@
# Locally computed:
sha256 e127bddf850e7febd39cef2d2b13dca5fe19cc2a1bb1099d72b683be5d8bd1c0 i7z-5023138d7c35c4667c938b853e5ea89737334e92.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
+22
View File
@@ -0,0 +1,22 @@
################################################################################
#
# i7z
#
################################################################################
I7Z_VERSION = 5023138d7c35c4667c938b853e5ea89737334e92
I7Z_SITE = $(call github,ajaiantilal,i7z,$(I7Z_VERSION))
I7Z_LICENSE = GPL-2.0
I7Z_LICENSE_FILES = COPYING
I7Z_DEPENDENCIES = ncurses
define I7Z_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
define I7Z_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
DESTDIR="$(TARGET_DIR)"
endef
$(eval $(generic-package))