aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/leds-ws2812b/Makefile
blob: 453d2590f653d1d61ba45432d9b3e0a4ac6cd3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=leds-ws2812b
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0

include $(INCLUDE_DIR)/package.mk

define KernelPackage/leds-ws2812b
  SUBMENU:=LED modules
  TITLE:=Worldsemi WS2812B (NeoPixel) LED support
  FILES:= \
	$(PKG_BUILD_DIR)/leds-ws2812b.ko
  AUTOLOAD:=$(call AutoProbe,leds-ws2812b,1)
  DEPENDS:=@TARGET_mediatek_filogic
endef

define KernelPackage/leds-ws2812b/description
  LED support for driving WS2812B (NeoPixel) using SPI MOSI.
endef

define Build/Compile
	$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
endef

$(eval $(call KernelPackage,leds-ws2812b))