From ca32fc23d485a828ee90b74a0c96bcea95f40e45 Mon Sep 17 00:00:00 2001
From: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: Tue, 28 Jun 2022 17:17:44 +0200
Subject: [PATCH] net: Add dummy nft_reject_ipv[46].ko files

This is a dummy file to please the OpenWrt build system which no longer
supports 4.19. Until we have found a better solution, this hack will
please the OpenWrt build system. Since the kernel or the modules
compiled from this repo never end up in the image that ends up on the
device, the effort spent on maintaining the package dependency hierarchy
for 4.19 in the OpenWrt build system is futile. If we ever go for a full
integration (with its own downsides in terms of maintenance cost), then
we have to maintain our own 4.19-based kernel-packages.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
---
 net/ipv4/netfilter/nft_reject_ipv4.ko | 6 ++++++
 net/ipv6/netfilter/nft_reject_ipv6.ko | 6 ++++++
 2 files changed, 12 insertions(+)
 create mode 100644 net/ipv4/netfilter/nft_reject_ipv4.ko
 create mode 100644 net/ipv6/netfilter/nft_reject_ipv6.ko

diff --git a/net/ipv4/netfilter/nft_reject_ipv4.ko b/net/ipv4/netfilter/nft_reject_ipv4.ko
new file mode 100644
index 0000000000..58b529a745
--- /dev/null
+++ b/net/ipv4/netfilter/nft_reject_ipv4.ko
@@ -0,0 +1,6 @@
+This is a dummy file to please the OpenWrt build system which no longer
+supports 4.19. Until we have found a better solution, this will please the
+OpenWrt build system. Since the kernel or the modules compiled from this repo
+never end up in the image that ends up on the device, the effort spent on
+maintaining the package dependency hierarchy for 4.19 in the OpenWrt build
+system is futile.
diff --git a/net/ipv6/netfilter/nft_reject_ipv6.ko b/net/ipv6/netfilter/nft_reject_ipv6.ko
new file mode 100644
index 0000000000..58b529a745
--- /dev/null
+++ b/net/ipv6/netfilter/nft_reject_ipv6.ko
@@ -0,0 +1,6 @@
+This is a dummy file to please the OpenWrt build system which no longer
+supports 4.19. Until we have found a better solution, this will please the
+OpenWrt build system. Since the kernel or the modules compiled from this repo
+never end up in the image that ends up on the device, the effort spent on
+maintaining the package dependency hierarchy for 4.19 in the OpenWrt build
+system is futile.
-- 
GitLab