[source] ramips: fix mt76x8 dependencies

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 4 23:16:25 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/5117911d91c0d047971f592086dc6b9be65b5103

commit 5117911d91c0d047971f592086dc6b9be65b5103
Author: John Crispin <john at phrozen.org>
AuthorDate: Tue Sep 5 08:08:36 2017 +0200

    ramips: fix mt76x8 dependencies
    
    The commit merging mt7628 and mt7688 failed to update some
    dependencies.
    
    Signed-off-by: John Crispin <john at phrozen.org>
---
 package/kernel/mt76/Makefile   | 2 +-
 target/linux/ramips/modules.mk | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index 8fa3267..2a10f1a 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -96,7 +96,7 @@ endef
 
 define KernelPackage/mt7603/install
 	$(INSTALL_DIR) $(1)/lib/firmware
-	cp $(if $(CONFIG_TARGET_ramips_mt7628)$(CONFIG_TARGET_ramips_mt7688), \
+	cp $(if $(CONFIG_TARGET_ramips_mt76x8), \
 		$(PKG_BUILD_DIR)/firmware/mt7628_e1.bin \
 		$(PKG_BUILD_DIR)/firmware/mt7628_e2.bin \
 		,\
diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk
index 870f2d5..95dfd78 100644
--- a/target/linux/ramips/modules.mk
+++ b/target/linux/ramips/modules.mk
@@ -10,7 +10,7 @@ OTHER_MENU:=Other modules
 define KernelPackage/pwm-mediatek
   SUBMENU:=Other modules
   TITLE:=MT7628 PWM
-  DEPENDS:=@(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+  DEPENDS:=@(TARGET_ramips_mt76x8)
   KCONFIG:= \
 	CONFIG_PWM=y \
 	CONFIG_PWM_MEDIATEK \
@@ -29,7 +29,7 @@ $(eval $(call KernelPackage,pwm-mediatek))
 define KernelPackage/sdhci-mt7620
   SUBMENU:=Other modules
   TITLE:=MT7620 SDCI
-  DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621||TARGET_ramips_mt7688) +kmod-mmc
+  DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt76x8||TARGET_ramips_mt7621) +kmod-mmc
   KCONFIG:= \
 	CONFIG_MTK_MMC \
 	CONFIG_MTK_AEE_KDUMP=n \
@@ -48,7 +48,7 @@ define KernelPackage/i2c-ralink
   $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
   TITLE:=Ralink I2C Controller
   DEPENDS:=kmod-i2c-core @TARGET_ramips \
-	@!(TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+	@!(TARGET_ramips_mt7621||TARGET_ramips_mt76x8)
 endef
 
 define KernelPackage/i2c-ralink/description
@@ -65,7 +65,7 @@ define KernelPackage/i2c-mt7628
   $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
   TITLE:=MT7628/88 I2C Controller
   DEPENDS:=kmod-i2c-core \
-	@(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+	@(TARGET_ramips_mt76x8)
 endef
 
 define KernelPackage/i2c-mt7628/description



More information about the lede-commits mailing list