1 # SPDX-License-Identifier: GPL-2.0-only
6 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
7 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
8 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
11 $(call feature_check,libtraceevent)
12 ifeq ($(feature-libtraceevent), 1)
13 $(call detected,CONFIG_LIBTRACEEVENT)
14 $(call lib_setup,traceevent)
17 $(info libtraceevent is missing. Please install libtraceevent-dev/libtraceevent-devel)
20 $(call feature_check,libtracefs)
21 ifeq ($(feature-libtracefs), 1)
22 $(call detected,CONFIG_LIBTRACEFS)
23 $(call lib_setup,tracefs)
26 $(info libtracefs is missing. Please install libtracefs-dev/libtracefs-devel)
29 ifeq ($(STOP_ERROR),1)
30 $(error Please, check the errors above.)