Makefile 726 B

1234567891011121314151617181920212223242526272829303132
  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. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=rtc-rv5c386a
  10. PKG_RELEASE:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define KernelPackage/rtc-rv5c386a
  13. SUBMENU:=Other modules
  14. DEPENDS:=@TARGET_brcm47xx @!IN_SDK
  15. TITLE:=Driver for RTC RV5C386A (used in WL-700gE and WL-HDD)
  16. AUTOLOAD:=$(call AutoLoad,70,rtc)
  17. FILES:=$(PKG_BUILD_DIR)/rtc.ko
  18. endef
  19. define Build/Compile
  20. $(MAKE) -C "$(LINUX_DIR)" \
  21. $(KERNEL_MAKE_FLAGS) \
  22. SUBDIRS="$(PKG_BUILD_DIR)" \
  23. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  24. modules
  25. endef
  26. $(eval $(call KernelPackage,rtc-rv5c386a))