summaryrefslogtreecommitdiff
path: root/examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh
diff options
context:
space:
mode:
authorRaul Munoz <raul.munoz@toradex.com>2017-05-19 15:06:13 -0300
committerStefan Agner <stefan.agner@toradex.com>2017-05-22 17:09:55 -0700
commit7864c4b9e57a844807fa6f53dee509eb6d8ae389 (patch)
tree1264af57d787fdb37b9431fd1354a5ad7c811515 /examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh
parent1308c4c2cd49e82c8c33cbdf053e6651f1e7dea4 (diff)
examples: flexcan_loopback: update CMake structure
Updating this CMake struct according hello_world example. Using this new struct we can build debug and release configuration at the same time and use Eclipse. Signed-off-by: Raul Munoz <raul.munoz@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh')
-rwxr-xr-xexamples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh b/examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh
index 3827529..99e6267 100755
--- a/examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh
+++ b/examples/imx7_colibri_m4/driver_examples/flexcan/flexcan_loopback/armgcc/build_all.sh
@@ -1,5 +1,7 @@
#!/bin/sh
-cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .
-make -j4
-cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .
-make -j4
+cd debug/
+./build_debug.sh
+cd ..
+cd release/
+./build_release.sh
+cd ..