Makefile 946 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=nat46
  4. PKG_MIRROR_HASH:=3f5ef0a56e9b02c3ec10ec95f3f81c0ed04b983b2d857c16304c379106d6beb6
  5. PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
  6. PKG_SOURCE_DATE:=2017-05-12
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_VERSION:=683fbd2b765506332a1af141545652bf58f03166
  9. PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  10. PKG_LICENSE:=GPL-2.0
  11. include $(INCLUDE_DIR)/package.mk
  12. define KernelPackage/nat46
  13. DEPENDS:=@IPV6
  14. TITLE:=Stateless NAT46 translation kernel module
  15. SECTION:=kernel
  16. SUBMENU:=Network Support
  17. FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
  18. AUTOLOAD:=$(call AutoLoad,33,nat46)
  19. endef
  20. include $(INCLUDE_DIR)/kernel-defaults.mk
  21. define Build/Compile
  22. $(KERNEL_MAKE) SUBDIRS="$(PKG_BUILD_DIR)/nat46/modules" \
  23. MODFLAGS="-DMODULE -mlong-calls" \
  24. EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
  25. modules
  26. endef
  27. $(eval $(call KernelPackage,nat46))