File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
GENDIR := $(abspath ../../../../include/generated)
19
19
endif
20
20
GENHDR := $(GENDIR ) /autoconf.h
21
- HOSTPKG_CONFIG := pkg-config
21
+ PKG_CONFIG ?= $( CROSS_COMPILE ) pkg-config
22
22
23
23
ifneq ($(wildcard $(GENHDR ) ) ,)
24
24
GENFLAGS := -DHAVE_GENHDR
@@ -219,9 +219,9 @@ $(OUTPUT)/urandom_read: urandom_read.c urandom_read_aux.c $(OUTPUT)/liburandom_r
219
219
220
220
$(OUTPUT ) /sign-file : ../../../../scripts/sign-file.c
221
221
$(call msg,SIGN-FILE,,$@ )
222
- $(Q )$(CC ) $(shell $(HOSTPKG_CONFIG ) --cflags libcrypto 2> /dev/null) \
222
+ $(Q )$(CC ) $(shell $(PKG_CONFIG ) --cflags libcrypto 2> /dev/null) \
223
223
$< -o $@ \
224
- $(shell $(HOSTPKG_CONFIG ) --libs libcrypto 2> /dev/null || echo -lcrypto)
224
+ $(shell $(PKG_CONFIG ) --libs libcrypto 2> /dev/null || echo -lcrypto)
225
225
226
226
$(OUTPUT ) /bpf_testmod.ko : $(VMLINUX_BTF ) $(RESOLVE_BTFIDS ) $(wildcard bpf_testmod/Makefile bpf_testmod/* .[ch])
227
227
$(call msg,MOD,,$@ )
You can’t perform that action at this time.
0 commit comments