Добавлена утилита gpio-watch
[lede-packages.git] / ledtrig-morse / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ledtrig-morse
13 PKG_VERSION:=0.1
14 PKG_RELEASE:=2
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17
18 include $(INCLUDE_DIR)/package.mk
19
20 MAKEFLAGS_KMOD:= -C "$(LINUX_DIR)" \
21                 CROSS_COMPILE="$(TARGET_CROSS)" \
22                 ARCH="$(LINUX_KARCH)" \
23                 PATH="$(TARGET_PATH)" \
24                 SUBDIRS="$(PKG_BUILD_DIR)"
25
26 define KernelPackage/ledtrig-morse
27   SUBMENU:=LED modules
28   DEPENDS:=
29   TITLE:=Kernel driver for Morse code LED trigger
30   FILES:=$(PKG_BUILD_DIR)/ledtrig_morse.$(LINUX_KMOD_SUFFIX)
31   VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE)
32   AUTOLOAD:=$(call AutoLoad,80,ledtrig_morse)
33 endef 
34
35 define KernelPackage/ledtrig-morse/description
36         Kernel driver for Morse code LED trigger
37 endef
38
39
40 define Build/Prepare
41         mkdir -p $(PKG_BUILD_DIR)
42         $(CP) ./src/* $(PKG_BUILD_DIR)/
43 endef
44
45 define Build/Compile
46         $(MAKE) $(MAKEFLAGS_KMOD) \
47                 modules
48 endef
49
50 $(eval $(call KernelPackage,ledtrig-morse))