VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/arch/e1/Makefile.working@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1ARCH_FORMAT= coff-e1
2
3CC= e1-coff-gcc
4AS= e1-coff-as
5LD= e1-coff-ld
6SIZE= e1-coff-size
7AR= e1-coff-ar
8RANLIB= e1-coff-ranlib
9OBJCOPY=e1-coff-objcopy
10
11EXTRA_CFLAGS = -DEMBEDDED -DMAC_HW_ADDR_DRV="'H','Y','L','N','X','1'"
12
13BUILD_ROMS= $(ROMS)
14BUILD_COFFS= $(BIN)/cs89x0.coff
15#BUILD_COFFS= $(patsubst %img, %coff, $(IMGS))
16
17START= $(BIN)/start.o
18START16= $(BIN)/start.o
19
20#SRCS+= arch/e1/core/coff_loader.c
21SRCS+= arch/e1/core/e132_xs.c
22SRCS+= arch/e1/core/e1_timer.c
23SRCS+= arch/e1/core/longjmp.c
24SRCS+= arch/e1/core/memcmp.S
25SRCS+= arch/e1/core/memcpy.S
26SRCS+= arch/e1/core/memset.S
27SRCS+= arch/e1/core/setjmp.c
28SRCS+= arch/e1/core/strcmp.S
29SRCS+= arch/e1/core/start.S
30
31ROMLIMIT:=3276800
32
33include $(BIN)/Roms
34
35hyperstone: $(BUILD_COFFS)
36coff: $(BUILD_COFFS)
37
38BOBJS+= $(BIN)/e1_timer.o
39BOBJS+= $(BIN)/memcmp.o $(BIN)/memcpy.o $(BIN)/memset.o
40BOBJS+= $(BIN)/setjmp.o $(BIN)/longjmp.o
41BOBJS+= $(BIN)/e132_xs.o
42
43# Utilities
44
45$(BIN)/nrv2b: util/nrv2b.c
46 $(HOST_CC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 -o $@ $<
47
48# Pattern Rules
49# General for compiling/assembly source files
50
51$(BIN)/cs89x0.o: drivers/net/cs89x0.c $(MAKEDEPS)
52 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $<
53# With the current tools we have problem with the compilation
54# of the vsprintf file when the -O2 is selected. So we compile
55# the aforemntioned file with -O1 !!!
56$(BIN)/vsprintf.o: core/vsprintf.c $(MAKEDEPS)
57 $(CC) $(CFLAGS) -O1 -o $@ -c $<
58
59$(BIN)/%.o: arch/e1/core/%.c $(MAKEDEPS)
60 $(CC) $(CFLAGS) -o $@ -c $<
61
62$(BIN)/%.o: arch/e1/core/%.S $(MAKEDEPS)
63 $(CPP) $(CFLAGS) -D ASSEMBLY $< | $(AS) $(ASFLAGS) -o $@
64
65$(BIN)/%.coff: $(BIN)/%.tmp $(MAKEDEPS)
66 mv $< $(BIN)/etherboot.coff
67
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette