2 include $(TOP)/config/make.cfg
4 TARGETDIR := $(GENDIR)/$(CURDIR)
7 #MM- sun4i-bootstrap: sun4i-bootstrap-img
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
20 $(TARGETDIR)/%.o : %.c
23 $(TARGETDIR)/%.o : %.S
26 $(TARGETDIR)/%.d : %.c
29 DEPS := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)