summaryrefslogtreecommitdiffstats
path: root/qemu/roms/qemu-palcode/Makefile
diff options
context:
space:
mode:
authorYang Zhang <yang.z.zhang@intel.com>2015-08-28 09:58:54 +0800
committerYang Zhang <yang.z.zhang@intel.com>2015-09-01 12:44:00 +0800
commite44e3482bdb4d0ebde2d8b41830ac2cdb07948fb (patch)
tree66b09f592c55df2878107a468a91d21506104d3f /qemu/roms/qemu-palcode/Makefile
parent9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (diff)
Add qemu 2.4.0
Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5 Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Diffstat (limited to 'qemu/roms/qemu-palcode/Makefile')
-rw-r--r--qemu/roms/qemu-palcode/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/qemu/roms/qemu-palcode/Makefile b/qemu/roms/qemu-palcode/Makefile
new file mode 100644
index 000000000..202559931
--- /dev/null
+++ b/qemu/roms/qemu-palcode/Makefile
@@ -0,0 +1,35 @@
+CROSS = alphaev67-linux-
+CC = $(CROSS)gcc
+LD = $(CROSS)ld
+
+CORE = typhoon
+SYSTEM = clipper
+
+ASFLAGS = -Wa,-m21264 -Wa,--noexecstack
+OPT= -O2
+CFLAGS = $(OPT) -g1 -Wall -fvisibility=hidden -fno-strict-aliasing \
+ -msmall-text -msmall-data -mno-fp-regs -mbuild-constants
+CPPFLAGS = -DSYSTEM_H='"sys-$(SYSTEM).h"'
+
+CFLAGS += -mcpu=ev67
+
+OBJS = pal.o sys-$(SYSTEM).o init.o crb.o uart.o console.o console-low.o \
+ ps2port.o pci.o vgaio.o vgatables.o vgafonts.o \
+ printf.o util.o memset.o memcpy.o strlen.o
+
+all: palcode-$(SYSTEM)
+
+palcode-$(SYSTEM): palcode.ld $(OBJS)
+ $(LD) -relax -o $@ -T palcode.ld -Map $@.map $(OBJS)
+
+clean:
+ rm -f *.o
+ rm -f palcode-*
+
+pal.o: pal.S osf.h sys-$(SYSTEM).h core-$(CORE).h
+init.o: init.c hwrpb.h osf.h uart.h sys-$(SYSTEM).h core-$(CORE).h
+printf.o: printf.c uart.h
+uart.o: uart.c uart.h protos.h
+crb.o: crb.c hwrpb.h protos.h console.h uart.h
+console.o: console.c console.h protos.h
+pci.o: pci.c protos.h pci.h pci_regs.h