-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 788 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (31 loc) · 788 Bytes
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
35
36
37
38
39
40
#
# Copyright (C) 2020 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:=soft_pwm
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Elad Yifee <eladwf@gmail.com>
include $(INCLUDE_DIR)/package.mk
define KernelPackage/soft_pwm
SECTION:=kernel
SUBMENU:=Other modules
TITLE:=Soft pwm
FILES:=$(PKG_BUILD_DIR)/soft_pwm.ko
AUTOLOAD:=$(call AutoLoad,30,soft_pwm,1)
endef
define KernelPackage/soft_pwm/description
Enable soft-pwm.
endef
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(KERNEL_MAKE_FLAGS) \
M="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(BUILDFLAGS)" \
modules
endef
$(eval $(call KernelPackage,soft_pwm))