From: Phil Sutter Date: Thu, 9 Feb 2017 10:50:55 +0000 (+0100) Subject: testsuite: Search kernel config in modules dir also X-Git-Tag: v4.10.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cef95926b3312a5a87c4faf06cc113cbce94ab1;p=thirdparty%2Fiproute2.git testsuite: Search kernel config in modules dir also At least in Fedora there is no /proc/config.gz but instead /lib/modules/`uname -r`/config, so use that as a fallback. Signed-off-by: Phil Sutter --- diff --git a/testsuite/Makefile b/testsuite/Makefile index fa7ddb862..50a7bafac 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)