Added ability to compile w/o timestamps.

- Compiling binaries without timestamps is useful for testing and being able to
compare binaries using diff.
master
Marcio Teixeira 7 years ago
parent 7b7694fe1f
commit 77d1b8f604

@ -200,7 +200,7 @@
/* Endstop settings are determined by printer model, except for the
* X_MAX which varies by toolhead. */
if defined(LULZBOT_USE_NORMALLY_CLOSED_ENDSTOPS)
#if defined(LULZBOT_USE_NORMALLY_CLOSED_ENDSTOPS)
// TAZ 6+ and Huerfano Mini onwards use normally closed endstops.
// This is safer, as a loose connector or broken wire will halt
// the axis

@ -338,6 +338,11 @@ LD_PREFIX=-nodefaultlibs
LD_SUFFIX=-lm -lgcc -lc -lgcc
endif
#Disabling the timestamp is useful for diffing binaries between different builds.
ifeq ($(NO_TIMESTAMP), 1)
CDEFS +=-D__DATE__="??? ?? ????" -D__TIME__="??:??:??"
endif
#Check for Arduino 1.0.0 or higher and use the correct source files for that version
ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
CXXSRC += main.cpp

@ -147,7 +147,14 @@ check_avr_tools
rm -rf build
mkdir build
if [ $# -eq 2 ]; then
if [ "$1" = "--no-timestamp" ]
then
shift
MAKEOPTS="NO_TIMESTAMP=1"
fi
if [ $# -eq 2 ]
then
build_firmware $1 $2
else
build_for_mini

Loading…
Cancel
Save