From: Asbjørn Sloth Tønnesen Date: Wed, 15 Feb 2017 21:26:41 +0000 (+0000) Subject: testsuite: refactor kernel config search X-Git-Tag: v4.10.0~5^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3064a44c6979805a4bef836f00e854d437cc89cd;p=thirdparty%2Fiproute2.git testsuite: refactor kernel config search Signed-off-by: Asbjørn Sloth Tønnesen --- diff --git a/testsuite/Makefile b/testsuite/Makefile index 50a7bafac..fc6933689 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -17,8 +17,9 @@ 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})) +KCPATHS := /lib/modules/$(KVER)/config +KCPATH := $(firstword $(wildcard $(KCPATHS))) +ifneq (,$(KCPATH)) KENV := $(shell cat ${KCPATH} | grep ^CONFIG) endif endif