From patchwork Tue Nov 7 15:05:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 118183 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp635292edm; Tue, 7 Nov 2017 07:09:15 -0800 (PST) X-Google-Smtp-Source: ABhQp+QLJkgBK3rx5nHhyoPGuU+f0WAMfTifKxsIuZgVUCAnc5Vq4gmhACmzM/34QcxJe12fr0+6 X-Received: by 10.13.229.131 with SMTP id o125mr11525604ywe.377.1510067355566; Tue, 07 Nov 2017 07:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510067355; cv=none; d=google.com; s=arc-20160816; b=T2KOQ/oliP2X2EJwfJIQgarpoL4iJcIOg7dxqooL5qmuIj2DxrM1UCbKbsC1WLO67Z 8rVgxIy0WBQCW2FayNq0ayOXXCLNPdFZssNVcSeCz4JVTqeMO89iNlcVYsDmUnEt9ljK Su3lEd3nWqf702hIWhY+WlV05wHMqbU6fOK4FT70qBccylWc9sYR3KL/+E2cjddqkPBW h1wRe/4nPY8hIRJluf0d98w6ypnNLyQg5qETjfBDdayWaZmsC4MB3XTlnunmv2xkBt5t EXy1TGsvgVmwguIlOZAS5kLKmZTwuj2NRXsoIjffqO2TB+VBE9F2hrwujhtkeW+wMpvm WPKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=nhgQm0xuKcZEhWSD6MkFSG+FskX5P235rYKC/aqc+00=; b=ppfw1PizpeSQnjsEus602o16Bse8CMe+xfeCw67+FCkWnC6nrXrO+E18wnOIHmPAH2 lUQ0AxmQXYJqTq1kaFUIKJmPb78L19WwVtaxphzfciLr4MHzYwHuGYWizkkuw4PowqlV /9CCHcmM+5o5psgOKUyjlD6q0ZNC7CFQtFbTaHXYXVndYIVWCfSmIdTdcLK7bNTasdMR JFYAyLCWZ0eTllmZWEfjJHa6Wu3bpVJTW+C0+Z7hC3U2517YIAHpgLAIE5092h2JQ2cu OUIRUYT8pnxE6bGPNGTXC8xiBPoz74JiVismbQefbhRsSbiRpoMJj+Dk3ZqbC45K8L1W R7wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LOzJ9uen; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t65si323336ywa.267.2017.11.07.07.09.15 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 07 Nov 2017 07:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LOzJ9uen; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC5V4-00075L-Vp for patch@linaro.org; Tue, 07 Nov 2017 10:09:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC5SF-0005nt-A0 for qemu-devel@nongnu.org; Tue, 07 Nov 2017 10:06:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC5SE-000054-9v for qemu-devel@nongnu.org; Tue, 07 Nov 2017 10:06:19 -0500 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:50542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eC5SE-0008WE-46 for qemu-devel@nongnu.org; Tue, 07 Nov 2017 10:06:18 -0500 Received: by mail-wr0-x242.google.com with SMTP id p96so12122640wrb.7 for ; Tue, 07 Nov 2017 07:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nhgQm0xuKcZEhWSD6MkFSG+FskX5P235rYKC/aqc+00=; b=LOzJ9uenQA7Iz8SHOjih15mz7Agnj/wobdE2hIvpxR5SsTh0t/HF7kxFvFP0u5IXRD 3ntPlcLCSzIN3cithJJFJhew3KOMwqIzcNU5UbvpsP+m6rwsZ/83AcmTPih9hk+WMEyD YJ8nnC7JWGYG3XlyipPvlEgq6cF75cfUNddmc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nhgQm0xuKcZEhWSD6MkFSG+FskX5P235rYKC/aqc+00=; b=nTKNKletHLMAlCtsOeMJTlXgIr98Me+bV1LCFFldyxmewCk1vuUYyV8WE0UH9Q0Cd4 GgrBiRT7MiFnyH4qQvzvoV1EJNDIkBlZGJISankHkQFKy+de65qABPir1CJtF7/Ycp4n ZYRUJnJe0WU2aB1uPmrbV7etRbH63vfeVVjNTBe57mUy5E3698cgmLNxur4TTf/px/a8 TPyn8rIxbUNl1a9HgcwoRFlUdO30KOyt7bysx3dDEHB7QfObKA/09rkXQB/6ucGZRiQf kvQiOpk3lh+k47jfAqWwVrFx82rMeUwx1nak1HGGjFuMB8CTUusGEawHbR+SnLC9HOKK HyGg== X-Gm-Message-State: AMCzsaU/i0plxYeUPNCbNVrlre62uax8JpA8g1Fp42DHRxxFjM2w2biu lBD+Fyt3ez+Ug9dOc9BprrKkrg== X-Received: by 10.223.154.184 with SMTP id a53mr17168342wrc.48.1510067177084; Tue, 07 Nov 2017 07:06:17 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e131sm20098565wmg.1.2017.11.07.07.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 07:06:15 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C8D0E3E0464; Tue, 7 Nov 2017 15:06:09 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 7 Nov 2017 15:05:54 +0000 Message-Id: <20171107150558.22131-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171107150558.22131-1-alex.bennee@linaro.org> References: <20171107150558.22131-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [RISU PATCH 06/10] configure: support CPPFLAGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Dave.Martin@arm.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Useful for accessing API's that are still brewing, e.g: CROSS_PREFIX=aarch64-linux-gnu- \ CPPFLAGS=-I/home/alex/lsrc/qemu/risu.git/sve-headers/include \ ../configure Signed-off-by: Alex Bennée --- README | 6 ++++++ configure | 1 + 2 files changed, 7 insertions(+) -- 2.14.2 diff --git a/README b/README index 9946e6e..fbe408d 100644 --- a/README +++ b/README @@ -26,6 +26,12 @@ Most useful is need this if you're not building on the target system (Example: CROSS_PREFIX=arm-linux-gnueabihf- ) +Another useful flag is + CPPFLAGS= which specified pre-processor flags, usually -I statements + for specifying extra include paths. Use this is you need something + from new kernel headers not installed on your system. + (Example: CPPFLAGS=-I/path/to/sve-kernel-headers/include) + Passing --static will build a statically linked binary which is useful if you don't want to mess around with a chroot to run the binary. diff --git a/configure b/configure index c622a5e..65e1819 100755 --- a/configure +++ b/configure @@ -111,6 +111,7 @@ generate_makefilein() { echo "# Makefile.in - generated by the 'configure' script" > $m echo "ARCH:=${ARCH}" >> $m echo "CC:=${CC}" >> $m + echo "CPPFLAGS:=${CPPFLAGS}" >> $m echo "LDFLAGS:=${LDFLAGS}" >> $m echo "AS:=${AS}" >> $m echo "OBJCOPY:=${OBJCOPY}" >> $m