Start RAM code for updater

This commit is contained in:
2020-12-07 21:39:07 +01:00
parent c67298118e
commit a3e652ddb8
8 changed files with 470 additions and 2 deletions

View File

@@ -123,13 +123,17 @@ debug:
%.hex: %.elf
$(QUIET)$(OBJCOPY) -O ihex $^ $@
#Linking
$(target).elf: $(OBJ) $(ASOBJ) $(LINKER_SCRIPT)
$(target).elf: $(OBJ) $(ASOBJ) $(LINKER_SCRIPT) updater/ram-code/updater-ram-code.bin.c
@echo [LD] $@
$(QUIET)$(CC) $(LFLAGS) $(LIBRARYPATH) -o $@ $(OBJ) $(ASOBJ) $(LIBRARIES)
$(QUIET)$(SIZE) $@
@echo "Built Version $(GIT_VER)"
updater/ram-code/updater-ram-code.bin.c:
$(QUIET)$(MAKE) -C updater/ram-code updater-ram-code.bin.c
#Compiling
$(OBJ):
@echo [CC] $@
@@ -177,6 +181,7 @@ else
endif
$(QUIET)rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(ASOBJ) $(mapfile).map $(CFILES:%.c=$(OBJDIR)/%.c.d) $(ASFILES:%.S=$(OBJDIR)/%.S.d)
$(QUIET)rm -rf $(OBJDIR)/*
$(MAKE) -C updater/ram-code clean
ifneq ($(DEBUGBUILD),true)
$(QUIET)$(MAKE) DEBUGBUILD=true clean
endif