Skip to content

Commit bf5d35b

Browse files
committed
linux 7.1.1 & other updates
1 parent f96539d commit bf5d35b

22 files changed

Lines changed: 193 additions & 47 deletions

File tree

File renamed without changes.

linux/Config.in

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ choice
3030
prompt "Kernel version"
3131

3232
config BR2_LINUX_KERNEL_LATEST_VERSION
33-
bool "Latest version (7.0)"
34-
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_0 if BR2_KERNEL_HEADERS_AS_KERNEL
33+
bool "Latest version (7.1)"
34+
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_1 if BR2_KERNEL_HEADERS_AS_KERNEL
3535
# mips always generates an ITB image
3636
select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
3737
select BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
@@ -143,7 +143,7 @@ config BR2_LINUX_KERNEL_CUSTOM_REPO_GIT_SUBMODULES
143143

144144
config BR2_LINUX_KERNEL_VERSION
145145
string
146-
default "7.0.6" if BR2_LINUX_KERNEL_LATEST_VERSION
146+
default "7.1.1" if BR2_LINUX_KERNEL_LATEST_VERSION
147147
default "5.10.254-cip72" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
148148
default "5.10.254-cip72-rt32" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
149149
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
@@ -187,9 +187,11 @@ config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
187187
bool "Use the architecture default configuration"
188188
# We know that the default configuration on many architectures
189189
# requires host-openssl, so select it for the latest kernel
190-
# version. This is mainly needed to fix autobuilder testing.
190+
# version and the latest CIP version.
191+
# This is mainly needed to fix autobuilder testing.
191192
select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
192-
BR2_LINUX_KERNEL_LATEST_VERSION
193+
BR2_LINUX_KERNEL_LATEST_VERSION || \
194+
BR2_LINUX_KERNEL_LATEST_CIP_VERSION
193195
help
194196
This option will use the default configuration for the
195197
selected architecture. I.e, it is equivalent to running

linux/before-6.17/linux.hash

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
2-
sha256 cc12a7644b4cef9e06627b29de8753e22b3d076703a9b52be84263e05c8b9830 linux-6.12.87.tar.xz
3-
sha256 add06b5fdb655c7e575fbfa29e7bab23a3c36c5388e77fa759ed4b0d1a55a80f linux-6.6.138.tar.xz
4-
sha256 f1672e610dc9e05e33de1803857e26c5abe1d1ab0a2ea74b0d8269267f73b499 linux-6.1.172.tar.xz
2+
sha256 e998a232b9418db3301cb58468e291a4f41d6ab8306029b30d991f56251dc8d2 linux-6.12.94.tar.xz
3+
sha256 dace1f8dc9c0dbf5df14f47e3229cd62c298e83049681731ef229f2ba7592932 linux-6.6.143.tar.xz
4+
sha256 aa19772dba40e9737356c00d0671cdedbe26cc895eff062868f0a1f688ae44f6 linux-6.1.176.tar.xz
55
# From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
6-
sha256 5fc6ce4f4cfb17977bc6e14c52a0e10846544f1ffc133aac26d6de7e14a5e61f linux-5.15.206.tar.xz
7-
sha256 3956b387bfb5133c00f3f7f76a0a436934a349e8a9319a231a1b5b829d7866a7 linux-5.10.255.tar.xz
6+
sha256 910ba46ae15e7495a9624f89d7f11b24ccc8bc1ee4b3abdd502e75b055290a01 linux-5.15.210.tar.xz
7+
sha256 aa5e8e580a555e55176658b78fb6759f9c84654462b735119d4e819b5c46b609 linux-5.10.259.tar.xz
88
# Locally computed
99
sha256 bd5db7fe3b0475cce4fc72db7a7f7df1c22b970aabe5ebff6ddd48098973bdf2 linux-cip-5.10.254-cip72.tar.gz
1010
sha256 97d7d5139900c10ff7435779be4857dda531e7cf6abba52c12a5f39aae195411 linux-cip-5.10.254-cip72-rt32.tar.gz

