VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/arch/armnommu/Makefile@ 1939

Last change on this file since 1939 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.6 KB
Line 
1ARCH_FORMAT= armnommu
2
3ROMLIMIT= 20480
4CHECKSIZE= { read d1; read d1 d2 d3 size d4; [ $$size -gt $(ROMLIMIT) ] &&\
5 { $(RM) $@; echo "ERROR: code size exceeds limit!"; exit 1; }; exit 0; }
6
7START= $(BIN)/start.o
8
9SRCS+= arch/armnommu/core/arm_timer.c
10SRCS+= arch/armnommu/core/start.S
11SRCS+= arch/armnommu/core/serial.c
12SRCS+= arch/armnommu/core/mem.c
13SRCS+= arch/armnommu/core/setjmp.S
14SRCS+= arch/armnommu/drivers/net/p2001_eth.c
15
16# not greater than 100kB
17ROMLIMIT:=1024000
18
19include $(BIN)/Roms
20
21ROMS= $(BIN)/p2001_eth.rom
22IMGS= $(BIN)/p2001_eth.img
23
24
25allfiles: $(ROMS)
26
27BOBJS+= $(BIN)/arm_timer.o
28BOBJS+= $(BIN)/serial.o
29BOBJS+= $(BIN)/mem.o
30BOBJS+= $(BIN)/setjmp.o
31BOBJS+= $(BIN)/lib1funcs.o
32
33# Utilities
34
35$(BIN)/nrv2b: util/nrv2b.c
36 $(HOST_CC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 -o $@ $<
37
38# Pattern Rules
39# General for compiling/assembly source files
40$(BIN)/%.o: arch/armnommu/core/%.c $(MAKEDEPS)
41 $(CC) $(CFLAGS) -o $@ -c $<
42
43$(BIN)/%.o: arch/armnommu/drivers/net/%.c $(MAKEDEPS)
44 $(CC) $(CFLAGS) -o $@ -c $<
45
46$(BIN)/%.S: arch/armnommu/core/%.c $(MAKEDEPS)
47 $(CC) $(CFLAGS) -S -o $@ -c $<
48
49$(BIN)/%.o: arch/armnommu/core/%.S $(MAKEDEPS)
50 $(CPP) $(CFLAGS) -D ASSEMBLY $< | $(AS) $(ASFLAGS) -o $@
51
52# general ruls for generating .img files
53$(BIN)/%.tmp: $(BIN)/%.o $(START) $(BIN)/config.o arch/$(ARCH)/core/etherboot.lds $(LIBS) $(STDDEPS) $(MAKEDEPS)
54 $(LD) $(LDFLAGS) -T arch/$(ARCH)/core/etherboot.lds -o $@ $(START) $(BIN)/config.o $< $(LIBS)
55 @$(SIZE) $@ | $(CHECKSIZE)
56
57$(BIN)/%.img: $(BIN)/%.tmp $(MAKEDEPS)
58 $(OBJCOPY) -O binary $< $@
Note: See TracBrowser for help on using the repository browser.

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