Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0-only
2
3STOP_ERROR :=
4
5define lib_setup
6 $(eval EXTLIBS += -l$(1))
7 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
8endef
9
10$(call feature_check,libtraceevent)
11ifeq ($(feature-libtraceevent), 1)
12 $(call detected,CONFIG_LIBTRACEEVENT)
13 $(call lib_setup,traceevent)
14else
15 STOP_ERROR := 1
16 $(info libtraceevent is missing. Please install libtraceevent-dev/libtraceevent-devel)
17endif
18
19$(call feature_check,libtracefs)
20ifeq ($(feature-libtracefs), 1)
21 $(call detected,CONFIG_LIBTRACEFS)
22 $(call lib_setup,tracefs)
23else
24 STOP_ERROR := 1
25 $(info libtracefs is missing. Please install libtracefs-dev/libtracefs-devel)
26endif
27
28ifeq ($(STOP_ERROR),1)
29 $(error Please, check the errors above.)
30endif