BROM loads 4K of boot0 code (=bootstrap) make sure the first level bootcode fits...
[AROS.git] / arch / arm-sun4i / bootstrap / mmakefile.src
blob3d48dc94cac485309d18b74f44d12d4f4ec25496
1 # $Id$
2 include $(TOP)/config/make.cfg
4 TARGETDIR       := $(GENDIR)/$(CURDIR)
5 FILES           := bootstrap
7 #MM- sun4i-bootstrap: sun4i-bootstrap-img
9 #MM
10 sun4i-bootstrap-img: $(foreach f, $(FILES), $(TARGETDIR)/$(f).o $(TARGETDIR)/$(f).d)
11         $(KERNEL_LD) -s --entry=bootstrap --script=$(SRCDIR)/$(CURDIR)/ldscript.lds -Map $(TARGETDIR)/sun4i-bootstrap-img.map $(foreach f, $(FILES), $(TARGETDIR)/$(f).o) -L$(AROS_LIB) -o $(TARGETDIR)/sun4i-bootstrap-img
12         $(OBJDUMP) -D $(TARGETDIR)/sun4i-bootstrap-img >>$(TARGETDIR)/sun4i-bootstrap-img.asm
13         $(TARGET_OBJCOPY) -O binary $(TARGETDIR)/sun4i-bootstrap-img
14         $(MKSUNXIBOOT) $(TARGETDIR)/sun4i-bootstrap-img $(AROSDIR)/sun4i-bootstrap-img
16 #MM
17 clean ::
18         -$(RM) $(TESTS)
20 $(TARGETDIR)/%.o : %.c
21         %compile_q 
23 $(TARGETDIR)/%.o : %.S
24         %compile_q 
26 $(TARGETDIR)/%.d : %.c
27         %mkdepend_q
29 DEPS    := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)
31 -include $(DEPS)
33 %common