Document build system targets. Add a rule to the BUILD module that is run if a source file does not exist to show an error to the user, rather than running the check-source rule before each build (slightly faster/more portable and the generated error is then a true make error).
This commit is contained in:
parent
3e50a59486
commit
7375c789e1
9 changed files with 55 additions and 2 deletions
|
|
@ -89,10 +89,12 @@ else
|
|||
$(error Unsupported architecture "$(ARCH)")
|
||||
endif
|
||||
|
||||
# Programs in the target FLASH memory using ATPROGRAM
|
||||
atprogram: $(TARGET).elf $(MAKEFILE_LIST)
|
||||
@echo $(MSG_ATPROGRAM_CMD) Programming device \"$(MCU)\" FLASH using \"$(ATPROGRAM_PROGRAMMER)\"
|
||||
atprogram $(BASE_ATPROGRAM_FLAGS) program $(ATPROGRAM_FLASH_FLAGS) --file $<
|
||||
|
||||
# Programs in the target EEPROM memory using ATPROGRAM
|
||||
atprogram-ee: $(TARGET).elf $(MAKEFILE_LIST)
|
||||
@echo $(MSG_ATPROGRAM_CMD) Programming device \"$(MCU)\" EEPROM using \"$(ATPROGRAM_PROGRAMMER)\"
|
||||
atprogram $(BASE_ATPROGRAM_FLAGS) program $(ATPROGRAM_EEPROM_FLAGS) --file $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue