Skip to content

Commit

Permalink
Disable some features only in 23.05
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Aug 11, 2024
1 parent 81d8a69 commit ce7619a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions net/mimic/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit ce7619a

Please sign in to comment.