Add Avrdude build version into avrdude.conf

This commit is contained in:
Ihor Dutchak
2023-10-28 23:46:35 +03:00
parent e99991202f
commit 7cf7c73636
3 changed files with 7 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ add_custom_command(
OUTPUT avrdude.conf
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/avrdude.conf.in" avrdude.conf.in
COMMAND ${CMAKE_COMMAND}
-D "AVRDUDE_FULL_VERSION=${AVRDUDE_FULL_VERSION}"
-D HAVE_PARPORT=$<BOOL:${HAVE_PARPORT}>
-D HAVE_LINUXSPI=$<BOOL:${HAVE_LINUXSPI}>
-D HAVE_LINUXGPIO=$<BOOL:${HAVE_LINUXGPIO}>

View File

@@ -432,6 +432,9 @@
# ATmega8 0x76
# ATmega169 0x78
# Buildtime configuration
avrdude_version = "@AVRDUDE_FULL_VERSION@";
#
# Overall avrdude defaults; suitable for ~/.config/avrdude/avrdude.rc
#

View File

@@ -543,6 +543,9 @@ AC_CONFIG_FILES([
Makefile
])
# Pass into avrdude.conf.in
AVRDUDE_FULL_VERSION='$(VERSION)'
# The procedure to create avrdude.conf involves two steps. First,
# normal autoconf substitution will be applied, resulting in
# avrdude.conf.tmp. Finally, a sed command will be applied to filter