]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
testsuite: refactor kernel config search
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
Wed, 15 Feb 2017 21:26:41 +0000 (21:26 +0000)
committerStephen Hemminger <sthemmin@microsoft.com>
Fri, 17 Feb 2017 23:26:30 +0000 (15:26 -0800)
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
testsuite/Makefile

index 50a7bafaca89764d0e9a661216bb021aa7cb95ab..fc6933689b244efcd9ced95c90731d9c08785a7f 100644 (file)
@@ -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