projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c72896
)
Fix invocations of avr-size in all makefiles broken on unpatched *nix systems, due...
author
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 8 Aug 2010 08:30:42 +0000
(08:30 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 8 Aug 2010 08:30:42 +0000
(08:30 +0000)
68 files changed:
Bootloaders/CDC/makefile
patch
|
blob
|
blame
|
history
Bootloaders/DFU/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioInput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioOutput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/DualVirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/GenericHID/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Joystick/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Keyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/KeyboardMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MIDI/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Mouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/RNDISEthernet/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/Sideshow/makefile
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/TestAndMeasurement/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioInput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioOutput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/DualVirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/GenericHID/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Joystick/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Keyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/KeyboardMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MIDI/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Mouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/VirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MassStorageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/VirtualSerialHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/Incomplete/BluetoothHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/JoystickHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/RNDISEthernetHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/makefile
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/makefile
patch
|
blob
|
blame
|
history
Projects/Benito/makefile
patch
|
blob
|
blame
|
history
Projects/Incomplete/MIDIToneGenerator/makefile
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/makefile
patch
|
blob
|
blame
|
history
Projects/LEDNotifier/makefile
patch
|
blob
|
blame
|
history
Projects/Magstripe/makefile
patch
|
blob
|
blame
|
history
Projects/MissileLauncher/makefile
patch
|
blob
|
blame
|
history
Projects/RelayBoard/makefile
patch
|
blob
|
blame
|
history
Projects/TempDataLogger/makefile
patch
|
blob
|
blame
|
history
Projects/USBtoSerial/makefile
patch
|
blob
|
blame
|
history
Projects/Webserver/makefile
patch
|
blob
|
blame
|
history
Projects/XPLAINBridge/makefile
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/CDC/makefile
b/Bootloaders/CDC/makefile
index
346912c
..
abc7c82
100644
(file)
--- a/
Bootloaders/CDC/makefile
+++ b/
Bootloaders/CDC/makefile
@@
-494,7
+494,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Bootloaders/DFU/makefile
b/Bootloaders/DFU/makefile
index
deb5312
..
f6178b5
100644
(file)
--- a/
Bootloaders/DFU/makefile
+++ b/
Bootloaders/DFU/makefile
@@
-495,7
+495,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/AudioInput/makefile
b/Demos/Device/ClassDriver/AudioInput/makefile
index
afe7249
..
0df14ea
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioInput/makefile
+++ b/
Demos/Device/ClassDriver/AudioInput/makefile
@@
-492,7
+492,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/AudioOutput/makefile
b/Demos/Device/ClassDriver/AudioOutput/makefile
index
ed56f89
..
110a9c4
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioOutput/makefile
+++ b/
Demos/Device/ClassDriver/AudioOutput/makefile
@@
-494,7
+494,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/DualVirtualSerial/makefile
b/Demos/Device/ClassDriver/DualVirtualSerial/makefile
index
acb74e8
..
a3e1ea7
100644
(file)
--- a/
Demos/Device/ClassDriver/DualVirtualSerial/makefile
+++ b/
Demos/Device/ClassDriver/DualVirtualSerial/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/GenericHID/makefile
b/Demos/Device/ClassDriver/GenericHID/makefile
index
8e1b067
..
2a445ea
100644
(file)
--- a/
Demos/Device/ClassDriver/GenericHID/makefile
+++ b/
Demos/Device/ClassDriver/GenericHID/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/Joystick/makefile
b/Demos/Device/ClassDriver/Joystick/makefile
index
7c70ec0
..
b9df6f6
100644
(file)
--- a/
Demos/Device/ClassDriver/Joystick/makefile
+++ b/
Demos/Device/ClassDriver/Joystick/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/Keyboard/makefile
b/Demos/Device/ClassDriver/Keyboard/makefile
index
ebd5b02
..
0a89c9b
100644
(file)
--- a/
Demos/Device/ClassDriver/Keyboard/makefile
+++ b/
Demos/Device/ClassDriver/Keyboard/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/KeyboardMouse/makefile
b/Demos/Device/ClassDriver/KeyboardMouse/makefile
index
5955304
..
61565c9
100644
(file)
--- a/
Demos/Device/ClassDriver/KeyboardMouse/makefile
+++ b/
Demos/Device/ClassDriver/KeyboardMouse/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/MIDI/makefile
b/Demos/Device/ClassDriver/MIDI/makefile
index
fac283b
..
25219a8
100644
(file)
--- a/
Demos/Device/ClassDriver/MIDI/makefile
+++ b/
Demos/Device/ClassDriver/MIDI/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/MassStorage/makefile
b/Demos/Device/ClassDriver/MassStorage/makefile
index
5c9fe05
..
7979c1e
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/makefile
+++ b/
Demos/Device/ClassDriver/MassStorage/makefile
@@
-493,7
+493,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
b/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
index
723dd91
..
d60f30e
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
@@
-493,7
+493,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/Mouse/makefile
b/Demos/Device/ClassDriver/Mouse/makefile
index
d202a6a
..
0f84f74
100644
(file)
--- a/
Demos/Device/ClassDriver/Mouse/makefile
+++ b/
Demos/Device/ClassDriver/Mouse/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/makefile
b/Demos/Device/ClassDriver/RNDISEthernet/makefile
index
c3650e9
..
1c48d94
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/makefile
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/makefile
@@
-509,7
+509,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/VirtualSerial/makefile
b/Demos/Device/ClassDriver/VirtualSerial/makefile
index
18c3be5
..
bfd5c48
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerial/makefile
+++ b/
Demos/Device/ClassDriver/VirtualSerial/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
b/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
index
04141a5
..
dd8cf19
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/Incomplete/Sideshow/makefile
b/Demos/Device/Incomplete/Sideshow/makefile
index
1565b99
..
7e09f23
100644
(file)
--- a/
Demos/Device/Incomplete/Sideshow/makefile
+++ b/
Demos/Device/Incomplete/Sideshow/makefile
@@
-496,7
+496,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
index
cab978a
..
040cb34
100644
(file)
--- a/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
+++ b/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
@@
-332,7
+332,7
@@
void TMC_Task(void)
\r
TMC_MessageHeader_t MessageHeader;
\r
\r
\r
TMC_MessageHeader_t MessageHeader;
\r
\r
- /*
Check if a TMC packet has been received
*/
\r
+ /*
Try to read in a TMC message from the interface, process if one is available
*/
\r
if (ReadTMCHeader(&MessageHeader))
\r
{
\r
/* Indicate busy */
\r
if (ReadTMCHeader(&MessageHeader))
\r
{
\r
/* Indicate busy */
\r
@@
-366,6
+366,12
@@
void TMC_Task(void)
IsTMCBulkOUTReset = false;
\r
}
\r
\r
IsTMCBulkOUTReset = false;
\r
}
\r
\r
+/** Attempts to read in the TMC message header from the TMC interface.
\r
+ *
\r
+ * \param[out] MessageHeader Pointer to a location where the read header (if any) should be stored
\r
+ *
\r
+ * \return Boolean true if a header was read, false otherwise
\r
+ */
\r
bool ReadTMCHeader(TMC_MessageHeader_t* const MessageHeader)
\r
{
\r
/* Select the Data Out endpoint */
\r
bool ReadTMCHeader(TMC_MessageHeader_t* const MessageHeader)
\r
{
\r
/* Select the Data Out endpoint */
\r
@@
-382,7
+388,7
@@
bool ReadTMCHeader(TMC_MessageHeader_t* const MessageHeader)
CurrentTransferTag = MessageHeader->Tag;
\r
\r
/* Indicate if the command has been aborted or not */
\r
CurrentTransferTag = MessageHeader->Tag;
\r
\r
/* Indicate if the command has been aborted or not */
\r
- return !
IsTMCBulkOUTReset
;
\r
+ return !
(IsTMCBulkOUTReset)
;
\r
}
\r
\r
bool WriteTMCHeader(TMC_MessageHeader_t* const MessageHeader)
\r
}
\r
\r
bool WriteTMCHeader(TMC_MessageHeader_t* const MessageHeader)
\r
@@
-402,7
+408,7
@@
bool WriteTMCHeader(TMC_MessageHeader_t* const MessageHeader)
Endpoint_Write_Stream_LE(MessageHeader, sizeof(TMC_MessageHeader_t), StreamCallback_AbortINOnRequest);
\r
\r
/* Indicate if the command has been aborted or not */
\r
Endpoint_Write_Stream_LE(MessageHeader, sizeof(TMC_MessageHeader_t), StreamCallback_AbortINOnRequest);
\r
\r
/* Indicate if the command has been aborted or not */
\r
- return !
IsTMCBulkINReset
;
\r
+ return !
(IsTMCBulkINReset)
;
\r
}
\r
\r
/** Stream callback function for the Endpoint stream write functions. This callback will abort the current stream transfer
\r
}
\r
\r
/** Stream callback function for the Endpoint stream write functions. This callback will abort the current stream transfer
\r
diff --git
a/Demos/Device/Incomplete/TestAndMeasurement/makefile
b/Demos/Device/Incomplete/TestAndMeasurement/makefile
index
94e697e
..
3351364
100644
(file)
--- a/
Demos/Device/Incomplete/TestAndMeasurement/makefile
+++ b/
Demos/Device/Incomplete/TestAndMeasurement/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/AudioInput/makefile
b/Demos/Device/LowLevel/AudioInput/makefile
index
dc7fa47
..
27ae109
100644
(file)
--- a/
Demos/Device/LowLevel/AudioInput/makefile
+++ b/
Demos/Device/LowLevel/AudioInput/makefile
@@
-491,7
+491,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/AudioOutput/makefile
b/Demos/Device/LowLevel/AudioOutput/makefile
index
9e61803
..
c8dcbd2
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/makefile
+++ b/
Demos/Device/LowLevel/AudioOutput/makefile
@@
-493,7
+493,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/DualVirtualSerial/makefile
b/Demos/Device/LowLevel/DualVirtualSerial/makefile
index
c9f49a5
..
2ee5ac6
100644
(file)
--- a/
Demos/Device/LowLevel/DualVirtualSerial/makefile
+++ b/
Demos/Device/LowLevel/DualVirtualSerial/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/GenericHID/makefile
b/Demos/Device/LowLevel/GenericHID/makefile
index
abf3475
..
547f666
100644
(file)
--- a/
Demos/Device/LowLevel/GenericHID/makefile
+++ b/
Demos/Device/LowLevel/GenericHID/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/Joystick/makefile
b/Demos/Device/LowLevel/Joystick/makefile
index
329163e
..
7037ec6
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/makefile
+++ b/
Demos/Device/LowLevel/Joystick/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/Keyboard/makefile
b/Demos/Device/LowLevel/Keyboard/makefile
index
00892d9
..
eb48a24
100644
(file)
--- a/
Demos/Device/LowLevel/Keyboard/makefile
+++ b/
Demos/Device/LowLevel/Keyboard/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/KeyboardMouse/makefile
b/Demos/Device/LowLevel/KeyboardMouse/makefile
index
eeee41e
..
e92fb23
100644
(file)
--- a/
Demos/Device/LowLevel/KeyboardMouse/makefile
+++ b/
Demos/Device/LowLevel/KeyboardMouse/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/MIDI/makefile
b/Demos/Device/LowLevel/MIDI/makefile
index
3089332
..
92fd685
100644
(file)
--- a/
Demos/Device/LowLevel/MIDI/makefile
+++ b/
Demos/Device/LowLevel/MIDI/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/MassStorage/makefile
b/Demos/Device/LowLevel/MassStorage/makefile
index
e1447ce
..
4e8dd8c
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/makefile
+++ b/
Demos/Device/LowLevel/MassStorage/makefile
@@
-492,7
+492,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/Mouse/makefile
b/Demos/Device/LowLevel/Mouse/makefile
index
744da6b
..
348afed
100644
(file)
--- a/
Demos/Device/LowLevel/Mouse/makefile
+++ b/
Demos/Device/LowLevel/Mouse/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/makefile
b/Demos/Device/LowLevel/RNDISEthernet/makefile
index
3e57640
..
8adb531
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/makefile
+++ b/
Demos/Device/LowLevel/RNDISEthernet/makefile
@@
-510,7
+510,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Device/LowLevel/VirtualSerial/makefile
b/Demos/Device/LowLevel/VirtualSerial/makefile
index
c0d989e
..
41cb02a
100644
(file)
--- a/
Demos/Device/LowLevel/VirtualSerial/makefile
+++ b/
Demos/Device/LowLevel/VirtualSerial/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
index
79ab4f4
..
cdaf43d
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
@@
-493,7
+493,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
b/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
index
3d408ae
..
2d353d6
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/makefile
b/Demos/Host/ClassDriver/KeyboardHost/makefile
index
e937211
..
1931bc4
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/makefile
+++ b/
Demos/Host/ClassDriver/KeyboardHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
index
d5325bb
..
775d970
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/MIDIHost/makefile
b/Demos/Host/ClassDriver/MIDIHost/makefile
index
c2a987e
..
451a908
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/makefile
+++ b/
Demos/Host/ClassDriver/MIDIHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/makefile
b/Demos/Host/ClassDriver/MassStorageHost/makefile
index
e8ccd7b
..
44115fa
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/makefile
+++ b/
Demos/Host/ClassDriver/MassStorageHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/MouseHost/makefile
b/Demos/Host/ClassDriver/MouseHost/makefile
index
f12dd88
..
c5d29ed
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/makefile
+++ b/
Demos/Host/ClassDriver/MouseHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/makefile
b/Demos/Host/ClassDriver/MouseHostWithParser/makefile
index
ecbdc2f
..
aa4bf7a
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/PrinterHost/makefile
b/Demos/Host/ClassDriver/PrinterHost/makefile
index
3434ad5
..
60ecddd
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/makefile
+++ b/
Demos/Host/ClassDriver/PrinterHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
b/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
index
3f1b082
..
05d56d6
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/StillImageHost/makefile
b/Demos/Host/ClassDriver/StillImageHost/makefile
index
f34358f
..
4efef10
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/makefile
+++ b/
Demos/Host/ClassDriver/StillImageHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/makefile
b/Demos/Host/ClassDriver/VirtualSerialHost/makefile
index
6399d2d
..
d16e832
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/makefile
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/makefile
@@
-488,7
+488,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/Incomplete/BluetoothHost/makefile
b/Demos/Host/Incomplete/BluetoothHost/makefile
index
50de5a1
..
ae632ff
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/makefile
+++ b/
Demos/Host/Incomplete/BluetoothHost/makefile
@@
-498,7
+498,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/makefile
b/Demos/Host/LowLevel/GenericHIDHost/makefile
index
d8fcddf
..
e9dbab5
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/makefile
+++ b/
Demos/Host/LowLevel/GenericHIDHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/makefile
b/Demos/Host/LowLevel/JoystickHostWithParser/makefile
index
b9a8237
..
a56fdf2
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/KeyboardHost/makefile
b/Demos/Host/LowLevel/KeyboardHost/makefile
index
877f0e2
..
02b19f9
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/makefile
+++ b/
Demos/Host/LowLevel/KeyboardHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
index
a100eea
..
ded32f8
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/MIDIHost/makefile
b/Demos/Host/LowLevel/MIDIHost/makefile
index
27b899f
..
ca8f993
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/makefile
+++ b/
Demos/Host/LowLevel/MIDIHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/MassStorageHost/makefile
b/Demos/Host/LowLevel/MassStorageHost/makefile
index
3728b76
..
a17934d
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/makefile
+++ b/
Demos/Host/LowLevel/MassStorageHost/makefile
@@
-491,7
+491,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/MouseHost/makefile
b/Demos/Host/LowLevel/MouseHost/makefile
index
5aeaf87
..
a6a2183
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/makefile
+++ b/
Demos/Host/LowLevel/MouseHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/makefile
b/Demos/Host/LowLevel/MouseHostWithParser/makefile
index
84a5f72
..
0c88258
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/PrinterHost/makefile
b/Demos/Host/LowLevel/PrinterHost/makefile
index
66efd03
..
f8698cf
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/makefile
+++ b/
Demos/Host/LowLevel/PrinterHost/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/makefile
b/Demos/Host/LowLevel/RNDISEthernetHost/makefile
index
06aed48
..
98faa82
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/makefile
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/StillImageHost/makefile
b/Demos/Host/LowLevel/StillImageHost/makefile
index
de242d8
..
4434d76
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/makefile
+++ b/
Demos/Host/LowLevel/StillImageHost/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/makefile
b/Demos/Host/LowLevel/VirtualSerialHost/makefile
index
6e15faf
..
d384201
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/makefile
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/makefile
@@
-489,7
+489,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/AVRISP-MKII/makefile
b/Projects/AVRISP-MKII/makefile
index
8b120da
..
ca203fe
100644
(file)
--- a/
Projects/AVRISP-MKII/makefile
+++ b/
Projects/AVRISP-MKII/makefile
@@
-513,7
+513,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/Benito/makefile
b/Projects/Benito/makefile
index
3e0311e
..
d8babd8
100644
(file)
--- a/
Projects/Benito/makefile
+++ b/
Projects/Benito/makefile
@@
-498,7
+498,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/Incomplete/MIDIToneGenerator/makefile
b/Projects/Incomplete/MIDIToneGenerator/makefile
index
3360a4e
..
5c73b27
100644
(file)
--- a/
Projects/Incomplete/MIDIToneGenerator/makefile
+++ b/
Projects/Incomplete/MIDIToneGenerator/makefile
@@
-493,7
+493,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/Incomplete/StandaloneProgrammer/makefile
b/Projects/Incomplete/StandaloneProgrammer/makefile
index
6bf5f05
..
b0409d4
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/makefile
+++ b/
Projects/Incomplete/StandaloneProgrammer/makefile
@@
-499,7
+499,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/LEDNotifier/makefile
b/Projects/LEDNotifier/makefile
index
0ac1d86
..
5075f23
100644
(file)
--- a/
Projects/LEDNotifier/makefile
+++ b/
Projects/LEDNotifier/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/Magstripe/makefile
b/Projects/Magstripe/makefile
index
60fa362
..
f97be4d
100644
(file)
--- a/
Projects/Magstripe/makefile
+++ b/
Projects/Magstripe/makefile
@@
-502,7
+502,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/MissileLauncher/makefile
b/Projects/MissileLauncher/makefile
index
1a7ab81
..
5f59b45
100644
(file)
--- a/
Projects/MissileLauncher/makefile
+++ b/
Projects/MissileLauncher/makefile
@@
-487,7
+487,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/RelayBoard/makefile
b/Projects/RelayBoard/makefile
index
6f3d08e
..
f4f4517
100644
(file)
--- a/
Projects/RelayBoard/makefile
+++ b/
Projects/RelayBoard/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/TempDataLogger/makefile
b/Projects/TempDataLogger/makefile
index
06f0954
..
6644cba
100644
(file)
--- a/
Projects/TempDataLogger/makefile
+++ b/
Projects/TempDataLogger/makefile
@@
-501,7
+501,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/USBtoSerial/makefile
b/Projects/USBtoSerial/makefile
index
dfa2c99
..
a87f303
100644
(file)
--- a/
Projects/USBtoSerial/makefile
+++ b/
Projects/USBtoSerial/makefile
@@
-490,7
+490,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/Webserver/makefile
b/Projects/Webserver/makefile
index
877b926
..
ed4e532
100644
(file)
--- a/
Projects/Webserver/makefile
+++ b/
Projects/Webserver/makefile
@@
-525,7
+525,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
diff --git
a/Projects/XPLAINBridge/makefile
b/Projects/XPLAINBridge/makefile
index
03502db
..
810f9e7
100644
(file)
--- a/
Projects/XPLAINBridge/makefile
+++ b/
Projects/XPLAINBridge/makefile
@@
-516,7
+516,10
@@
end:
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
-ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
+ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf
+MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
sizebefore:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \