ice40: Only warn about default package if there is no package argument
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
c70f87e4c5
commit
82ce89e315
@ -157,6 +157,10 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s
|
|||||||
|
|
||||||
if (vm.count("package"))
|
if (vm.count("package"))
|
||||||
chipArgs.package = vm["package"].as<std::string>();
|
chipArgs.package = vm["package"].as<std::string>();
|
||||||
|
else
|
||||||
|
log_warning("Use of default value for --package is deprecated. Please add '--package %s' to arguments.\n",
|
||||||
|
chipArgs.package.c_str());
|
||||||
|
|
||||||
if (values.find("arch.name") != values.end()) {
|
if (values.find("arch.name") != values.end()) {
|
||||||
std::string arch_name = values["arch.name"].as_string();
|
std::string arch_name = values["arch.name"].as_string();
|
||||||
if (arch_name != "ice40")
|
if (arch_name != "ice40")
|
||||||
@ -207,9 +211,6 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
log_warning("Use of default value for --package is deprecated. Please add '--package %s' to arguments.\n",
|
|
||||||
chipArgs.package.c_str());
|
|
||||||
|
|
||||||
auto ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
auto ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
||||||
for (auto &val : values)
|
for (auto &val : values)
|
||||||
ctx->settings[ctx->id(val.first)] = val.second;
|
ctx->settings[ctx->id(val.first)] = val.second;
|
||||||
|
Loading…
Reference in New Issue
Block a user