forked from Openwrt-EcoNet/openwrt
This new version introduces many compilation error fixes for the upcoming 6.12 kernel. Changelogs: 04923c5 "Fix build failures observed so far" - take three. b4263cc "Fix build failures observed so far" - take two. de595b4 Fix build failures observed so far 1c0066a Zero checksum handling for UDP4->UDP6 b42c37d Fix crash when viewing nat46 kernel module config 3a9f630 nat46-module: fix modpost warning 88b91ca gha: use checkout@v4 action instead of checkout@v2 84ba13a gha: enable github action on push/PR f367088 fix the compilation error 03c14bf gha: clean-up the yaml definition d964921 Create c-compile.yml cb69317 "Add network namespace awareness to nat46" - take two. 8302f42 Revert "Add network namespace awareness to nat46" 91b8e68 Add network namespace awareness to nat46 Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
36 lines
960 B
Makefile
36 lines
960 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=nat46
|
|
|
|
PKG_MIRROR_HASH:=35d7987eed7f05e5f7d1d2e111a8c9f5d019ccf11eb839dfe0bd2e2c46b6199a
|
|
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
|
|
PKG_SOURCE_DATE:=2025-04-23
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=04923c51039e8ca270c6f1dde3f04f3b36958089
|
|
|
|
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/nat46
|
|
DEPENDS:=@IPV6 +kmod-nf-conntrack6
|
|
TITLE:=Stateless NAT46 translation kernel module
|
|
SECTION:=kernel
|
|
SUBMENU:=Network Support
|
|
FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko
|
|
AUTOLOAD:=$(call AutoLoad,33,nat46)
|
|
endef
|
|
|
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
|
|
|
define Build/Compile
|
|
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)/nat46/modules" \
|
|
MODFLAGS="-DMODULE -mlong-calls" \
|
|
EXTRA_CFLAGS="-DNAT46_VERSION=\\\"$(PKG_SOURCE_VERSION)\\\"" \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,nat46))
|