linux/from-6.17/linux.hash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# From https://www.kernel.org/pub/linux/kernel/v7.x/sha256sums.asc
2-
sha256 691f44797fbe790dc8a321604c927087526ad27b6d649925d60f8eed0a2564a0 linux-7.1.tar.xz
3-
sha256 57edc9a41efc1ca6b797afa8f4a587a30da2af6bca7356eb56e1e1a4ada265da linux-7.0.12.tar.xz
2+
sha256 5215fa3541dc7e7f5bcd51bf7e57f169cec6fce508ca54e3dc85fdee14371d7d linux-7.1.1.tar.xz
3+
sha256 3c81edd0f716aca3dd48dff691681827580cc53d35a8eec3be47d346d1f89913 linux-7.0.13.tar.xz
44

55
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
6-
sha256 f78602932219125e211c5f5bfd84edcfd4ec5ce88fc944f8248413f665bef236 linux-6.18.35.tar.xz
6+
sha256 fbab86c9f471c81075b280cca30bd85d790c060063a1245859b6344b07c9c44e linux-6.18.36.tar.xz
77

88
# Licenses hashes
99
sha256 fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 COPYING

linux/linux.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ LINUX_MAKE_FLAGS = \
164164
CROSS_COMPILE="$(TARGET_CROSS)" \
165165
WERROR=0 \
166166
REGENERATE_PARSERS=1 \
167-
DEPMOD=$(HOST_DIR)/sbin/depmod
167+
DEPMOD=true
168168

