|
@@ -77,6 +77,9 @@ include config/utilities.mak
|
|
# Define NO_AUXTRACE if you do not want AUX area tracing support
|
|
# Define NO_AUXTRACE if you do not want AUX area tracing support
|
|
#
|
|
#
|
|
# Define NO_LIBBPF if you do not want BPF support
|
|
# Define NO_LIBBPF if you do not want BPF support
|
|
|
|
+#
|
|
|
|
+# Define FEATURES_DUMP to provide features detection dump file
|
|
|
|
+# and bypass the feature detection
|
|
|
|
|
|
# As per kernel Makefile, avoid funny character set dependencies
|
|
# As per kernel Makefile, avoid funny character set dependencies
|
|
unexport LC_ALL
|
|
unexport LC_ALL
|
|
@@ -166,6 +169,15 @@ ifeq ($(config),1)
|
|
include config/Makefile
|
|
include config/Makefile
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+# The FEATURE_DUMP_EXPORT holds location of the actual
|
|
|
|
+# FEATURE_DUMP file to be used to bypass feature detection
|
|
|
|
+# (for bpf or any other subproject)
|
|
|
|
+ifeq ($(FEATURES_DUMP),)
|
|
|
|
+FEATURE_DUMP_EXPORT := $(realpath $(OUTPUT)FEATURE-DUMP)
|
|
|
|
+else
|
|
|
|
+FEATURE_DUMP_EXPORT := $(FEATURES_DUMP)
|
|
|
|
+endif
|
|
|
|
+
|
|
export prefix bindir sharedir sysconfdir DESTDIR
|
|
export prefix bindir sharedir sysconfdir DESTDIR
|
|
|
|
|
|
# sparse is architecture-neutral, which means that we need to tell it
|
|
# sparse is architecture-neutral, which means that we need to tell it
|
|
@@ -436,7 +448,7 @@ $(LIBAPI)-clean:
|
|
$(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null
|
|
$(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null
|
|
|
|
|
|
$(LIBBPF): fixdep FORCE
|
|
$(LIBBPF): fixdep FORCE
|
|
- $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a FEATURES_DUMP=$(realpath $(OUTPUT)FEATURE-DUMP)
|
|
|
|
|
|
+ $(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a FEATURES_DUMP=$(FEATURE_DUMP_EXPORT)
|
|
|
|
|
|
$(LIBBPF)-clean:
|
|
$(LIBBPF)-clean:
|
|
$(call QUIET_CLEAN, libbpf)
|
|
$(call QUIET_CLEAN, libbpf)
|