Skip to content

Commit

Permalink
No longer requires cmake or ninja.
Browse files Browse the repository at this point in the history
Untested on hardware.
  • Loading branch information
jonathanpallant committed Jul 22, 2024
1 parent 20d0caa commit 1b6a136
Show file tree
Hide file tree
Showing 7 changed files with 275 additions and 498 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/build-ferrocene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ name: workflow-build-everything-ferrocene
run-name: Build Everything with Ferrocene
on: [push]
jobs:
job-build-threadx-staticlib:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install tools
run: |
sudo apt-get update -y && sudo apt-get -y install cmake gcc gcc-arm-none-eabi build-essential ninja-build
- name: Compile ThreadX for Cortex-M4
run: |
cd threadx
cmake -Bbuild_m4 -GNinja -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake
cmake --build ./build_m4
- name: Upload staticlib
uses: actions/upload-artifact@master
with:
name: threadx-cm4
path: threadx/build_m4/libthreadx.a
job-build-demo-app:
runs-on: ubuntu-latest
needs: job-build-threadx-staticlib
Expand All @@ -37,13 +17,8 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Download staticlib
uses: actions/download-artifact@master
with:
name: threadx-cm4
path: threadx/build # Where build.rs expects it
- name: Install Ferrocene
env: # Or as an environment variable
env:
CRITICALUP_TOKEN: ${{ secrets.CRITICALUP_TOKEN }}
run: |
criticalup install
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ name: workflow-build-everything
run-name: Build Everything
on: [push]
jobs:
job-build-threadx-staticlib:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install tools
run: |
sudo apt-get update -y && sudo apt-get -y install cmake gcc gcc-arm-none-eabi build-essential ninja-build
- name: Compile ThreadX for Cortex-M4
run: |
cd threadx
cmake -Bbuild_m4 -GNinja -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake
cmake --build ./build_m4
- name: Upload staticlib
uses: actions/upload-artifact@master
with:
name: threadx-cm4
path: threadx/build_m4/libthreadx.a
job-build-demo-app:
runs-on: ubuntu-latest
needs: job-build-threadx-staticlib
Expand All @@ -40,11 +20,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Download staticlib
uses: actions/download-artifact@master
with:
name: threadx-cm4
path: threadx/build # Where build.rs expects it
- name: Add rustup target
run: |
rustup target add thumbv7em-none-eabi
Expand Down
249 changes: 0 additions & 249 deletions LICENSES/LicenseRef-Azure.txt

This file was deleted.

10 changes: 2 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
#!/bin/bash

# Builds the Cortex-M4 version of ThreadX, then builds a Rust
# application that links to it.
# Builds the various ThreadX demo apps.

# SPDX-FileCopyrightText: Copyright (c) 2023 Ferrous Systems
# SPDX-FileCopyrightText: Copyright (c) 2024 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0

set -euo pipefail

pushd threadx
cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake .
cmake --build ./build
popd

pushd demo-app
cargo build --release
popd
Loading

0 comments on commit 1b6a136

Please sign in to comment.