Makefile 763 B

123456789101112131415161718192021222324252627282930313233
  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. CROSS_COMPILE="$(TARGET_CROSS)" \
  22. ARCH="$(LINUX_KARCH)" \
  23. SUBDIRS="$(PKG_BUILD_DIR)" \
  24. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  25. modules
  26. endef
  27. $(eval $(call KernelPackage,rtc-rv5c386a))