mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix ndpi-netfilter compilation on 5.4
This commit is contained in:
parent
d5c8604783
commit
b58311efbf
2 changed files with 4 additions and 1 deletions
|
@ -48,6 +48,7 @@ MAKE_FLAGS += \
|
||||||
KERNEL_DIR="$(LINUX_DIR)" \
|
KERNEL_DIR="$(LINUX_DIR)" \
|
||||||
MODULES_DIR="$(TARGET_MODULES_DIR)" \
|
MODULES_DIR="$(TARGET_MODULES_DIR)" \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
|
KERNEL_RELEASE="$(KERNEL_PATCHVER)" \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
NDPI_PATH=$(PKG_BUILD_DIR)/ndpi-netfilter
|
NDPI_PATH=$(PKG_BUILD_DIR)/ndpi-netfilter
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
--- a/ndpi-netfilter/src/Makefile 2022-08-03 21:27:52.321058402 +0200
|
--- a/ndpi-netfilter/src/Makefile 2022-08-03 21:27:52.321058402 +0200
|
||||||
+++ b/ndpi-netfilter/src/Makefile 2022-08-03 21:28:27.572452447 +0200
|
+++ b/ndpi-netfilter/src/Makefile 2022-08-03 21:28:27.572452447 +0200
|
||||||
@@ -5,6 +5,9 @@
|
@@ -5,6 +5,11 @@
|
||||||
ccflags-y += -I${src}/${NDPI_SRC}/include -I${src}/${NDPI_SRC}/lib -I${src}/../libre -I${src}/${NDPI_SRC}/lib/third_party/include
|
ccflags-y += -I${src}/${NDPI_SRC}/include -I${src}/${NDPI_SRC}/lib -I${src}/../libre -I${src}/${NDPI_SRC}/lib/third_party/include
|
||||||
ccflags-y += -DHAVE_CONFIG_H -DNDPI_LIB_COMPILATION -DOPENDPI_NETFILTER_MODULE -DNDPI_DETECTION_SUPPORT_IPV6 -g
|
ccflags-y += -DHAVE_CONFIG_H -DNDPI_LIB_COMPILATION -DOPENDPI_NETFILTER_MODULE -DNDPI_DETECTION_SUPPORT_IPV6 -g
|
||||||
ccflags-y += -Wno-declaration-after-statement
|
ccflags-y += -Wno-declaration-after-statement
|
||||||
|
+ifeq ($(KERNEL_RELEASE),5.15)
|
||||||
+ifeq ($(ARCH),arm64)
|
+ifeq ($(ARCH),arm64)
|
||||||
+ ccflags-y += -mno-outline-atomics
|
+ ccflags-y += -mno-outline-atomics
|
||||||
|
+endif
|
||||||
+endif
|
+endif
|
||||||
#ccflags-y += -Wshadow-local
|
#ccflags-y += -Wshadow-local
|
||||||
# Needed for pahole
|
# Needed for pahole
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue