Makefile 842 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  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/Prepare
  20. mkdir -p $(PKG_BUILD_DIR)
  21. $(CP) ./src/* $(PKG_BUILD_DIR)/
  22. endef
  23. define Build/Compile
  24. $(MAKE) -C "$(LINUX_DIR)" \
  25. CROSS_COMPILE="$(TARGET_CROSS)" \
  26. ARCH="$(LINUX_KARCH)" \
  27. SUBDIRS="$(PKG_BUILD_DIR)" \
  28. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  29. modules
  30. endef
  31. $(eval $(call KernelPackage,rtc-rv5c386a))