From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.kundenserver.de ([212.227.126.131]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XghJM-0001qg-UI for ptxdist@pengutronix.de; Tue, 21 Oct 2014 23:49:49 +0200 From: Alexander Dahl Date: Tue, 21 Oct 2014 23:49:13 +0200 Message-Id: <1413928155-14799-2-git-send-email-post@lespocky.de> In-Reply-To: <1413928155-14799-1-git-send-email-post@lespocky.de> References: <1413928155-14799-1-git-send-email-post@lespocky.de> Subject: [ptxdist] [PATCH 1/2] oprofile: fix kernel header path Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Alexander Dahl --- rules/oprofile.make | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rules/oprofile.make b/rules/oprofile.make index af4a883..dabf5f8 100644 --- a/rules/oprofile.make +++ b/rules/oprofile.make @@ -36,10 +36,15 @@ OPROFILE_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ --target=$(PTXCONF_GNU_TARGET) \ --disable-gui \ - --with-kernel=$(KERNEL_HEADERS_INCLUDE_DIR) \ --without-java \ --without-x +ifdef PTXCONF_KERNEL_HEADER + OPROFILE_CONF_OPT += --with-kernel=$(KERNEL_HEADERS_DIR) +else + OPROFILE_CONF_OPT += --without-kernel +endif + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de