169169
ifeq ($(BR2_REPRODUCIBLE),y)
170170
LINUX_MAKE_ENV += \
@@ -474,7 +474,6 @@ define LINUX_KCONFIG_FIXUP_CMDS
474474
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO)
475475
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224))
476476
$(call KCONFIG_DISABLE_OPT,CONFIG_GCC_PLUGINS)
477-
$(call KCONFIG_DISABLE_OPT,CONFIG_WERROR)
478477
$(PACKAGES_LINUX_CONFIG_FIXUPS)
479478
endef
480479

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
From fa27d70495e3b4f92c9de43b33aa09813a318495 Mon Sep 17 00:00:00 2001
2+
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
3+
Date: Mon, 18 May 2026 16:44:57 +0200
4+
Subject: [PATCH] fix(esp_hosted_ng): Fix build for kernel 7.1
5+
6+
With commit:
7+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=033fe322f5852d5144a85978e880e01b1787fd0d
8+
many functions esp_cfg80211_*() have argument struct netdevice * subsituted
9+
with struct wireless_dev *. So let's add separate function headers and
10+
retrieve struct netdev * from struct wireless_dev * if Linux version >= 7.1.
11+
12+
Upstream: https://github.com/espressif/esp-hosted/pull/736
13+
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
14+
---
15+
esp_hosted_ng/host/esp_cfg80211.c | 50 +++++++++++++++++++++++++++++++
16+
1 file changed, 50 insertions(+)
17+
18+
diff --git a/esp_hosted_ng/host/esp_cfg80211.c b/esp_hosted_ng/host/esp_cfg80211.c
19+
index c68f7983e6..1009df1fd5 100644
20+
--- a/esp_hosted_ng/host/esp_cfg80211.c
21+
+++ b/esp_hosted_ng/host/esp_cfg80211.c
22+
@@ -533,22 +533,38 @@ static int esp_cfg80211_set_default_key(struct wiphy *wiphy,
23+
}
24+
25+
static int esp_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
26+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
27+
+ struct wireless_dev *wdev, INT_LINK_ID u8 key_index)
28+
+#else
29+
struct net_device *ndev, INT_LINK_ID u8 key_index)
30+
+#endif
31+
{
32+
return 0;
33+
}
34+
35+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
36+
+static int esp_cfg80211_del_key(struct wiphy *wiphy, struct wireless_dev *wdev,
37+
+#else
38+
static int esp_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
39+
+#endif
40+
INT_LINK_ID u8 key_index, bool pairwise,
41+
const u8 *mac_addr)
42+
{
43+
return 0;
44+
}
45+
46+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
47+
+static int esp_cfg80211_add_key(struct wiphy *wiphy, struct wireless_dev *wdev,
48+
+ INT_LINK_ID u8 key_index, bool pairwise,
49+
+ const u8 *mac_addr, struct key_params *params)
50+
+{
51+
+ struct net_device *dev = wdev->netdev;
52+
+#else
53+
static int esp_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
54+
INT_LINK_ID u8 key_index, bool pairwise,
55+
const u8 *mac_addr, struct key_params *params)
56+
{
57+
+#endif
58+
struct esp_wifi_device *priv = NULL;
59+
60+
if (!wiphy || !dev || !params) {
61+
@@ -564,7 +580,11 @@ static int esp_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
62+
esp_dbg("\n");
63+
64+
if (params->key_len == 0) {
65+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
66+
+ return esp_cfg80211_del_key(wiphy, wdev, ZERO_LINK_ID key_index, pairwise, mac_addr);
67+
+#else
68+
return esp_cfg80211_del_key(wiphy, dev, ZERO_LINK_ID key_index, pairwise, mac_addr);
69+
+#endif
70+
}
71+
return cmd_add_key(priv, key_index, pairwise, mac_addr, params);
72+
}
73+
@@ -783,9 +803,16 @@ static int esp_cfg80211_set_tx_power(struct wiphy *wiphy,
74+
return cmd_set_tx_power(priv, priv->tx_pwr);
75+
}
76+
77+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
78+
+static int esp_cfg80211_get_station(struct wiphy *wiphy, struct wireless_dev *wdev,
79+
+ const u8 *mac, struct station_info *sinfo)
80+
+{
81+
+ struct net_device *ndev = wdev->netdev;
82+
+#else
83+
static int esp_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev,
84+
const u8 *mac, struct station_info *sinfo)
85+
{
86+
+#endif
87+
struct esp_wifi_device *priv = NULL;
88+
89+
priv = netdev_priv(ndev);
90+
@@ -1034,9 +1061,16 @@ static int esp_cfg80211_probe_client(struct wiphy *wiphy, struct net_device *dev
91+
return 0;
92+
}
93+
94+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
95+
+static int esp_cfg80211_del_station(struct wiphy *wiphy, struct wireless_dev *wdev,
96+
+ struct station_del_parameters *params)
97+
+{
98+
+ struct net_device *dev = wdev->netdev;
99+
+#else
100+
static int esp_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
101+
struct station_del_parameters *params)
102+
{
103+
+#endif
104+
struct esp_wifi_device *priv = NULL;
105+
106+
if (!wiphy || !dev) {
107+
@@ -1055,10 +1089,18 @@ static int esp_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
108+
return 0;
109+
}
110+
111+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
112+
+static int esp_cfg80211_add_station(struct wiphy *wiphy, struct wireless_dev *wdev,
113+
+ const u8 *mac,
114+
+ struct station_parameters *params)
115+
+{
116+
+ struct net_device *dev = wdev->netdev;
117+
+#else
118+
static int esp_cfg80211_add_station(struct wiphy *wiphy, struct net_device *dev,
119+
const u8 *mac,
120+
struct station_parameters *params)
121+
{
122+
+#endif
123+
struct esp_wifi_device *priv = NULL;
124+
125+
if (!wiphy || !dev) {
126+
@@ -1078,10 +1120,18 @@ static int esp_cfg80211_add_station(struct wiphy *wiphy, struct net_device *dev,
127+
return 0;
128+
}
129+
130+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 1, 0))
131+
+static int esp_cfg80211_change_station(struct wiphy *wiphy,
132+
+ struct wireless_dev *wdev, const u8 *mac,
133+
+ struct station_parameters *params)
134+
+{
135+
+ struct net_device *dev = wdev->netdev;
136+
+#else
137+
static int esp_cfg80211_change_station(struct wiphy *wiphy,
138+
struct net_device *dev, const u8 *mac,
139+
struct station_parameters *params)
140+
{
141+
+#endif
142+
struct esp_wifi_device *priv = NULL;
143+
144+
if (!wiphy || !dev) {
145+
--
146+
2.47.3
147+

0 commit comments

Comments
 (0)