Add a warning when HEX_MAXIMUM_SIZE is not specified
This commit is contained in:
parent
ad417dbf70
commit
93eaaec5ba
2 changed files with 7 additions and 2 deletions
|
@ -6,6 +6,7 @@ The following is the rough list of changes that went into different versions. I
|
||||||
### 0.11.0 (in development)
|
### 0.11.0 (in development)
|
||||||
- Replace hardcoded executables with variable
|
- Replace hardcoded executables with variable
|
||||||
- Fix whitespace issues
|
- Fix whitespace issues
|
||||||
|
- Add a warning when HEX_MAXIMUM_SIZE is not specified
|
||||||
|
|
||||||
### 0.10.6 (2013-06-14)
|
### 0.10.6 (2013-06-14)
|
||||||
- Fix whitespace and add /dev/null redirection (https://github.com/sej7278)
|
- Fix whitespace and add /dev/null redirection (https://github.com/sej7278)
|
||||||
|
|
|
@ -926,8 +926,12 @@ symbol_sizes: $(OBJDIR)/$(TARGET).sym
|
||||||
@$(ECHO) A symbol listing sorted by their size have been dumped to $(OBJDIR)/$(TARGET).sym
|
@$(ECHO) A symbol listing sorted by their size have been dumped to $(OBJDIR)/$(TARGET).sym
|
||||||
|
|
||||||
$(TARGET_HEX).sizeok: $(TARGET_HEX)
|
$(TARGET_HEX).sizeok: $(TARGET_HEX)
|
||||||
$(ARDMK_PATH)/ard-verify-size $(TARGET_HEX) $(HEX_MAXIMUM_SIZE)
|
ifneq ($(strip $(HEX_MAXIMUM_SIZE)),)
|
||||||
touch $@
|
$(ARDMK_PATH)/ard-verify-size $(TARGET_HEX) $(HEX_MAXIMUM_SIZE)
|
||||||
|
touch $@
|
||||||
|
else
|
||||||
|
@$(ECHO) Maximum Hex size is not specified. Make sure the hex file that you are going to upload is less than microcontrollers flash memory
|
||||||
|
endif
|
||||||
|
|
||||||
verify_size: $(TARGET_HEX) $(TARGET_HEX).sizeok
|
verify_size: $(TARGET_HEX) $(TARGET_HEX).sizeok
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue