diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-10 19:11:30 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-10 19:11:30 +0200 |
commit | e5006d4f2f767aab5c06d4e95151687a54902ad9 (patch) | |
tree | d84b3f03583ba799f31606cc9a68d14e00c842eb /ice40 | |
parent | 93a0d2456086b2c0e4a50d6ecc43ab028895bcad (diff) | |
download | nextpnr-e5006d4f2f767aab5c06d4e95151687a54902ad9.tar.gz nextpnr-e5006d4f2f767aab5c06d4e95151687a54902ad9.tar.bz2 nextpnr-e5006d4f2f767aab5c06d4e95151687a54902ad9.zip |
Save settings and give nicer names to some
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/pcf.cc | 2 | ||||
-rw-r--r-- | ice40/project.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ice40/pcf.cc b/ice40/pcf.cc index d9fc4e68..af5b3e17 100644 --- a/ice40/pcf.cc +++ b/ice40/pcf.cc @@ -66,7 +66,7 @@ bool apply_pcf(Context *ctx, std::string filename, std::istream &in) log_error("unsupported pcf command '%s'\n", cmd.c_str()); } } - ctx->settings.emplace(ctx->id("project/input/pcf"), filename); + ctx->settings.emplace(ctx->id("input/pcf"), filename); return true; } catch (log_execution_error_exception) { return false; diff --git a/ice40/project.cc b/ice40/project.cc index 8ca10e36..47c0903d 100644 --- a/ice40/project.cc +++ b/ice40/project.cc @@ -28,8 +28,8 @@ NEXTPNR_NAMESPACE_BEGIN void ProjectHandler::saveArch(Context *ctx, pt::ptree &root, std::string path) { root.put("project.arch.package", ctx->archArgs().package); - if (ctx->settings.find(ctx->id("project/input/pcf")) != ctx->settings.end()) { - std::string fn = ctx->settings[ctx->id("project/input/pcf")]; + if (ctx->settings.find(ctx->id("input/pcf")) != ctx->settings.end()) { + std::string fn = ctx->settings[ctx->id("input/pcf")]; root.put("project.input.pcf", make_relative(fn, path).string()); } } |