From: Phil Sutter Subject: [iproute PATCH v2 2/2] testsuite: Search kernel config in modules dir also Date: Thu, 9 Feb 2017 11:50:55 +0100 Message-ID: <20170209105055.2477-3-phil@nwl.cc> References: <20170209105055.2477-1-phil@nwl.cc> Cc: netdev@vger.kernel.org To: Stephen Hemminger Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:54829 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbdBILAh (ORCPT ); Thu, 9 Feb 2017 06:00:37 -0500 In-Reply-To: <20170209105055.2477-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- testsuite/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/Makefile b/testsuite/Makefile index fa7ddb8620754..50a7bafaca897 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) -- 2.11.0