mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
Eliminate version string duplication
Corresponding to flashrom svn r659. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
parent
fcbdbbc0d4
commit
a80cfbc3d7
1
flash.h
1
flash.h
@ -379,6 +379,7 @@ int ft2232_spi_write_256(struct flashchip *flash, uint8_t *buf);
|
||||
|
||||
/* flashrom.c */
|
||||
extern int verbose;
|
||||
extern const char *flashrom_version;
|
||||
#define printf_debug(x...) { if (verbose) printf(x); }
|
||||
void map_flash_registers(struct flashchip *flash);
|
||||
int read_memmapped(struct flashchip *flash, uint8_t *buf, int start, int len);
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "flash.h"
|
||||
#include "flashchips.h"
|
||||
|
||||
const char *flashrom_version = FLASHROM_VERSION;
|
||||
char *chip_to_probe = NULL;
|
||||
int verbose = 0;
|
||||
int programmer = PROGRAMMER_INTERNAL;
|
||||
@ -503,7 +504,7 @@ void usage(const char *name)
|
||||
|
||||
void print_version(void)
|
||||
{
|
||||
printf("flashrom v%s\n", FLASHROM_VERSION);
|
||||
printf("flashrom v%s\n", flashrom_version);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
Loading…
x
Reference in New Issue
Block a user