kvm: rename kvm/user to kvm/test
[qemu-kvm/amd-iommu.git] / kvm / test / config-powerpc.mak
blobd053569b8aa3c6f344b9b87c22060e4dd7b80f4d
1 CFLAGS += -I../include/powerpc
2 CFLAGS += -Wa,-mregnames -I lib
3 CFLAGS += -ffreestanding
5 cstart := powerpc/cstart.o
7 cflatobjs += \
8 lib/powerpc/io.o
10 $(libcflat): LDFLAGS += -nostdlib
12 # these tests do not use libcflat
13 simpletests := \
14 powerpc/spin.bin \
15 powerpc/io.bin \
16 powerpc/sprg.bin
18 # theses tests use cstart.o, libcflat, and libgcc
19 tests := \
20 powerpc/exit.bin \
21 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))