mirror of https://github.com/YosysHQ/icestorm.git
icetime: Output where the chipdb should be found.
Makes it easier to know where it can't be.
This commit is contained in:
parent
f23b1f212a
commit
b1d0af7edd
|
|
@ -343,12 +343,14 @@ void read_chipdb()
|
||||||
homedir += getenv("HOME");
|
homedir += getenv("HOME");
|
||||||
#endif
|
#endif
|
||||||
snprintf(buffer, 1024, "%s%s/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", homedir.c_str(), PREFIX+1, config_device.c_str());
|
snprintf(buffer, 1024, "%s%s/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", homedir.c_str(), PREFIX+1, config_device.c_str());
|
||||||
} else
|
} else {
|
||||||
snprintf(buffer, 1024, PREFIX "/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", config_device.c_str());
|
snprintf(buffer, 1024, PREFIX "/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", config_device.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
FILE *fdb = fopen(buffer, "r");
|
FILE *fdb = fopen(buffer, "r");
|
||||||
if (fdb == nullptr) {
|
if (fdb == nullptr) {
|
||||||
perror("Can't open chipdb file");
|
perror("Can't open chipdb file");
|
||||||
|
fprintf(stderr, " %s\n", buffer);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue