Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-card10
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m
rust-card10
Commits
b9dd6b5e
Commit
b9dd6b5e
authored
5 years ago
by
Astro
Browse files
Options
Downloads
Patches
Plain Diff
rm more eabihf remnants
parent
70166d4e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
default.nix
+3
-3
3 additions, 3 deletions
default.nix
rkanoid/.cargo/config
+2
-3
2 additions, 3 deletions
rkanoid/.cargo/config
shell.nix
+1
-1
1 addition, 1 deletion
shell.nix
with
6 additions
and
7 deletions
default.nix
+
3
−
3
View file @
b9dd6b5e
...
@@ -5,7 +5,7 @@ in
...
@@ -5,7 +5,7 @@ in
with
pkgs
;
with
pkgs
;
let
let
openocd
=
callPackage
./openocd.nix
{};
openocd
=
callPackage
./openocd.nix
{};
rust
=
rustChannelOfTargets
"nightly"
null
[
"thumbv7em-none-eabi
hf
"
];
rust
=
rustChannelOfTargets
"nightly"
null
[
"thumbv7em-none-eabi"
];
rustPlatform
=
makeRustPlatform
{
rustPlatform
=
makeRustPlatform
{
rustc
=
rust
;
rustc
=
rust
;
cargo
=
rust
;
cargo
=
rust
;
...
@@ -27,7 +27,7 @@ let
...
@@ -27,7 +27,7 @@ let
version
=
"0.0.0"
;
version
=
"0.0.0"
;
src
=
./.
;
src
=
./.
;
cargoSha256
=
"10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd"
;
cargoSha256
=
"10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd"
;
buildInputs
=
[
pkgsCross
.
arm
hf
-embedded
.
stdenv
.
cc
glibc_multi
];
buildInputs
=
[
pkgsCross
.
arm-embedded
.
stdenv
.
cc
glibc_multi
];
prePatch
=
''
prePatch
=
''
cp
${
epic-stubs
}
/client.c l0dable/src/
cp
${
epic-stubs
}
/client.c l0dable/src/
''
;
''
;
...
@@ -40,7 +40,7 @@ let
...
@@ -40,7 +40,7 @@ let
doCheck
=
false
;
doCheck
=
false
;
installPhase
=
''
installPhase
=
''
mkdir -p $out/lib
mkdir -p $out/lib
cp target/thumbv7em-none-eabi
hf
/release/example $out/lib/example.elf
cp target/thumbv7em-none-eabi/release/example $out/lib/example.elf
''
;
''
;
};
};
in
{
in
{
...
...
This diff is collapsed.
Click to expand it.
rkanoid/.cargo/config
+
2
−
3
View file @
b9dd6b5e
[target.thumbv7em-none-eabihf]
[target.thumbv7em-none-eabihf]
rustflags = [
rustflags = [
"-C", "linker=arm-none-eabi
hf
-gcc",
"-C", "linker=arm-none-eabi-gcc",
"-C", "link-args=-Tl0dable.ld -n -pie -fPIC",
"-C", "link-args=-Tl0dable.ld -n -pie -fPIC",
"-C", "relocation-model=pic",
"-C", "relocation-model=pic",
]
]
[build]
[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
target = "thumbv7em-none-eabi" # Cortex-M4F and Cortex-M7F (with FPU)
This diff is collapsed.
Click to expand it.
shell.nix
+
1
−
1
View file @
b9dd6b5e
...
@@ -8,7 +8,7 @@ multiStdenv.mkDerivation {
...
@@ -8,7 +8,7 @@ multiStdenv.mkDerivation {
buildInputs
=
[
buildInputs
=
[
gdb
gdb
rust
rust
pkgsCross
.
arm
hf
-embedded
.
stdenv
.
cc
pkgsCross
.
arm-embedded
.
stdenv
.
cc
openocd
openocd
];
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment