From 165b8615af404b19ee907e9eddd9ebacb5016cce Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Sun, 25 Feb 2024 14:15:43 +0100 Subject: [PATCH] Updated CMake command. --- .github/workflows/build_demos.yml | 2 +- demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md | 10 +++++++--- .../modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md | 10 +++++++--- .../modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md | 10 +++++++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_demos.yml b/.github/workflows/build_demos.yml index 9c32a2c..086d345 100644 --- a/.github/workflows/build_demos.yml +++ b/.github/workflows/build_demos.yml @@ -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 diff --git a/demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md b/demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md index 65a5fef..9e8b4c9 100644 --- a/demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md +++ b/demos/base/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md @@ -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 @@ -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: diff --git a/demos/modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md b/demos/modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md index 0fc7ab5..36d0645 100644 --- a/demos/modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md +++ b/demos/modbus/ARM_CORTEXM_ST_Nucleo_F091RC/GCC/README.md @@ -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 @@ -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: diff --git a/demos/modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md b/demos/modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md index 45cbc59..2da6e64 100644 --- a/demos/modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md +++ b/demos/modbus/ARM_CORTEXM_ST_Nucleo_F429ZI/GCC/README.md @@ -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 @@ -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: