diff --git a/testsuite/Makefile b/testsuite/Makefile index fa7ddb86..50a7bafa 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -15,6 +15,12 @@ IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*)) ifneq (,$(wildcard /proc/config.gz)) KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) +else +KVER := $(shell uname -r) +KCPATH := /lib/modules/${KVER}/config +ifneq (,$(wildcard ${KCPATH})) + KENV := $(shell cat ${KCPATH} | grep ^CONFIG) +endif endif .PHONY: compile listtests alltests configure $(TESTS)