mediatek: build ubnt-ledbar as a module
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>
This commit is contained in:
parent
dcf7285b71
commit
d9ea9c06e9
4 changed files with 18 additions and 4 deletions
|
@ -228,7 +228,7 @@ define Device/ubnt_unifi-6-lr
|
||||||
DEVICE_DTS_CONFIG := config@1
|
DEVICE_DTS_CONFIG := config@1
|
||||||
DEVICE_DTS := mt7622-ubnt-unifi-6-lr
|
DEVICE_DTS := mt7622-ubnt-unifi-6-lr
|
||||||
DEVICE_DTS_DIR := ../dts
|
DEVICE_DTS_DIR := ../dts
|
||||||
DEVICE_PACKAGES := kmod-mt7915e
|
DEVICE_PACKAGES := kmod-mt7915e kmod-leds-ubnt-ledbar
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += ubnt_unifi-6-lr
|
TARGET_DEVICES += ubnt_unifi-6-lr
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ define Device/ubnt_unifi-6-lr-ubootmod
|
||||||
DEVICE_VARIANT := U-Boot mod
|
DEVICE_VARIANT := U-Boot mod
|
||||||
DEVICE_DTS := mt7622-ubnt-unifi-6-lr-ubootmod
|
DEVICE_DTS := mt7622-ubnt-unifi-6-lr-ubootmod
|
||||||
DEVICE_DTS_DIR := ../dts
|
DEVICE_DTS_DIR := ../dts
|
||||||
DEVICE_PACKAGES := kmod-mt7915e
|
DEVICE_PACKAGES := kmod-mt7915e kmod-leds-ubnt-ledbar
|
||||||
KERNEL := kernel-bin | lzma
|
KERNEL := kernel-bin | lzma
|
||||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||||
|
|
|
@ -38,3 +38,19 @@ define KernelPackage/sdhci-mtk
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,sdhci-mtk))
|
$(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))
|
||||||
|
|
|
@ -222,7 +222,6 @@ CONFIG_IRQ_TIME_ACCOUNTING=y
|
||||||
CONFIG_IRQ_WORK=y
|
CONFIG_IRQ_WORK=y
|
||||||
CONFIG_JBD2=y
|
CONFIG_JBD2=y
|
||||||
CONFIG_JUMP_LABEL=y
|
CONFIG_JUMP_LABEL=y
|
||||||
CONFIG_LEDS_UBNT_LEDBAR=y
|
|
||||||
CONFIG_LIBFDT=y
|
CONFIG_LIBFDT=y
|
||||||
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
||||||
CONFIG_LOCK_SPIN_ON_OWNER=y
|
CONFIG_LOCK_SPIN_ON_OWNER=y
|
||||||
|
|
|
@ -297,7 +297,6 @@ CONFIG_KMAP_LOCAL_NON_LINEAR_PTE_ARRAY=y
|
||||||
CONFIG_LCD_CLASS_DEVICE=y
|
CONFIG_LCD_CLASS_DEVICE=y
|
||||||
CONFIG_LCD_PLATFORM=y
|
CONFIG_LCD_PLATFORM=y
|
||||||
CONFIG_LEDS_MT6323=y
|
CONFIG_LEDS_MT6323=y
|
||||||
# CONFIG_LEDS_UBNT_LEDBAR is not set
|
|
||||||
CONFIG_LIBFDT=y
|
CONFIG_LIBFDT=y
|
||||||
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
||||||
CONFIG_LOCK_SPIN_ON_OWNER=y
|
CONFIG_LOCK_SPIN_ON_OWNER=y
|
||||||
|
|
Loading…
Reference in a new issue