Skip to contentSkip to conversation

Unbreak build after optionrom update.

PATCH Superseded Sean Bruno 2 participants 3 messages Jul 25, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Sean Bruno

author
#0 lore raw

PATCH 1/1 Unbreak build after optionrom update.

Update the build flags appropriately for FreeBSD and add the correct LD_EMULATION type for the FreeBSD build case.

---
 pc-bios/optionrom/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
pc-bios/optionrom/Makefile +7 -1
index d88ce11..38ee31b 100644
@@ -28,7 +28,9 @@ endif
 CFLAGS := $(filter -O% -g%, $(CFLAGS))
 QEMU_INCLUDES += -I$(SRC_PATH)
 
-Wa = -Wa,
+ifndef CONFIG_BSD
+Wa = -Wa
+endif
 ASFLAGS += -32
 QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), $(Wa)-32)
 
@@ -44,8 +46,12 @@ build-all: multiboot.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bin
 ifdef CONFIG_WIN32
 LD_EMULATION = i386pe
 else
+ifdef CONFIG_BSD
+LD_EMULATION = elf_i386_fbsd
+else
 LD_EMULATION = elf_i386
 endif
+endif
 
 %.img: %.o
 	$(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m $(LD_EMULATION) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
Signature · 1 line
2.8.4
#1 lore raw
Quoted 13 lines · Sean Bruno

Update the build flags appropriately for FreeBSD and add the correct LD_EMULATION type for the FreeBSD build case.

---
 pc-bios/optionrom/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
pc-bios/optionrom/Makefile +0 -0
index d88ce11..38ee31b 100644

pc-bios/optionrom/Makefile endif · line 33

Quoted 7 lines
pc-bios/optionrom/Makefile +3 -1
@@ -28,7 +28,9 @@ endif
 CFLAGS := $(filter -O% -g%, $(CFLAGS))
 QEMU_INCLUDES += -I$(SRC_PATH)
 
-Wa = -Wa,
+ifndef CONFIG_BSD
+Wa = -Wa
+endif

For non-BSD this used to be "-Wa," and now it is just "-Wa"...

thanks
-- PMM

author
#2 lore raw
Quoted 24 lines · Peter Maydell
Quoted 13 lines · Sean Bruno

Update the build flags appropriately for FreeBSD and add the correct LD_EMULATION type for the FreeBSD build case.

---
 pc-bios/optionrom/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
pc-bios/optionrom/Makefile +0 -0
index d88ce11..38ee31b 100644

pc-bios/optionrom/Makefile endif · line 33

Quoted 7 lines
pc-bios/optionrom/Makefile +3 -1
@@ -28,7 +28,9 @@ endif
 CFLAGS := $(filter -O% -g%, $(CFLAGS))
 QEMU_INCLUDES += -I$(SRC_PATH)
 
-Wa = -Wa,
+ifndef CONFIG_BSD
+Wa = -Wa
+endif

For non-BSD this used to be "-Wa," and now it is just "-Wa"...

Quoted 3 lines

thanks
-- PMM

Bah ... got happy with the "yyp" in vi. One sec, let me unbreak.

sean