From ce7619abeb37f7ed644f006577f37e6ac28d383d Mon Sep 17 00:00:00 2001 From: Eric Long Date: Mon, 12 Aug 2024 00:13:35 +0800 Subject: [PATCH] Disable some features only in 23.05 --- net/mimic/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/mimic/Makefile b/net/mimic/Makefile index d2bed23..8924eed 100644 --- a/net/mimic/Makefile +++ b/net/mimic/Makefile @@ -1,6 +1,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/bpf.mk include $(INCLUDE_DIR)/kernel.mk +include $(INCLUDE_DIR)/version.mk PKG_NAME := mimic PKG_VERSION := v0.5.0-25-g078a1b7 @@ -48,10 +49,14 @@ mimic_cli_flags := \ ARGP_STANDALONE=1 \ CHECKSUM_HACK=kprobe \ RUNTIME_DIR=/var/run/mimic \ - ENABLE_BPF_DYNPTR=0 \ - ENABLE_XDP_FRAGS=0 \ STRIP_BTF_EXT=1 +ifeq ($(filter 23.05%,$(VERSION_NUMBER))) +mimic_cli_flags += \ + ENABLE_BPF_DYNPTR=0 \ + ENABLE_XDP_FRAGS=0 +endif + export BPF_CFLAGS := \ -I$(BPF_HEADERS_DIR)/user_headers/include \ -I$(STAGING_DIR)/usr/include \