mirror of https://github.com/YosysHQ/icestorm.git
icetime: Lowercase the device type information.
Makes `-d HX1K` work as well as `-d hx1k`.
This commit is contained in:
parent
92751d505a
commit
dc5a4d9934
|
|
@ -26,12 +26,13 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <tuple>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <string>
|
||||||
|
#include <tuple>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
|
|
@ -2331,6 +2332,8 @@ int main(int argc, char **argv)
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
read_config();
|
read_config();
|
||||||
|
|
||||||
|
std::transform(config_device.begin(), config_device.end(), config_device.begin(), ::tolower);
|
||||||
|
|
||||||
if (device_type.empty()) {
|
if (device_type.empty()) {
|
||||||
if(config_device == "5k")
|
if(config_device == "5k")
|
||||||
device_type = "up" + config_device;
|
device_type = "up" + config_device;
|
||||||
|
|
@ -2339,6 +2342,8 @@ int main(int argc, char **argv)
|
||||||
printf("// Warning: Missing -d parameter. Assuming '%s' device.\n", device_type.c_str());
|
printf("// Warning: Missing -d parameter. Assuming '%s' device.\n", device_type.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::transform(device_type.begin(), device_type.end(), device_type.begin(), ::tolower);
|
||||||
|
|
||||||
if (device_type == "lp384") {
|
if (device_type == "lp384") {
|
||||||
if (config_device != "384")
|
if (config_device != "384")
|
||||||
goto device_chip_mismatch;
|
goto device_chip_mismatch;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue