]> Git Repo - qemu.git/commitdiff
spapr/rtas: Force big endian compile for rtas
authorAlexey Kardashevskiy <[email protected]>
Wed, 12 Jun 2019 02:07:23 +0000 (12:07 +1000)
committerDavid Gibson <[email protected]>
Mon, 1 Jul 2019 23:43:58 +0000 (09:43 +1000)
At the moment the rtas's Makefile uses generic QEMU rules which means
that when QEMU is compiled on a little endian system, the spapr-rtas.bin
is compiled as little endian too which is incorrect as it is always
executed in big endian mode.

This enforces -mbig by defining %.o:%.S rule as spapr-rtas.bin is
a standalone guest binary which should not depend on QEMU flags anyway.

Signed-off-by: Alexey Kardashevskiy <[email protected]>
Message-Id: <20190612020723[email protected]>
Signed-off-by: David Gibson <[email protected]>
pc-bios/spapr-rtas/Makefile

index f26dd428b79e6676c1b55f28659f170fca3f5e18..4b9bb1230658852d2bfa7b2fd5f104791127d24b 100644 (file)
@@ -14,8 +14,11 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/spapr-rtas)
 
 build-all: spapr-rtas.bin
 
+%.o: %.S
+       $(call quiet-command,$(CCAS) -mbig -c -o $@ $<,"CCAS","$(TARGET_DIR)$@")
+
 %.img: %.o
-       $(call quiet-command,$(CC) -nostdlib -o $@ $<,"Building","$(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) -nostdlib -mbig -o $@ $<,"Building","$(TARGET_DIR)$@")
 
 %.bin: %.img
        $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"Building","$(TARGET_DIR)$@")
This page took 0.027324 seconds and 4 git commands to generate.