summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator/Makefile
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2007-07-06 08:34:56 +0800
committerWolfgang Denk <wd@denx.de>2007-08-06 01:28:15 +0200
commitece92f85053b8df613edcf05b26a416cbc3d629c (patch)
tree2d3389882d0655781183c2fd655dc6746c5eeea1 /drivers/bios_emulator/Makefile
parent5072188acabde3178fac7f5a597150e6e74fd40c (diff)
downloadu-boot-imx-ece92f85053b8df613edcf05b26a416cbc3d629c.zip
u-boot-imx-ece92f85053b8df613edcf05b26a416cbc3d629c.tar.gz
u-boot-imx-ece92f85053b8df613edcf05b26a416cbc3d629c.tar.bz2
This is a BIOS emulator, porting from SciTech for u-boot, mainly for
ATI video card BIOS. and can be used for x86 code emulation by some modifications. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'drivers/bios_emulator/Makefile')
-rw-r--r--drivers/bios_emulator/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/bios_emulator/Makefile b/drivers/bios_emulator/Makefile
new file mode 100644
index 0000000..ba7d436
--- /dev/null
+++ b/drivers/bios_emulator/Makefile
@@ -0,0 +1,30 @@
+include $(TOPDIR)/config.mk
+
+LIB := libatibiosemu.a
+
+X86DIR = ./x86emu
+
+OBJS = atibios.o biosemu.o besys.o bios.o \
+ $(X86DIR)/decode.o \
+ $(X86DIR)/ops2.o \
+ $(X86DIR)/ops.o \
+ $(X86DIR)/prim_ops.o \
+ $(X86DIR)/sys.o \
+ $(X86DIR)/debug.o
+
+CFLAGS += -I. -I./include -I$(X86DIR) -I$(TOPDIR)/include \
+ -D__PPC__ -D__BIG_ENDIAN__
+
+all: $(LIB)
+
+$(LIB): $(OBJS)
+ $(AR) crv $@ $(OBJS)
+
+#########################################################################
+
+.depend: Makefile $(OBJS:.o=.c)
+ $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+
+sinclude .depend
+
+#########################################################################