From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Tue, 7 Nov 2017 15:05:54 +0000 Message-Id: <20171107150558.22131-7-alex.bennee@linaro.org> In-Reply-To: <20171107150558.22131-1-alex.bennee@linaro.org> References: <20171107150558.22131-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RISU PATCH 06/10] configure: support CPPFLAGS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: Dave.Martin@arm.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= 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(+) 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 -- 2.14.2