1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/net/siit/Makefile
John Thomson 3e8e55b43a siit: fix kernel 5.16 compile
siit-1.2/siit.c:1379:9: error: implicit declaration of function
'random_ether_addr' [-Werror=implicit-function-declaration]
 1379 |         random_ether_addr(dev->dev_addr);
      |         ^~~~~~~~~~~~~~~~~

Linux 3.6 renamed random_ether_addr to eth_random_addr [0]
Linux 5.16 removed random_ether_addr [1]

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a4dd594982a321699000218715e28664ec49169
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ba530fea8ca1b57ee71d4e62f287a5d7ed92f789

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
2022-11-15 07:24:53 -08:00

43 lines
960 B
Makefile

#
# Copyright (C) 2006-2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=siit
PKG_VERSION:=1.2
PKG_RELEASE:=4
PKG_LICENSE:=GPL-2.0-or-later
include $(INCLUDE_DIR)/package.mk
define KernelPackage/siit
SUBMENU:=Network Devices
TITLE:=Stateless IP ICMP Translation Algorithm
DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab))
FILES:=$(PKG_BUILD_DIR)/siit.ko
AUTOLOAD:=$(call AutoLoad,50,siit)
MAINTAINER:=Vladimir Ulrich <admin@evl.su>
endef
include $(INCLUDE_DIR)/kernel-defaults.mk
define KernelPackage/siit/description
Stateless IP ICMP Translation Algorithm
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) $(KERNEL_MAKEOPTS) M="$(PKG_BUILD_DIR)" modules
endef
$(eval $(call KernelPackage,siit))