-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic buildinfo ideas, quick and dirty and not tested comprehensively: * Define build information for libavrdude and the avrdude tool * Switch from getopt() to getopt_long() (available on GNU, BSD, and the existing msvc/getopt.[ch] already implement getopt_long() on Windows) * Add "--version" argument which shows a long version message.
- Loading branch information
Showing
8 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include <libavrdude.h> | ||
|
||
#include "ac_cfg.h" | ||
|
||
static | ||
const char *const libavrdude_buildinfo[] = { | ||
AVRDUDE_FULL_VERSION, | ||
"buildsystem: " AVRDUDE_BUILDSYSTEM, | ||
#ifdef HAVE_LIBELF | ||
"libelf", | ||
#endif | ||
#ifdef HAVE_LIBUSB | ||
"libusb", | ||
#endif | ||
#ifdef HAVE_LIBUSB_1_0 | ||
"libusb_1_0", | ||
#endif | ||
#ifdef HAVE_LIBHIDAPI | ||
"libhidapi", | ||
#endif | ||
#ifdef HAVE_LIBHID | ||
"libhid", | ||
#endif | ||
#ifdef HAVE_LIBFTDI | ||
"libftdi", | ||
#endif | ||
#ifdef HAVE_LIBFTDI1 | ||
"libftdi1", | ||
#endif | ||
#ifdef HAVE_LIBREADLINE | ||
"libreadline", | ||
#endif | ||
#ifdef HAVE_LIBSERIALPORT | ||
"libserialport", | ||
#endif | ||
#ifdef HAVE_PARPORT | ||
"parport", | ||
#endif | ||
#ifdef HAVE_LINUXGPIO | ||
"linuxgpio", | ||
#endif | ||
#ifdef HAVE_LINUXSPI | ||
"linuxspi", | ||
#endif | ||
NULL | ||
}; | ||
|
||
const char *const *avr_get_buildinfo(void) | ||
{ | ||
return libavrdude_buildinfo; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters