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 <phil@nwl.cc>
This commit is contained in:
parent
886f2c43b5
commit
3cef95926b
|
|
@ -15,6 +15,12 @@ IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*))
|
||||||
|
|
||||||
ifneq (,$(wildcard /proc/config.gz))
|
ifneq (,$(wildcard /proc/config.gz))
|
||||||
KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG)
|
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
|
endif
|
||||||
|
|
||||||
.PHONY: compile listtests alltests configure $(TESTS)
|
.PHONY: compile listtests alltests configure $(TESTS)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue