Skip to content

Commit 937c3ea

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: kernel: switch back 5.15 to fw_devlink=permissive kernel: netconsole: add network console logging support sdk: add spidev-test to the bundle of userspace sources kernel: backport mtk wlan flow offloading fix mbedtls: build with PIC
2 parents 34ac4cf + f1b8180 commit 937c3ea

File tree

6 files changed

+91
-4
lines changed

6 files changed

+91
-4
lines changed

package/kernel/linux/modules/netsupport.mk

+16
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,22 @@ endef
13141314
$(eval $(call KernelPackage,wireguard))
13151315

13161316

1317+
define KernelPackage/netconsole
1318+
SUBMENU:=$(NETWORK_SUPPORT_MENU)
1319+
TITLE:=Network console logging support
1320+
KCONFIG:=CONFIG_NETCONSOLE \
1321+
CONFIG_NETCONSOLE_DYNAMIC=n
1322+
FILES:=$(LINUX_DIR)/drivers/net/netconsole.ko
1323+
AUTOLOAD:=$(call AutoProbe,netconsole)
1324+
endef
1325+
1326+
define KernelPackage/netconsole/description
1327+
Network console logging support.
1328+
endef
1329+
1330+
$(eval $(call KernelPackage,netconsole))
1331+
1332+
13171333
define KernelPackage/qrtr
13181334
SUBMENU:=$(NETWORK_SUPPORT_MENU)
13191335
TITLE:=Qualcomm IPC Router support

package/libs/mbedtls/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ ifneq ($(CONFIG_LIBMBEDTLS_HAVE_ARMV8CE_AES),)
127127
endif
128128

129129
CMAKE_OPTIONS += \
130+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
130131
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
131132
-DENABLE_TESTING:Bool=OFF \
132133
-DENABLE_PROGRAMS:Bool=ON

package/utils/spidev_test/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ include $(INCLUDE_DIR)/kernel.mk
1010

1111
PKG_NAME:=spidev-test
1212
PKG_RELEASE:=$(LINUX_VERSION)
13-
PKG_FLAGS:=nonshared
1413
PKG_BUILD_DIR:=$(LINUX_DIR)/tools/spi-$(TARGET_DIR_NAME)
1514
PKG_BUILD_PARALLEL:=1
1615

@@ -19,7 +18,7 @@ include $(INCLUDE_DIR)/package.mk
1918
define Package/spidev-test
2019
SECTION:=utils
2120
CATEGORY:=Utilities
22-
DEPENDS:=+PACKAGE_kmod-spi-dev:kmod-spi-dev @!IN_SDK
21+
DEPENDS:=+kmod-spi-dev
2322
TITLE:=SPI testing utility
2423
VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
2524
URL:=http://www.kernel.org
@@ -30,6 +29,8 @@ define Package/spidev-test/description
3029
endef
3130

3231
define Build/Prepare
32+
# For SDK: Sources are copied by target/sdk/Makefile's
33+
# USERSPACE_UTILS(_FILES)
3334
$(CP) $(LINUX_DIR)/tools/spi/* $(PKG_BUILD_DIR)/
3435
endef
3536

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From: Jakub Kicinski <[email protected]>
2+
Date: Thu, 19 May 2022 18:25:55 -0700
3+
Subject: [PATCH] eth: mtk_ppe: fix up after merge
4+
5+
I missed this in the barrage of GCC 12 warnings. Commit cf2df74e202d
6+
("net: fix dev_fill_forward_path with pppoe + bridge") changed
7+
the pointer into an array.
8+
9+
Fixes: d7e6f5836038 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
10+
Link: https://lore.kernel.org/r/[email protected]
11+
Signed-off-by: Jakub Kicinski <[email protected]>
12+
---
13+
14+
--- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
15+
+++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
16+
@@ -90,10 +90,11 @@ mtk_flow_get_wdma_info(struct net_device
17+
{
18+
struct net_device_path_ctx ctx = {
19+
.dev = dev,
20+
- .daddr = addr,
21+
};
22+
struct net_device_path path = {};
23+
24+
+ memcpy(ctx.daddr, addr, sizeof(ctx.daddr));
25+
+
26+
if (!IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED))
27+
return -1;
28+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
2+
Date: Tue, 19 Jul 2022 06:17:48 +0200
3+
Subject: [PATCH] Revert "Revert "Revert "driver core: Set fw_devlink=on by
4+
default"""
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
This reverts commit ea718c699055c8566eb64432388a04974c43b2ea.
10+
11+
With of_platform_populate() called for MTD partitions that commit breaks
12+
probing devices which reference MTD in device tree.
13+
14+
Link: https://lore.kernel.org/all/[email protected]/T/#u
15+
Signed-off-by: Rafał Miłecki <[email protected]>
16+
---
17+
drivers/base/core.c | 2 +-
18+
1 file changed, 1 insertion(+), 1 deletion(-)
19+
20+
--- a/drivers/base/core.c
21+
+++ b/drivers/base/core.c
22+
@@ -1561,7 +1561,7 @@ static void device_links_purge(struct de
23+
#define FW_DEVLINK_FLAGS_RPM (FW_DEVLINK_FLAGS_ON | \
24+
DL_FLAG_PM_RUNTIME)
25+
26+
-static u32 fw_devlink_flags = FW_DEVLINK_FLAGS_ON;
27+
+static u32 fw_devlink_flags = FW_DEVLINK_FLAGS_PERMISSIVE;
28+
static int __init fw_devlink_setup(char *arg)
29+
{
30+
if (!arg)

target/sdk/Makefile

+13-2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ KERNEL_FILES_BASE := \
8282

8383
KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(KERNEL_FILES_BASE))))
8484

85+
# The kernel source hosts various userspace utilities sources.
86+
# These are packaged separately from the kernel and kernel modules.
87+
# The source has to be included here to be buildable by the SDK.
88+
#
89+
USERSPACE_UTILS_FILES := \
90+
tools/build \
91+
tools/scripts \
92+
tools/usb/usbip \
93+
tools/spi
94+
95+
USERSPACE_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(USERSPACE_UTILS_FILES))))
96+
8597
all: compile
8698

8799
$(BIN_DIR)/$(SDK_NAME).tar.xz: clean
@@ -100,8 +112,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean
100112
$(SDK_DIRS) $(KERNEL_FILES) | \
101113
$(TAR) -xf - -C $(SDK_BUILD_DIR)
102114

103-
# Copy usbip sources, this is required for the usbip userspace packages to be buildable by the SDK.
104-
$(TAR) -cf - -C $(TOPDIR) $(KDIR_BASE)/tools/usb/usbip/ | \
115+
$(TAR) -cf - -C $(TOPDIR) $(USERSPACE_FILES) | \
105116
$(TAR) -xf - -C $(SDK_BUILD_DIR)
106117

107118
(cd $(SDK_BUILD_DIR); find $(STAGING_SUBDIR_HOST)/bin $(STAGING_SUBDIR_HOST)/usr/bin \

0 commit comments

Comments
 (0)