[PATCH 6/6] ubnt-ledbar: depend on mediatek and ramips subtargets
    Tomasz Maciej Nowak 
    tmn505 at terefe.re
       
    Thu Apr 27 07:34:49 PDT 2023
    
    
  
From: Tomasz Maciej Nowak <tmn505 at gmail.com>
It's only used on devices in mt7621 and mt7622 subtargets, so no reason
to compile it for others.
Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
 package/kernel/ubnt-ledbar/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/kernel/ubnt-ledbar/Makefile b/package/kernel/ubnt-ledbar/Makefile
index 90eccf1c21b3..69236ffbb330 100644
--- a/package/kernel/ubnt-ledbar/Makefile
+++ b/package/kernel/ubnt-ledbar/Makefile
@@ -20,7 +20,7 @@ define KernelPackage/leds-ubnt-ledbar
   FILES:= \
 	$(PKG_BUILD_DIR)/leds-ubnt-ledbar.ko
   AUTOLOAD:=$(call AutoProbe,leds-ubnt-ledbar,1)
-  DEPENDS:=+kmod-i2c-core
+  DEPENDS:=@TARGET_mediatek_mt7622||TARGET_ramips_mt7621 +kmod-i2c-core
 endef
 
 define KernelPackage/leds-ubnt-ledbar/description
-- 
2.40.1
    
    
More information about the openwrt-devel
mailing list