mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 09:36:24 +03:00
Merge pull request #1542 from Youw/main
Add Avrdude build version into avrdude.conf
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -432,6 +432,9 @@
|
||||
# ATmega8 0x76
|
||||
# ATmega169 0x78
|
||||
|
||||
# Buildtime configuration
|
||||
avrdude_version = "@AVRDUDE_FULL_VERSION@";
|
||||
|
||||
#
|
||||
# Overall avrdude defaults; suitable for ~/.config/avrdude/avrdude.rc
|
||||
#
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user