Update kernel to v5.10.57
Fix mlnx-ofa_kernel build issue because of kernel uprev. Story: 2008921 Task: 42962 Depends-On: https://review.opendev.org/c/starlingx/kernel/+/807000 Signed-off-by: Jiping Ma <jiping.ma2@windriver.com> Change-Id: I3de77f6fc25f9389bef482a02bf6134b62e5bd23
This commit is contained in:
parent
8ed87c3379
commit
cace0cb64e
@ -1,22 +1,23 @@
|
|||||||
From 7b589d8176fa503b7d817692312dd394c35925e3 Mon Sep 17 00:00:00 2001
|
From ca7da3a87d1533596ed8eaad5770eadfdf3e0337 Mon Sep 17 00:00:00 2001
|
||||||
From: Vefa Bicakci <vefa.bicakci@windriver.com>
|
From: Jiping Ma <jiping.ma2@windriver.com>
|
||||||
Date: Tue, 1 Jun 2021 13:44:23 -0400
|
Date: Mon, 23 Aug 2021 20:25:48 -0700
|
||||||
Subject: [PATCH] Apply a dummy patch to let "build-pkgs --edit" work
|
Subject: [PATCH] Fix compile issues when using kernel 5.10.57.
|
||||||
|
|
||||||
Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
|
|
||||||
|
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
|
||||||
---
|
---
|
||||||
SPECS/mlnx-ofa_kernel.spec | 3 +++
|
mlnx-ofa_kernel.spec | 3 +++
|
||||||
1 file changed, 3 insertions(+)
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
diff --git a/SPECS/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel.spec
|
diff --git a/mlnx-ofa_kernel.spec b/mlnx-ofa_kernel.spec
|
||||||
index d4d3f1932db6..5a2982cfaa5f 100644
|
index d4d3f19..d890dfb 100644
|
||||||
--- a/SPECS/mlnx-ofa_kernel.spec
|
--- a/SPECS/mlnx-ofa_kernel.spec
|
||||||
+++ b/SPECS/mlnx-ofa_kernel.spec
|
+++ b/SPECS/mlnx-ofa_kernel.spec
|
||||||
@@ -109,6 +109,7 @@ Url: http://www.mellanox.com/
|
@@ -109,6 +109,7 @@ Url: http://www.mellanox.com/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source: %{_basename}-%{_version}.tgz
|
Source: %{_basename}-%{_version}.tgz
|
||||||
Source100: modules-load.conf
|
Source100: modules-load.conf
|
||||||
+Patch01: 0001-A-dummy-change-to-let-StarlingX-build-work.patch
|
+Patch01: 0001-implicit-declaration-of-function-__is_constexpr.patch
|
||||||
BuildRoot: %{?build_root:%{build_root}}%{!?build_root:/var/tmp/OFED}
|
BuildRoot: %{?build_root:%{build_root}}%{!?build_root:/var/tmp/OFED}
|
||||||
Vendor: Mellanox Technologies
|
Vendor: Mellanox Technologies
|
||||||
Obsoletes: kernel-ib
|
Obsoletes: kernel-ib
|
||||||
@ -30,5 +31,5 @@ index d4d3f1932db6..5a2982cfaa5f 100644
|
|||||||
%if 0%{?rhel} == 7
|
%if 0%{?rhel} == 7
|
||||||
source scl_source enable devtoolset-8 || :
|
source scl_source enable devtoolset-8 || :
|
||||||
--
|
--
|
||||||
2.29.2
|
2.31.1
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
Support-TiS-system.patch
|
Support-TiS-system.patch
|
||||||
Introduce-devtoolset-8.patch
|
Introduce-devtoolset-8.patch
|
||||||
Apply-a-dummy-patch-to-let-build-pkgs-edit-work.patch
|
Fix-compile-issues-when-using-kernel-5.10.57.patch
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
From 555ee6e9b3cb4ecb6c6a0a4806a960d564b9f983 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jiping Ma <jiping.ma2@windriver.com>
|
||||||
|
Date: Mon, 23 Aug 2021 20:11:33 -0700
|
||||||
|
Subject: [PATCH] implicit declaration of function '__is_constexpr'
|
||||||
|
|
||||||
|
We get a build error now when we use kernel version 5.10.57
|
||||||
|
include/linux/minmax.h:23:4: error: implicit declaration of function '__is_constexpr';
|
||||||
|
Because commit 1354ec840899e87259286cc844d4c161ea86fae7 in the yocto kernel changed
|
||||||
|
the definition of GENMASK_INPUT_CHECK from __builtin_constant_p to __is_constexpr.
|
||||||
|
so we need add __is_constexpr definition in const.h
|
||||||
|
|
||||||
|
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
|
||||||
|
---
|
||||||
|
include/linux/const.h | 8 ++++++++
|
||||||
|
1 file changed, 8 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/include/linux/const.h b/include/linux/const.h
|
||||||
|
index afe88a0..92daf28 100644
|
||||||
|
--- a/source/include/linux/const.h
|
||||||
|
+++ b/source/include/linux/const.h
|
||||||
|
@@ -7,6 +7,14 @@
|
||||||
|
|
||||||
|
#include_next <linux/const.h>
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ * This returns a constant expression while determining if an argument is
|
||||||
|
+ * a constant expression, most importantly without evaluating the argument.
|
||||||
|
+ * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
|
||||||
|
+ */
|
||||||
|
+#define __is_constexpr(x) \
|
||||||
|
+ (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
|
||||||
|
+
|
||||||
|
#ifndef UL
|
||||||
|
#define UL(x) (_UL(x))
|
||||||
|
#endif
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -7,7 +7,7 @@ BUILD_IS_BIG=21
|
|||||||
BUILD_IS_SLOW=16
|
BUILD_IS_SLOW=16
|
||||||
|
|
||||||
# The base branch is: v5.10/standard/preempt-rt/base
|
# The base branch is: v5.10/standard/preempt-rt/base
|
||||||
TIS_BASE_SRCREV=bced2cdbd646996800d920c1604bffbb050a62ab
|
TIS_BASE_SRCREV=9ad4f13ee44c39e890638d8a2157adcf830fc7bc
|
||||||
|
|
||||||
PKG_BASE_SRCREV=4013790c6ef43fd9f936579b0cac50b8e0c4505a
|
PKG_BASE_SRCREV=4013790c6ef43fd9f936579b0cac50b8e0c4505a
|
||||||
TIS_PATCH_VER=GITREVCOUNT+PKG_GITREVCOUNT
|
TIS_PATCH_VER=GITREVCOUNT+PKG_GITREVCOUNT
|
||||||
|
@ -90,7 +90,7 @@ Summary: The Linux kernel
|
|||||||
%define base_sublevel 10
|
%define base_sublevel 10
|
||||||
|
|
||||||
# Do we have a -stable update to apply?
|
# Do we have a -stable update to apply?
|
||||||
%define stable_update 30
|
%define stable_update 57
|
||||||
# Set rpm version accordingly
|
# Set rpm version accordingly
|
||||||
%define stablerev %{stable_update}
|
%define stablerev %{stable_update}
|
||||||
%define stable_base %{stable_update}
|
%define stable_base %{stable_update}
|
||||||
@ -387,7 +387,7 @@ BuildRequires: util-linux
|
|||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%define asmarch x86
|
%define asmarch x86
|
||||||
%define all_arch_configs kernel-%{version}-x86_64*.config
|
%define all_arch_configs kernel-x86_64*.config
|
||||||
%define kernel_image arch/x86/boot/bzImage
|
%define kernel_image arch/x86/boot/bzImage
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -705,9 +705,8 @@ Source89: filter-modules.sh
|
|||||||
#Source46: kernel-ppc64le-debug-fedora.config
|
#Source46: kernel-ppc64le-debug-fedora.config
|
||||||
#Source47: kernel-s390x-fedora.config
|
#Source47: kernel-s390x-fedora.config
|
||||||
#Source48: kernel-s390x-debug-fedora.config
|
#Source48: kernel-s390x-debug-fedora.config
|
||||||
Source49: kernel-5.10.30-x86_64.config
|
Source49: kernel-x86_64.config
|
||||||
Source50: kernel-5.10.30-x86_64-debug.config
|
Source50: kernel-x86_64-debug.config
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
Source51: generate_all_configs.sh
|
Source51: generate_all_configs.sh
|
||||||
@ -743,7 +742,7 @@ Source3000: ima_signing_key.pub
|
|||||||
|
|
||||||
# This file is intentionally left empty in the stock kernel. Its a nicety
|
# This file is intentionally left empty in the stock kernel. Its a nicety
|
||||||
# added for those wanting to do custom rebuilds with altered config opts.
|
# added for those wanting to do custom rebuilds with altered config opts.
|
||||||
Source1000: kernel-5.10.30-x86_64-rt.config.tis_extra
|
Source1000: kernel-x86_64-rt.config.tis_extra
|
||||||
|
|
||||||
# Here should be only the patches up to the upstream canonical Linus tree.
|
# Here should be only the patches up to the upstream canonical Linus tree.
|
||||||
|
|
||||||
@ -1564,7 +1563,7 @@ done
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{debugbuildsenabled}
|
%if !%{debugbuildsenabled}
|
||||||
rm -f kernel-%{version}-*debug.config
|
rm -f kernel-*debug.config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# enable GCOV kernel config options if gcov is on
|
# enable GCOV kernel config options if gcov is on
|
||||||
@ -1580,7 +1579,7 @@ OPTS=""
|
|||||||
%if %{with_configchecks}
|
%if %{with_configchecks}
|
||||||
OPTS="$OPTS -w -n -c"
|
OPTS="$OPTS -w -n -c"
|
||||||
%endif
|
%endif
|
||||||
./process_configs.sh $OPTS kernel %{rpmversion}
|
./process_configs.sh $OPTS kernel
|
||||||
|
|
||||||
# end of kernel config
|
# end of kernel config
|
||||||
%endif
|
%endif
|
||||||
@ -1651,7 +1650,7 @@ BuildKernel() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Pick the right config file for the kernel we're building
|
# Pick the right config file for the kernel we're building
|
||||||
Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
|
Config=kernel-%{_target_cpu}${Flavour:+-${Flavour}}.config
|
||||||
DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
|
DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
|
||||||
|
|
||||||
# When the bootable image is just the ELF kernel, strip it.
|
# When the bootable image is just the ELF kernel, strip it.
|
||||||
|
@ -166,6 +166,7 @@ CONFIG_ATH_DEBUG=y
|
|||||||
# CONFIG_BATTERY_MAX17040 is not set
|
# CONFIG_BATTERY_MAX17040 is not set
|
||||||
# CONFIG_BATTERY_MAX17042 is not set
|
# CONFIG_BATTERY_MAX17042 is not set
|
||||||
# CONFIG_BATTERY_SBS is not set
|
# CONFIG_BATTERY_SBS is not set
|
||||||
|
# CONFIG_BATTERY_RT5033 is not set
|
||||||
# CONFIG_BCACHE is not set
|
# CONFIG_BCACHE is not set
|
||||||
# CONFIG_BCMA_DEBUG is not set
|
# CONFIG_BCMA_DEBUG is not set
|
||||||
# CONFIG_BCMA_HOST_SOC is not set
|
# CONFIG_BCMA_HOST_SOC is not set
|
@ -167,6 +167,7 @@
|
|||||||
# CONFIG_BATTERY_MAX17040 is not set
|
# CONFIG_BATTERY_MAX17040 is not set
|
||||||
# CONFIG_BATTERY_MAX17042 is not set
|
# CONFIG_BATTERY_MAX17042 is not set
|
||||||
# CONFIG_BATTERY_SBS is not set
|
# CONFIG_BATTERY_SBS is not set
|
||||||
|
# CONFIG_BATTERY_RT5033 is not set
|
||||||
# CONFIG_BCACHE is not set
|
# CONFIG_BCACHE is not set
|
||||||
# CONFIG_BCMA_DEBUG is not set
|
# CONFIG_BCMA_DEBUG is not set
|
||||||
# CONFIG_BCMA_HOST_SOC is not set
|
# CONFIG_BCMA_HOST_SOC is not set
|
@ -7,7 +7,7 @@ BUILD_IS_BIG=21
|
|||||||
BUILD_IS_SLOW=16
|
BUILD_IS_SLOW=16
|
||||||
|
|
||||||
# The base branch is: v5.10/standard/base
|
# The base branch is: v5.10/standard/base
|
||||||
TIS_BASE_SRCREV=1e798745fa8ef91ffe4fd38d443f9d44b59e3cb3
|
TIS_BASE_SRCREV=1cd6e30b83d741562b55bf5b7763b1238a91150c
|
||||||
|
|
||||||
PKG_BASE_SRCREV=4013790c6ef43fd9f936579b0cac50b8e0c4505a
|
PKG_BASE_SRCREV=4013790c6ef43fd9f936579b0cac50b8e0c4505a
|
||||||
TIS_PATCH_VER=GITREVCOUNT+PKG_GITREVCOUNT
|
TIS_PATCH_VER=GITREVCOUNT+PKG_GITREVCOUNT
|
||||||
|
@ -93,7 +93,7 @@ Summary: The Linux kernel
|
|||||||
%if 0%{?released_kernel}
|
%if 0%{?released_kernel}
|
||||||
|
|
||||||
# Do we have a -stable update to apply?
|
# Do we have a -stable update to apply?
|
||||||
%define stable_update 30
|
%define stable_update 57
|
||||||
# Set rpm version accordingly
|
# Set rpm version accordingly
|
||||||
%if 0%{?stable_update}
|
%if 0%{?stable_update}
|
||||||
%define stablerev %{stable_update}
|
%define stablerev %{stable_update}
|
||||||
@ -416,7 +416,7 @@ BuildRequires: util-linux
|
|||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%define asmarch x86
|
%define asmarch x86
|
||||||
%define all_arch_configs kernel-%{version}-x86_64*.config
|
%define all_arch_configs kernel-x86_64*.config
|
||||||
%define kernel_image arch/x86/boot/bzImage
|
%define kernel_image arch/x86/boot/bzImage
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -734,8 +734,8 @@ Source89: filter-modules.sh
|
|||||||
#Source46: kernel-ppc64le-debug-fedora.config
|
#Source46: kernel-ppc64le-debug-fedora.config
|
||||||
#Source47: kernel-s390x-fedora.config
|
#Source47: kernel-s390x-fedora.config
|
||||||
#Source48: kernel-s390x-debug-fedora.config
|
#Source48: kernel-s390x-debug-fedora.config
|
||||||
Source49: kernel-5.10.30-x86_64.config
|
Source49: kernel-x86_64.config
|
||||||
Source50: kernel-5.10.30-x86_64-debug.config
|
Source50: kernel-x86_64-debug.config
|
||||||
|
|
||||||
|
|
||||||
Source51: generate_all_configs.sh
|
Source51: generate_all_configs.sh
|
||||||
@ -771,7 +771,7 @@ Source3000: ima_signing_key.pub
|
|||||||
|
|
||||||
# This file is intentionally left empty in the stock kernel. Its a nicety
|
# This file is intentionally left empty in the stock kernel. Its a nicety
|
||||||
# added for those wanting to do custom rebuilds with altered config opts.
|
# added for those wanting to do custom rebuilds with altered config opts.
|
||||||
Source1000: kernel-5.10.30-x86_64.config.tis_extra
|
Source1000: kernel-x86_64.config.tis_extra
|
||||||
|
|
||||||
# Here should be only the patches up to the upstream canonical Linus tree.
|
# Here should be only the patches up to the upstream canonical Linus tree.
|
||||||
|
|
||||||
@ -1550,7 +1550,7 @@ done
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{debugbuildsenabled}
|
%if !%{debugbuildsenabled}
|
||||||
rm -f kernel-%{version}-*debug.config
|
rm -f kernel-*debug.config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# enable GCOV kernel config options if gcov is on
|
# enable GCOV kernel config options if gcov is on
|
||||||
@ -1566,7 +1566,7 @@ OPTS=""
|
|||||||
%if %{with_configchecks}
|
%if %{with_configchecks}
|
||||||
OPTS="$OPTS -w -n -c"
|
OPTS="$OPTS -w -n -c"
|
||||||
%endif
|
%endif
|
||||||
./process_configs.sh $OPTS kernel %{rpmversion}
|
./process_configs.sh $OPTS kernel
|
||||||
|
|
||||||
# end of kernel config
|
# end of kernel config
|
||||||
%endif
|
%endif
|
||||||
@ -1637,7 +1637,7 @@ BuildKernel() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Pick the right config file for the kernel we're building
|
# Pick the right config file for the kernel we're building
|
||||||
Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
|
Config=kernel-%{_target_cpu}${Flavour:+-${Flavour}}.config
|
||||||
DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
|
DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
|
||||||
|
|
||||||
# When the bootable image is just the ELF kernel, strip it.
|
# When the bootable image is just the ELF kernel, strip it.
|
||||||
|
@ -462,6 +462,7 @@ CONFIG_BATTERY_CW2015=m
|
|||||||
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
|
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
|
||||||
# CONFIG_BATTERY_LEGO_EV3 is not set
|
# CONFIG_BATTERY_LEGO_EV3 is not set
|
||||||
# CONFIG_BATTERY_MAX17040 is not set
|
# CONFIG_BATTERY_MAX17040 is not set
|
||||||
|
# CONFIG_BATTERY_RT5033 is not set
|
||||||
CONFIG_BATTERY_MAX17042=m
|
CONFIG_BATTERY_MAX17042=m
|
||||||
# CONFIG_BATTERY_MAX1721X is not set
|
# CONFIG_BATTERY_MAX1721X is not set
|
||||||
# CONFIG_BATTERY_SBS is not set
|
# CONFIG_BATTERY_SBS is not set
|
@ -460,6 +460,7 @@ CONFIG_BATTERY_CW2015=m
|
|||||||
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
|
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
|
||||||
# CONFIG_BATTERY_LEGO_EV3 is not set
|
# CONFIG_BATTERY_LEGO_EV3 is not set
|
||||||
# CONFIG_BATTERY_MAX17040 is not set
|
# CONFIG_BATTERY_MAX17040 is not set
|
||||||
|
# CONFIG_BATTERY_RT5033 is not set
|
||||||
CONFIG_BATTERY_MAX17042=m
|
CONFIG_BATTERY_MAX17042=m
|
||||||
# CONFIG_BATTERY_MAX1721X is not set
|
# CONFIG_BATTERY_MAX1721X is not set
|
||||||
# CONFIG_BATTERY_SBS is not set
|
# CONFIG_BATTERY_SBS is not set
|
Loading…
x
Reference in New Issue
Block a user