Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5iIh-0006do-Bw for qemu-devel@nongnu.org; Sun, 17 May 2009 11:29:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5iIc-0006Yk-Q2 for qemu-devel@nongnu.org; Sun, 17 May 2009 11:29:18 -0400 Received: from [199.232.76.173] (port=42892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5iIc-0006YZ-EG for qemu-devel@nongnu.org; Sun, 17 May 2009 11:29:14 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:50464) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5iIb-0005YB-UW for qemu-devel@nongnu.org; Sun, 17 May 2009 11:29:14 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e35.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n4HFN0tl023062 for ; Sun, 17 May 2009 09:23:00 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n4HFTC9Y151622 for ; Sun, 17 May 2009 09:29:12 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n4HFTBRM027389 for ; Sun, 17 May 2009 09:29:12 -0600 From: Anthony Liguori Date: Sun, 17 May 2009 10:29:01 -0500 Message-Id: <1242574141-18488-5-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1242574141-18488-1-git-send-email-aliguori@us.ibm.com> References: <1242574141-18488-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 4/4] Allow tool chain to be specified for bios build List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Glauber Costa , Anthony Liguori , Alex Graf , Avi Kivity , Dustin Kirkland Signed-off-by: Anthony Liguori --- Makefile.target | 8 ++++++-- configure | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/Makefile.target b/Makefile.target index 567618b..7f67734 100644 --- a/Makefile.target +++ b/Makefile.target @@ -715,8 +715,12 @@ endif # Per architecture ROMS ROMS= ifeq ($(TARGET_BASE_ARCH),i386) +ifneq ($(BCC),) +ifneq ($(GCC_I386),) ROMS+=gplbios vgabios endif +endif +endif vl.o: qemu-options.h @@ -742,7 +746,7 @@ qemu-options.h: $(SRC_PATH)/qemu-options.hx roms: @if test "$(ROMS)" ; then \ for subdir in $(ROMS); do \ - $(MAKE) -C roms/$${subdir} VPATH=$(SRC_PATH)/roms/$${subdir} ;\ + $(MAKE) -C roms/$${subdir} VPATH=$(SRC_PATH)/roms/$${subdir} "BCC=$(BCC)" "GCC32=$(GCC_I386)";\ done; \ fi @@ -750,7 +754,7 @@ clean: rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o qemu-options.h gdbstub-xml.c rm -f *.d */*.d tcg/*.o for subdir in $(ROMS); do \ - $(MAKE) -C $${subdir} clean \ + $(MAKE) -C roms/$${subdir} clean; \ done install: all diff --git a/configure b/configure index 29a13ca..6f9a152 100755 --- a/configure +++ b/configure @@ -194,6 +194,10 @@ fdt="yes" sdl_x11="no" xen="yes" pkgversion="" +have_bcc="yes" +bcc="bcc" +have_gcc_i386="yes" +gcc_i386="gcc -m32 -fno-stack-protector" # OS specific if check_define __linux__ ; then @@ -1262,6 +1266,40 @@ if test "$rt" = "yes" ; then CLOCKLIBS="-lrt" fi +# FIXME +# check for iasl and as86 + +######################################### +# Check for BCC +cat > $TMPC < /dev/null 2> /dev/null ; then + : + else + have_bcc="no" + fi +fi + +######################################### +# Check for GCC on i386 +cat > $TMPC < /dev/null 2> /dev/null ; then + : + else + have_gcc_i386="no" + fi +fi + if test "$mingw32" = "yes" ; then if test -z "$prefix" ; then prefix="c:\\\\Program Files\\\\Qemu" @@ -1714,6 +1752,14 @@ else exit 1 fi +if test "$have_bcc" = "yes" ; then + echo "BCC=$bcc" >> $config_mak +fi + +if test "$have_gcc_i386" = "yes" ; then + echo "GCC_I386=$gcc_i386" >> $config_mak +fi + tools= if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then tools="qemu-img\$(EXESUF) $tools" -- 1.6.2.5