Makefile 683 B

12345678910111213141516171819202122232425262728293031
  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_bcm47xx @!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. $(KERNEL_MAKE) \
  21. M="$(PKG_BUILD_DIR)" \
  22. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  23. modules
  24. endef
  25. $(eval $(call KernelPackage,rtc-rv5c386a))