Skip to content

Commit

Permalink
Updated CMake command.
Browse files Browse the repository at this point in the history
  • Loading branch information
feaser committed Feb 25, 2024
1 parent bae9b53 commit 165b861
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
submodules: true
- name: Generate build environment
working-directory: build
run: cmake ..
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- name: Clean the build environment
working-directory: build
run: make clean
Expand Down
10 changes: 7 additions & 3 deletions demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ These demo programs are targeted towards an ST [Nucleo-F091RC](https://www.st.co

# Prerequisites

It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this. On a Debian/Ubuntu based system, the GNU tools can be installed with the following command:
It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this.

Installation instructions for a Debian/Ubuntu based system:

```sh
sudo apt-get install build-essential
sudo apt install cmake build-essential binutils-arm-none-eabi \
gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib \
libnewlib-arm-none-eabi
```

# Building
Expand All @@ -16,7 +20,7 @@ Using the terminal, set the working directory to where you clone the demo reposi

```bash
cd build
cmake ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
```

To build a specific demo program, go to its subdirectory inside the `build` directory and type the `make` command. Example for the *dynamic array* demo program, assuming that you are already in the `build` subdirectory:
Expand Down
10 changes: 7 additions & 3 deletions demos/modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ These demo programs are targeted towards an ST [Nucleo-F091RC](https://www.st.co

# Prerequisites

It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this. On a Debian/Ubuntu based system, the GNU tools can be installed with the following command:
It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this.

Installation instructions for a Debian/Ubuntu based system:

```sh
sudo apt-get install build-essential
sudo apt install cmake build-essential binutils-arm-none-eabi \
gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib \
libnewlib-arm-none-eabi
```

# Building
Expand All @@ -16,7 +20,7 @@ Using the terminal, set the working directory to where you clone the demo reposi

```bash
cd build
cmake ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
```

To build a specific demo program, go to its subdirectory inside the `build` directory and type the `make` command. Example for the *dynamic array* demo program, assuming that you are already in the `build` subdirectory:
Expand Down
10 changes: 7 additions & 3 deletions demos/modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ These demo programs are targeted towards an ST [Nucleo-F429ZI](https://www.st.co

# Prerequisites

It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this. On a Debian/Ubuntu based system, the GNU tools can be installed with the following command:
It is assumed that [CMake](https://cmake.org/) and the [ARM GCC Embedded toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) are installed on the system and available on the PATH. Additionally, the GNU tools *make* and *rm* should be installed and available on the path. Windows users can install the [GNU MCU Eclipse Windows Build Tools](https://gnu-mcu-eclipse.github.io/windows-build-tools/) for this.

Installation instructions for a Debian/Ubuntu based system:

```sh
sudo apt-get install build-essential
sudo apt install cmake build-essential binutils-arm-none-eabi \
gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib \
libnewlib-arm-none-eabi
```

# Building
Expand All @@ -16,7 +20,7 @@ Using the terminal, set the working directory to where you clone the demo reposi

```bash
cd build
cmake ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
```

To build a specific demo program, go to its subdirectory inside the `build` directory and type the `make` command. Example for the *dynamic array* demo program, assuming that you are already in the `build` subdirectory:
Expand Down

0 comments on commit 165b861

Please sign in to comment.