You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. From 905f3b7b6115f303f964b5aa1d3bc9bdae9d5bec Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Sat, 24 Feb 2018 13:46:31 +0800
  4. Subject: [PATCH] pc-bios: fix compilation when $(AS) is actually gcc driver
  5. ---
  6. pc-bios/optionrom/Makefile | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. --- a/pc-bios/optionrom/Makefile
  9. +++ b/pc-bios/optionrom/Makefile
  10. @@ -34,7 +34,7 @@ endif
  11. QEMU_INCLUDES += -I$(SRC_PATH)
  12. Wa = -Wa,
  13. -ASFLAGS += -32
  14. +ASFLAGS += $(Wa)-32
  15. QEMU_CFLAGS += $(call cc-c-option, $(QEMU_CFLAGS), $(Wa)-32)
  16. build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin pvh.bin
  17. @@ -44,7 +44,7 @@ build-all: multiboot.bin linuxboot.bin l
  18. %.o: %.S
  19. - $(call quiet-command,$(CPP) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o $@,"AS","$(TARGET_DIR)$@")
  20. + $(call quiet-command,$(CPP) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o $@ -x assembler -,"AS","$(TARGET_DIR)$@")
  21. pvh.img: pvh.o pvh_main.o
  22. $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m $(LD_I386_EMULATION) -T $(SRC_PATH)/pc-bios/optionrom/flat.lds -s -o $@ $^,"BUILD","$(TARGET_DIR)$@")