Received: from eggs.gnu.org ([2001:4830:134:3::10]:60431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP4Sw-0006b6-JH for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:03:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP4Ss-0002Bm-Cl for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:03:53 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP4Ss-0002Be-5R for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:03:50 -0400 Received: by mail-wm0-x243.google.com with SMTP id o80so11661769wme.0 for ; Mon, 18 Jul 2016 02:03:49 -0700 (PDT) Sender: Paolo Bonzini References: <1468504347-6413-1-git-send-email-pbonzini@redhat.com> <1468504347-6413-2-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 18 Jul 2016 11:03:46 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 1/1] Add optionrom compatible with fw_cfg DMA version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: =?UTF-8?Q?Marc_Mar=c3=ad?= , qemu-devel , "Richard W . M . Jones" On 15/07/2016 15:26, Stefan Hajnoczi wrote: >> pc-bios/linuxboot_dma.bin | Bin 0 -> 1024 bytes >> pc-bios/optionrom/Makefile | 42 ++++-- >> pc-bios/optionrom/code16gcc.h | 3 + >> pc-bios/optionrom/linuxboot_dma.c | 294 ++++++++++++++++++++++++++++++++++++++ >> 10 files changed, 349 insertions(+), 13 deletions(-) >> create mode 100644 pc-bios/linuxboot_dma.bin >> create mode 100644 pc-bios/optionrom/code16gcc.h >> create mode 100644 pc-bios/optionrom/linuxboot_dma.c > > CC optionrom/linuxboot_dma.o > clang-3.8: error: unsupported argument '-32' to option 'Wa,' Please try this patch: diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index d88ce11..72abb3c 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -30,7 +30,7 @@ QEMU_INCLUDES += -I$(SRC_PATH) Wa = -Wa, ASFLAGS += -32 -QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), $(Wa)-32) +QEMU_CFLAGS += $(call cc-c-option, $(QEMU_CFLAGS), $(Wa)-32) build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin diff --git a/roms/ipxe b/roms/ipxe index 0418631..4e03af8 160000 --- a/roms/ipxe +++ b/roms/ipxe @@ -1 +1 @@ -Subproject commit 04186319181298083ef28695a8309028b26fe83c +Subproject commit 4e03af8ec2d497e725566a91fd5c19dd604c18a6 diff --git a/rules.mak b/rules.mak index ed8e482..99cd0b3 100644 --- a/rules.mak +++ b/rules.mak @@ -113,6 +113,8 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ >/dev/null 2>&1 && echo OK), $2, $3) +cc-c-option = $(if $(shell $(CC) $1 $2 -c -o /dev/null -xc /dev/null \ + >/dev/null 2>&1 && echo OK), $2, $3) VPATH_SUFFIXES = %.c %.h %.S %.cc %.cpp %.m %.mak %.texi %.sh %.rc set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))