mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
1d96f6863e
The config for LEDS_UBNT_LEDBAR doesn't stay in mt7629 kconfig because
of its I2C dependency. Build it as a module and let buildroot handle
this config option instead.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry picked from commit d9ea9c06e9
)
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
define KernelPackage/ata-ahci-mtk
|
|
TITLE:=Mediatek AHCI Serial ATA support
|
|
KCONFIG:=CONFIG_AHCI_MTK
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/ata/ahci_mtk.ko \
|
|
$(LINUX_DIR)/drivers/ata/libahci_platform.ko
|
|
AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_mtk,1)
|
|
$(call AddDepends/ata)
|
|
DEPENDS+=@(TARGET_mediatek_mt7622||TARGET_mediatek_mt7623)
|
|
endef
|
|
|
|
define KernelPackage/ata-ahci-mtk/description
|
|
Mediatek AHCI Serial ATA host controllers
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,ata-ahci-mtk))
|
|
|
|
define KernelPackage/btmtkuart
|
|
SUBMENU:=Other modules
|
|
TITLE:=MediaTek HCI UART driver
|
|
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-bluetooth +mt7622bt-firmware
|
|
KCONFIG:=CONFIG_BT_MTKUART
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/bluetooth/btmtkuart.ko
|
|
AUTOLOAD:=$(call AutoProbe,btmtkuart)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,btmtkuart))
|
|
|
|
define KernelPackage/sdhci-mtk
|
|
SUBMENU:=Other modules
|
|
TITLE:=Mediatek SDHCI driver
|
|
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-sdhci
|
|
KCONFIG:=CONFIG_MMC_MTK
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
|
|
AUTOLOAD:=$(call AutoProbe,mtk-sd,1)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,sdhci-mtk))
|
|
|
|
define KernelPackage/leds-ubnt-ledbar
|
|
SUBMENU:=LED modules
|
|
TITLE:=Ubiquiti UniFi 6 LR LED support
|
|
KCONFIG:=CONFIG_LEDS_UBNT_LEDBAR
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/leds/leds-ubnt-ledbar.ko
|
|
AUTOLOAD:=$(call AutoProbe,leds-ubnt-ledbar,1)
|
|
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-i2c-core
|
|
endef
|
|
|
|
define KernelPackage/leds-ubnt-ledbar/description
|
|
LED support for Ubiquiti UniFi 6 LR
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,leds-ubnt-ledbar))
|