mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-26 00:22:47 +00:00
a564e1df52
1fdf2a3 Fix kernel panic due to device deletion (#29) e7b48d1 add the mutex lock for create/delete/config/insert nat46 devices to fix nat46 module crash issues. (#28) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
36 lines
940 B
Makefile
36 lines
940 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=nat46
|
|
|
|
PKG_MIRROR_HASH:=5e7ebe31311a7b79f9eda222e94170611b3e041e3a472f55b6a283d9b0093bd4
|
|
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
|
|
PKG_SOURCE_DATE:=2021-11-08
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=1fdf2a3cf90843ef65b8e84ff25d5e0507eaa3fe
|
|
|
|
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/nat46
|
|
DEPENDS:=@IPV6
|
|
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))
|