Ravenslofty / prussia

Prussia - a Rust PS2 SDK.
Other
105 stars 6 forks source link

Fixes to build project with Rust 1.45.0-nightly #4

Closed mlafeldt closed 4 years ago

mlafeldt commented 4 years ago

Created with this Dockerfile:

FROM rustlang/rust:nightly

RUN wget http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz && \
  tar -zxvf binutils-2.27.tar.gz && \
  cd binutils-2.27 && \
  ./configure --target=mips64el-none-elf && \
  make && \
  make install

RUN cargo install cargo-xbuild cargo-asm
RUN rustup component add rust-src

WORKDIR /src
CMD ["/bin/bash"]

Cargo output:

root@3b21d4261c33:/src# cargo xbuild --target ps2.json
WARNING: There is no root package to read the cargo-xbuild config from.
   Compiling prussia_rt v0.4.2 (/src/prussia_rt)
   Compiling biostation v0.0.0 (/src/biostation)
   Compiling hello-rs v0.1.0 (/src/hello-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 5.81s

root@3b21d4261c33:/src# cargo xclippy --target ps2.json
WARNING: There is no root package to read the cargo-xbuild config from.
    Checking prussia_rt v0.4.2 (/src/prussia_rt)
    Checking biostation v0.0.0 (/src/biostation)
    Checking hello-rs v0.1.0 (/src/hello-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 1.99s
Ravenslofty commented 4 years ago

Honestly, it's really nice that somebody's taken an interest in this code. I've left it to rot a little, and I do apologise.

mlafeldt commented 4 years ago

No need to apologize! I'm thankful for the work you did so far.

Ravenslofty commented 4 years ago

So, I've started work on an SVD file, so that svd2rust can be used to build a crate abstracting over the registers of the PS2. It's going to be tricky though, but I think it's the right thing to do.

On Sat, 30 May 2020, 10:49 Mathias Lafeldt, notifications@github.com wrote:

No need to apologize! I'm thankful for the work you need so far.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ZirconiumX/prussia/pull/4#issuecomment-636307160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPDW7XICIANTLS6TGSIX3RUDJDHANCNFSM4NOIZCMA .