Root/package/rtc-rv5c386a/Makefile

1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=rtc-rv5c386a
12PKG_RELEASE:=1
13
14include $(INCLUDE_DIR)/package.mk
15
16define KernelPackage/rtc-rv5c386a
17  SUBMENU:=Other modules
18  DEPENDS:=@TARGET_brcm_2_4||TARGET_brcm47xx
19  TITLE:=Driver for RTC RV5C386A (used in WL-700gE and WL-HDD)
20  AUTOLOAD:=$(call AutoLoad,70,rtc)
21  FILES:=$(PKG_BUILD_DIR)/rtc.$(LINUX_KMOD_SUFFIX)
22endef
23
24define Build/Prepare
25    mkdir -p $(PKG_BUILD_DIR)
26    $(CP) ./src/* $(PKG_BUILD_DIR)/
27endef
28
29ifeq ($(BOARD),brcm-2.4)
30    BUILDFLAGS=-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DLINUX_2_4
31endif
32
33define Build/Compile
34    $(MAKE) -C "$(LINUX_DIR)" \
35        CROSS_COMPILE="$(TARGET_CROSS)" \
36        ARCH="$(LINUX_KARCH)" \
37        SUBDIRS="$(PKG_BUILD_DIR)" \
38        EXTRA_CFLAGS="$(BUILDFLAGS)" \
39        modules
40endef
41
42$(eval $(call KernelPackage,rtc-rv5c386a))
43

Archive Download this file



interactive