Cross Reference:
xref
: /
vbox
/
src
/
VBox
/
Devices
/
PC
/
Etherboot-src
/
arch
/
armnommu
/
Makefile
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
Makefile revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
2
N/A
ARCH_FORMAT
=
armnommu
2
N/A
2
N/A
ROMLIMIT
=
20480
2
N/A
CHECKSIZE
=
{
read
d1
;
read
d1
d2
d3
size
d4
; [ $
$size
-
gt
$(
ROMLIMIT
)
] &&\
2
N/A
{
$(
RM
)
$@;
echo
"ERROR: code size exceeds limit!"
;
exit
1
; }
;
exit
0
; }
2
N/A
2
N/A
START
=
$(
BIN
)
/
start.o
2
N/A
2
N/A
SRCS
+=
arch
/
armnommu
/
core
/
arm_timer.c
2
N/A
SRCS
+=
arch
/
armnommu
/
core
/
start.S
2
N/A
SRCS
+=
arch
/
armnommu
/
core
/
serial.c
2
N/A
SRCS
+=
arch
/
armnommu
/
core
/
mem.c
2
N/A
SRCS
+=
arch
/
armnommu
/
core
/
setjmp.S
2
N/A
SRCS
+=
arch
/
armnommu
/
drivers
/
net
/
p2001_eth.c
2
N/A
2
N/A
# not greater than 100kB
2
N/A
ROMLIMIT
:=
1024000
2
N/A
2
N/A
include
$(
BIN
)
/
Roms
2
N/A
2
N/A
ROMS
=
$(
BIN
)
/
p2001_eth.rom
2
N/A
IMGS
=
$(
BIN
)
/
p2001_eth.img
2
N/A
2
N/A
2
N/A
allfiles
:
$(
ROMS
)
2
N/A
2
N/A
BOBJS
+=
$(
BIN
)
/
arm_timer.o
2
N/A
BOBJS
+=
$(
BIN
)
/
serial.o
2
N/A
BOBJS
+=
$(
BIN
)
/
mem.o
2
N/A
BOBJS
+=
$(
BIN
)
/
setjmp.o
2
N/A
BOBJS
+=
$(
BIN
)
/
lib1funcs.o
2
N/A
2
N/A
# Utilities
2
N/A
2
N/A
$(
BIN
)
/
nrv2b
:
util
/
nrv2b.c
2
N/A
$(
HOST_CC
)
-
O2
-
DENCODE
-
DDECODE
-
DMAIN
-
DVERBOSE
-
DNDEBUG
-
DBITSIZE
=
32
-
DENDIAN
=
0
-o $@ $<
2
N/A
2
N/A
# Pattern Rules
2
N/A
# General for
compiling
/
assembly
source files
2
N/A
$(
BIN
)
/%.o:
arch
/
armnommu
/
core
/%.c
$(
MAKEDEPS
)
2
N/A
$(
CC
)
$(
CFLAGS
)
-o $@ -c $<
2
N/A
2
N/A
$(
BIN
)
/%.o:
arch
/
armnommu
/
drivers
/
net
/%.c
$(
MAKEDEPS
)
2
N/A
$(
CC
)
$(
CFLAGS
)
-o $@ -c $<
2
N/A
2
N/A
$(
BIN
)
/%.S:
arch
/
armnommu
/
core
/%.c
$(
MAKEDEPS
)
2
N/A
$(
CC
)
$(
CFLAGS
)
-S -o $@ -c $<
2
N/A
2
N/A
$(
BIN
)
/%.o:
arch
/
armnommu
/
core
/%.S
$(
MAKEDEPS
)
2
N/A
$(
CPP
)
$(
CFLAGS
)
-D
ASSEMBLY
$< |
$(
AS
)
$(
ASFLAGS
)
-o $@
2
N/A
2
N/A
# general ruls for generating .img files
2
N/A
$(
BIN
)
/%.
tmp
:
$(
BIN
)
/%.o
$(
START
)
$(
BIN
)
/
config.o
arch
/
$(
ARCH
)
/
core
/
etherboot.lds
$(
LIBS
)
$(
STDDEPS
)
$(
MAKEDEPS
)
2
N/A
$(
LD
)
$(
LDFLAGS
)
-T
arch
/
$(
ARCH
)
/
core
/
etherboot.lds
-o $@
$(
START
)
$(
BIN
)
/
config.o
$<
$(
LIBS
)
2
N/A
@
$(
SIZE
)
$@ |
$(
CHECKSIZE
)
2
N/A
2
N/A
$(
BIN
)
/%.
img
:
$(
BIN
)
/%.
tmp
$(
MAKEDEPS
)
2
N/A
$(
OBJCOPY
)
-O
binary
$< $@
2
N/A