OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright (C) 2017 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | include $(INCLUDE_DIR)/kernel.mk |
||
10 | |||
11 | PKG_NAME:=rtc-sd2068 |
||
12 | PKG_RELEASE:=1 |
||
13 | |||
14 | include $(INCLUDE_DIR)/package.mk |
||
15 | |||
16 | define KernelPackage/rtc-sd2068 |
||
17 | SUBMENU:=Other modules |
||
18 | DEPENDS:=@TARGET_ar71xx |
||
19 | KCONFIG:=CONFIG_RTC_CLASS=y |
||
20 | TITLE:=Driver for RTC SD2068 |
||
21 | AUTOLOAD:=$(call AutoLoad,70,rtc-sd2068) |
||
22 | FILES:=$(PKG_BUILD_DIR)/rtc-sd2068.ko |
||
23 | endef |
||
24 | |||
25 | define Build/Prepare |
||
26 | mkdir -p $(PKG_BUILD_DIR) |
||
27 | $(CP) ./src/* $(PKG_BUILD_DIR)/ |
||
28 | endef |
||
29 | |||
30 | define Build/Compile |
||
31 | $(MAKE) -C "$(LINUX_DIR)" \ |
||
32 | CROSS_COMPILE="$(TARGET_CROSS)" \ |
||
33 | ARCH="$(LINUX_KARCH)" \ |
||
34 | SUBDIRS="$(PKG_BUILD_DIR)" \ |
||
35 | EXTRA_CFLAGS="$(BUILDFLAGS)" \ |
||
36 | modules |
||
37 | endef |
||
38 | |||
39 | $(eval $(call KernelPackage,rtc-sd2068)) |