[openwrt/openwrt] bcm27xx: Make kernel modules depend on target

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 25 16:47:53 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/27643ebfa9fd4d522b842badd4b8187dcd42e8e5

commit 27643ebfa9fd4d522b842badd4b8187dcd42e8e5
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Jul 21 00:23:56 2025 +0200

    bcm27xx: Make kernel modules depend on target
    
    The kmod-rpi-panel-attiny-regulator and kmod-rpi-panel-7inch-touchscreen
    are included in target modules.mk file, they should also depend on the target,
    otherwise they can be selected from every target.
    
    Fix the AutoProbe for panel-raspberrypi-touchscreen too.
    
    Link: https://github.com/openwrt/openwrt/pull/19480
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/bcm27xx/modules/video.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/bcm27xx/modules/video.mk b/target/linux/bcm27xx/modules/video.mk
index 39774a3320..14d5de0de8 100644
--- a/target/linux/bcm27xx/modules/video.mk
+++ b/target/linux/bcm27xx/modules/video.mk
@@ -45,7 +45,7 @@ define KernelPackage/rpi-panel-attiny-regulator
   KCONFIG:=CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
   FILES:=$(LINUX_DIR)/drivers/regulator/rpi-panel-attiny-regulator.ko
   AUTOLOAD:=$(call AutoLoad,67,rpi-panel-attiny-regulator)
-  DEPENDS:=+kmod-regmap-i2c +kmod-backlight
+  DEPENDS:=@TARGET_bcm27xx +kmod-regmap-i2c +kmod-backlight
 endef
 
 define KernelPackage/rpi-panel-attiny-regulator/description
@@ -64,8 +64,8 @@ define KernelPackage/rpi-panel-7inch-touchscreen
     CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN
     CONFIG_DRM_MIPI_DSI=y
   FILES:=$(LINUX_DIR)/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.ko
-  AUTOLOAD:=$(call AutoProbe,/panel-raspberrypi-touchscreen)
-  DEPENDS:=+kmod-drm
+  AUTOLOAD:=$(call AutoProbe,panel-raspberrypi-touchscreen)
+  DEPENDS:=@TARGET_bcm27xx +kmod-drm
 endef
 
 define KernelPackage/rpi-panel-7inch-touchscreen/description




More information about the lede-commits mailing list