testsuite: search for kernel config in /boot

Add support for finding the kernel config in Debian
and derivatives.

Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
This commit is contained in:
Asbjørn Sloth Tønnesen 2017-02-15 21:26:42 +00:00 committed by Stephen Hemminger
parent 3064a44c69
commit d754a64aed

View File

@ -17,7 +17,7 @@ ifneq (,$(wildcard /proc/config.gz))
KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG)
else else
KVER := $(shell uname -r) KVER := $(shell uname -r)
KCPATHS := /lib/modules/$(KVER)/config KCPATHS := /lib/modules/$(KVER)/config /boot/config-$(KVER)
KCPATH := $(firstword $(wildcard $(KCPATHS))) KCPATH := $(firstword $(wildcard $(KCPATHS)))
ifneq (,$(KCPATH)) ifneq (,$(KCPATH))
KENV := $(shell cat ${KCPATH} | grep ^CONFIG) KENV := $(shell cat ${KCPATH} | grep ^CONFIG)