VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/arch/e1/Makefile@ 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.8 KB
Line 
1ARCH_FORMAT= coff-e1
2
3BUILD_ROMS= $(ROMS)
4BUILD_COFFS= $(patsubst %img, %coff, $(IMGS))
5SUFFIXES+= rom zrom coff
6
7CC= e1-coff-gcc
8AS= e1-coff-as
9LD= e1-coff-ld
10SIZE= e1-coff-size
11AR= e1-coff-ar
12RANLIB= e1-coff-ranlib
13OBJCOPY=e1-coff-objcopy
14
15# DMAC_HW_ADDR_DRV holds the ethernet's MAC address. It is passed as
16# flag to the low level driver instead of reading it from an
17# external EEPROM, which we do not have!
18EXTRA_CFLAGS = -DEMBEDDED -DMAC_HW_ADDR_DRV="'H','Y','L','N','X','1'"
19
20START= $(BIN)/start.o
21START16= $(BIN)/start.o
22
23SRCS+= arch/e1/core/e132_xs.c
24SRCS+= arch/e1/core/e1_timer.c
25SRCS+= arch/e1/core/longjmp.c
26SRCS+= arch/e1/core/memcmp.S
27SRCS+= arch/e1/core/memcpy.S
28SRCS+= arch/e1/core/memset.S
29SRCS+= arch/e1/core/setjmp.c
30SRCS+= arch/e1/core/strcmp.S
31SRCS+= arch/e1/core/start.S
32
33ROMLIMIT:=3276800
34
35include $(BIN)/Roms
36
37ROMS= $(BIN)/cs89x0.rom
38IMGS= $(BIN)/cs89x0.img
39
40#allfiles: $(BUILD_ROMS)
41all: $(BUILD_COFFS)
42
43BOBJS+= $(BIN)/e1_timer.o
44BOBJS+= $(BIN)/memcmp.o $(BIN)/memcpy.o $(BIN)/memset.o
45BOBJS+= $(BIN)/setjmp.o $(BIN)/longjmp.o
46BOBJS+= $(BIN)/e132_xs.o
47
48# Utilities
49
50$(BIN)/nrv2b: util/nrv2b.c
51 $(HOST_CC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 -o $@ $<
52
53# Pattern Rules
54# General for compiling/assembly source files
55$(BIN)/cs89x0.o: drivers/net/cs89x0.c $(MAKEDEPS)
56 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $<
57# With the current tools we have problem with the compilation
58# of the vsprintf file when the -O2 is selected. So we compile
59# the aforemntioned file with -O1 !!!
60$(BIN)/vsprintf.o: core/vsprintf.c $(MAKEDEPS)
61 $(CC) $(CFLAGS) -O1 -o $@ -c $<
62
63$(BIN)/%.o: arch/e1/core/%.c $(MAKEDEPS)
64 $(CC) $(CFLAGS) -o $@ -c $<
65
66$(BIN)/%.o: arch/e1/core/%.S $(MAKEDEPS)
67 $(CPP) $(CFLAGS) -D ASSEMBLY $< | $(AS) $(ASFLAGS) -o $@
68
69$(BIN)/%.coff: $(BIN)/%.tmp $(MAKEDEPS)
70 mv $< $(BIN)/etherboot.coff
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