added riscv support but it doesnt work yet

unstable
penguin 4 years ago
parent 84a556fe8e
commit 7ed7c41e91

@ -1,6 +1,4 @@
use igloo_cli::*;
fn main() {
let x: IglooCliCfg = IglooCliCfg::IglooCliCfgOpt1;
println!("Hello, world!");
}

@ -190,48 +190,18 @@ impl IglooTarget
/// this will be updated as the user edits their project toml
pub fn generate_openocd_config(&self) -> IglooErrType
{
let mut openocd_cfg = PathBuf::from(&self.root);
openocd_cfg.push("scripts");
openocd_cfg.push(&self.name);
if openocd_cfg.with_extension("cfg").exists()
{
std::fs::remove_file(openocd_cfg.with_extension("cfg")).unwrap();
}
std::fs::File::create(
openocd_cfg.with_extension("cfg")).unwrap();
let mut ocfg_file = OpenOptions::new()
.write(true)
.append(true)
.open(openocd_cfg.with_extension("cfg"))
.unwrap();
writeln!(ocfg_file, "#\n# ePenguin Generated OpenOCD \
Config Script\n#\n").unwrap();
writeln!(ocfg_file, "\n# Transport Select").unwrap();
writeln!(ocfg_file, "source [find interface//{}.cfg]", self
.openocd.get("transport_cfg")
.unwrap()
.clone()
.into_str()
.unwrap()).unwrap();
writeln!(ocfg_file, "transport select {}", self
.openocd.get("transport")
.unwrap()
.clone()
.into_str()
.unwrap()).unwrap();
writeln!(ocfg_file, "\n# Chip Information").unwrap();
writeln!(ocfg_file, "set CHIPNAME {}", self.name).unwrap();
writeln!(ocfg_file, "source [find target//{}.cfg]", self
.openocd.get("chip_name_cfg")
.unwrap()
.clone()
.into_str()
.unwrap()).unwrap();
let mut fromPath = IglooEnvInfo::get_env_info()
.esfd.join(self.openocd.get("scripts")
.unwrap()
.clone()
.into_str()
.unwrap())
.join(&self.name).with_extension("cfg");
let mut toPath = self.root.join("scripts")
.join(&self.name).with_extension("cfg");
std::fs::copy(&fromPath, &toPath).unwrap();
ErrNone
}
}

@ -0,0 +1 @@
{"rustc_fingerprint":15397691355387307310,"outputs":{"1164083562126845933":["rustc 1.47.0 (18bf6b4f0 2020-10-07)\nbinary: rustc\ncommit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39\ncommit-date: 2020-10-07\nhost: x86_64-unknown-linux-gnu\nrelease: 1.47.0\nLLVM version: 11.0\n",""],"4476964694761187371":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/penguin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""]},"successes":{}}

