Firmware2/buildroot/share/PlatformIO/scripts/random-bin.py
2021-04-29 08:45:15 -05:00

10 lines
194 B
Python

#
# random-bin.py
# Set a unique firmware name based on current date and time
#
Import("env")
from datetime import datetime
env['PROGNAME'] = datetime.now().strftime("firmware-%Y%m%d-%H%M%S")