Fix 32-bit overflow in parallels image support
[qemu-kvm/fedora.git] / kvm / user / config-powerpc.mak
blobec6086bf41af2d3ecb1bfc951649c152147b54c4
1 CFLAGS += -I../include/powerpc
2 CFLAGS += -Wa,-mregnames -I test/lib
3 CFLAGS += -ffreestanding
5 cstart := test/powerpc/cstart.o
7 cflatobjs += \
8 test/lib/powerpc/io.o
10 $(libcflat): LDFLAGS += -nostdlib
12 # these tests do not use libcflat
13 simpletests := \
14 test/powerpc/spin.bin \
15 test/powerpc/io.bin \
16 test/powerpc/sprg.bin
18 # theses tests use cstart.o, libcflat, and libgcc
19 tests := \
20 test/powerpc/exit.bin \
21 test/powerpc/helloworld.bin
23 include config-powerpc-$(PROCESSOR).mak
26 all: kvmtrace kvmctl $(libcflat) $(simpletests) $(tests)
28 $(simpletests): %.bin: %.o
29 $(CC) -nostdlib $^ -Wl,-T,flat.lds -o $@
31 $(tests): %.bin: $(cstart) %.o $(libcflat)
32 $(CC) -nostdlib $^ $(libgcc) -Wl,-T,flat.lds -o $@
34 kvmctl_objs = main-ppc.o iotable.o ../libkvm/libkvm.a
36 arch_clean:
37 $(RM) $(simpletests) $(tests) $(cstart)
38 $(RM) $(patsubst %.bin, %.elf, $(simpletests) $(tests))
39 $(RM) $(patsubst %.bin, %.o, $(simpletests) $(tests))