@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\", \"std\"]","target":9863344317402520737,"profile":16668067249205866872,"path":15594310820563405654,"deps":[[6880116618428842180,"memchr",false,889411600439897805]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/aho-corasick-11cbf909890ff399/dep-lib-aho_corasick"}}],"rustflags":[],"metadata":13904389431191498124,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\", \"std\"]","target":9863344317402520737,"profile":6299028598154287785,"path":15594310820563405654,"deps":[[6880116618428842180,"memchr",false,17113525828656502701]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/aho-corasick-4fef12808cb1a18a/dep-lib-aho_corasick"}}],"rustflags":[],"metadata":13904389431191498124,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"array-sizes-33-128\", \"default\", \"std\"]","target":4004654919687799417,"profile":6299028598154287785,"path":193864345743813111,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/arrayvec-9b56ce1f9d366028/dep-lib-arrayvec"}}],"rustflags":[],"metadata":5019420986621020735,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"array-sizes-33-128\", \"default\", \"std\"]","target":4004654919687799417,"profile":16668067249205866872,"path":193864345743813111,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/arrayvec-ce4b69217ff118b8/dep-lib-arrayvec"}}],"rustflags":[],"metadata":5019420986621020735,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":10792472713283433088,"profile":16668067249205866872,"path":6502263987148761534,"deps":[[5317750649359053169,"libc",false,6939415181286654341]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/atty-876d06097c23b0b6/dep-lib-atty"}}],"rustflags":[],"metadata":2329458237537140231,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":10792472713283433088,"profile":6299028598154287785,"path":6502263987148761534,"deps":[[5317750649359053169,"libc",false,17504418386403226333]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/atty-c2fde9dee18b37f1/dep-lib-atty"}}],"rustflags":[],"metadata":2329458237537140231,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":15796848007248474757,"profile":6299028598154287785,"path":3972505152115234588,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/autocfg-be8c76c81b8ffdd3/dep-lib-autocfg"}}],"rustflags":[],"metadata":13102859075309379048,"config":0}

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"","target":0,"profile":0,"path":0,"deps":[[4117749705314174326,"build_script_build",false,1358965964981885717]],"local":[{"Precalculated":"1.2.1"}],"rustflags":[],"metadata":0,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\"]","target":14123478400658042508,"profile":16668067249205866872,"path":16525684902854961646,"deps":[[4117749705314174326,"build_script_build",false,2626812207421263920]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bitflags-bb6ec8f28ecded21/dep-lib-bitflags"}}],"rustflags":[],"metadata":14564035643000669268,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\"]","target":14123478400658042508,"profile":6299028598154287785,"path":16525684902854961646,"deps":[[4117749705314174326,"build_script_build",false,2626812207421263920]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bitflags-e8b42ad6d332332e/dep-lib-bitflags"}}],"rustflags":[],"metadata":14564035643000669268,"config":0}

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\"]","target":10088282520713642473,"profile":6299028598154287785,"path":18108316973269007655,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bitflags-ffe42d3bf55aa33e/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":14564035643000669268,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":834697563557903354,"profile":16668067249205866872,"path":11144075455992316700,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-66feaf33d5a22924/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":834697563557903354,"profile":6299028598154287785,"path":11144075455992316700,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-d2033c938d1688fd/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"atty\", \"cargo\", \"clap_derive\", \"color\", \"default\", \"derive\", \"lazy_static\", \"std\", \"strsim\", \"suggestions\", \"termcolor\"]","target":229160480527202769,"profile":6299028598154287785,"path":3669366453960628055,"deps":[[573161692746345945,"clap_derive",false,7963116697133191406],[769499514241923581,"strsim",false,14162124977035674130],[4117749705314174326,"bitflags",false,6071948545510077164],[8536350174477403560,"lazy_static",false,5920138057679276851],[8898714657973812811,"indexmap",false,8697997005168360071],[10632722147547604258,"unicode_width",false,2429939022793102576],[11109407199266334614,"termcolor",false,14536721510233388105],[15251456120363369268,"atty",false,11589004798948548097],[16345904869059864303,"textwrap",false,14244020469243788216],[17564442112974139928,"os_str_bytes",false,3535731701439882938],[18026345993996883719,"vec_map",false,8808606242575555115]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/clap-4a724467a41df761/dep-lib-clap"}}],"rustflags":[],"metadata":18413529249576532139,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"atty\", \"cargo\", \"clap_derive\", \"color\", \"default\", \"derive\", \"lazy_static\", \"std\", \"strsim\", \"suggestions\", \"termcolor\"]","target":229160480527202769,"profile":16668067249205866872,"path":3669366453960628055,"deps":[[573161692746345945,"clap_derive",false,7963116697133191406],[769499514241923581,"strsim",false,12680091647485045905],[4117749705314174326,"bitflags",false,10600039804106342756],[8536350174477403560,"lazy_static",false,17280871106891877630],[8898714657973812811,"indexmap",false,758744790174546862],[10632722147547604258,"unicode_width",false,1770431569137630675],[11109407199266334614,"termcolor",false,7841590955406298390],[15251456120363369268,"atty",false,12455253114100337063],[16345904869059864303,"textwrap",false,8385959960586845777],[17564442112974139928,"os_str_bytes",false,17932019739394449031],[18026345993996883719,"vec_map",false,10775627528194222980]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/clap-ecacb9b3666296ad/dep-lib-clap"}}],"rustflags":[],"metadata":18413529249576532139,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\"]","target":8248095306422532944,"profile":6299028598154287785,"path":18408635321131909167,"deps":[[6555828555352911943,"quote",false,16234380790032749630],[9691534041096727393,"proc_macro2",false,3041589436006451816],[10133531055205208420,"syn",false,9048398032429738071],[12764759236426115033,"heck",false,8988707220571578534],[14484104962928065257,"proc_macro_error",false,6859941102656452850]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/clap_derive-6ab840d3c312746a/dep-lib-clap_derive"}}],"rustflags":[],"metadata":2790395362119635249,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\", \"hjson\", \"ini\", \"json\", \"rust-ini\", \"serde-hjson\", \"serde_json\", \"toml\", \"yaml\", \"yaml-rust\"]","target":12659230784421511525,"profile":16668067249205866872,"path":5075071221035885186,"deps":[[4460517003373423497,"yaml_rust",false,4987553262776167402],[4517326557178989942,"nom",false,16093726822501760584],[6408936455341118370,"serde_hjson",false,2524048667202889618],[6669303792743813468,"serde",false,3064811563799076491],[7231915146259649043,"toml",false,3763302129097160974],[8536350174477403560,"lazy_static",false,17280871106891877630],[9725125109844783316,"ini",false,18044189662112287812],[15789920708546520010,"serde_json",false,4626669943113705893]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/config-760cbfff693003f2/dep-lib-config"}}],"rustflags":[],"metadata":18005506352503131519,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[\"default\", \"hjson\", \"ini\", \"json\", \"rust-ini\", \"serde-hjson\", \"serde_json\", \"toml\", \"yaml\", \"yaml-rust\"]","target":12659230784421511525,"profile":6299028598154287785,"path":5075071221035885186,"deps":[[4460517003373423497,"yaml_rust",false,5707265439725863224],[4517326557178989942,"nom",false,14420242205189535425],[6408936455341118370,"serde_hjson",false,5081042028068986146],[6669303792743813468,"serde",false,1060640028413989774],[7231915146259649043,"toml",false,5286659978786858698],[8536350174477403560,"lazy_static",false,5920138057679276851],[9725125109844783316,"ini",false,6806056976355488547],[15789920708546520010,"serde_json",false,2678125363660015905]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/config-f093f5549f39c768/dep-lib-config"}}],"rustflags":[],"metadata":18005506352503131519,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":17898517816709299640,"profile":16668067249205866872,"path":8728092032768182756,"deps":[[9649018296203476292,"dirs_sys",false,16038166125442601111]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/directories-2db8abde8748d91c/dep-lib-directories"}}],"rustflags":[],"metadata":931290570756584624,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":17898517816709299640,"profile":6299028598154287785,"path":8728092032768182756,"deps":[[9649018296203476292,"dirs_sys",false,16263667843839518962]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/directories-54e89769184d2106/dep-lib-directories"}}],"rustflags":[],"metadata":931290570756584624,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":6656584412601499904,"profile":16668067249205866872,"path":13971011078393250122,"deps":[[5317750649359053169,"libc",false,6939415181286654341]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/dirs-sys-209f3d96da221c4f/dep-lib-dirs-sys"}}],"rustflags":[],"metadata":9863373507860298850,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":6656584412601499904,"profile":6299028598154287785,"path":13971011078393250122,"deps":[[5317750649359053169,"libc",false,17504418386403226333]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/dirs-sys-d07a5a7ba7cf70cd/dep-lib-dirs-sys"}}],"rustflags":[],"metadata":9863373507860298850,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":14517543427096474932,"profile":6299028598154287785,"path":10257279714125279321,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/error-chain-a309a28557f9e43e/dep-lib-error-chain"}}],"rustflags":[],"metadata":7997956376172494424,"config":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":66165631676752942,"features":"[]","target":14570799346789123884,"profile":6299028598154287785,"path":13809153362591777482,"deps":[[9580372165939939425,"unicode_segmentation",false,15773013068236203219]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/heck-f79d79f26699206c/dep-lib-heck"}}],"rustflags":[],"metadata":4968006677088137060,"config":0}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save