Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mobile-transceiver-software
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Will Sloan
mobile-transceiver-software
Commits
dde96c57
Commit
dde96c57
authored
2 months ago
by
Will Sloan
Browse files
Options
Downloads
Patches
Plain Diff
Modify linux flasher build to compile for ARM (RPi)
parent
fce72073
No related branches found
No related tags found
No related merge requests found
Pipeline
#8217
failed
2 months ago
Stage: lint
Stage: build
Stage: build-flasher
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-5
6 additions, 5 deletions
.gitlab-ci.yml
with
6 additions
and
5 deletions
.gitlab-ci.yml
+
6
−
5
View file @
dde96c57
...
...
@@ -6,9 +6,10 @@ stages:
-
build-flasher
before_script
:
-
apt update && apt install -y binutils-arm-none-eabi gcc-mingw-w64-x86-64-win32
-
apt update && apt install -y binutils-arm-none-eabi
binutils-arm-linux-gnueabihf
gcc-mingw-w64-x86-64-win32
-
rustup target add thumbv7em-none-eabihf
-
rustup target add x86_64-pc-windows-gnu
-
rustup target add arm-unknown-linux-gnueabihf
# Raspberry Pi
-
rustup target add x86_64-pc-windows-gnu
# Windows PC
-
rustup component add rustfmt
-
rustup component add clippy
-
cargo install flip-link
...
...
@@ -37,10 +38,10 @@ build-flasher:
-
git clone https://gitlab.scd31.com/cats/firmware-flasher
-
cd firmware-flasher
-
cp ../mobile-transceiver-software/firmware.bin firmware.bin
-
cargo build --release
-
cargo build --release
--target arm-unknown-linux-gnueabihf
-
cargo build --release --target x86_64-pc-windows-gnu
-
cp target/release/stm32-firmware-flasher ../mobile-transceiver-software/flasher/flasher-linux
-
strip ../mobile-transceiver-software/flasher/flasher-linux
-
cp target/
arm-unknown-linux-gnueabihf/
release/stm32-firmware-flasher ../mobile-transceiver-software/flasher/flasher-linux
-
arm-linux-gnueabihf-
strip ../mobile-transceiver-software/flasher/flasher-linux
-
cp target/x86_64-pc-windows-gnu/release/stm32-firmware-flasher.exe ../mobile-transceiver-software/flasher/flasher-windows.exe
artifacts
:
paths
:
...
...
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