From 3903c2f8efbca6243369baedd28babe06bedfda1 Mon Sep 17 00:00:00 2001 From: Andre Riesco Date: Fri, 8 Nov 2024 12:26:59 -0300 Subject: [PATCH] cConsole:Deprecating it for Torizon OS 7(move to C/C++ Console template) Deprecating it for Torizon OS 7, since the maintainer will no longer be able to maintain it. #273 Also, C Console template is not needed, as the C/C++ Console template can also be used with C (information explaining how to use GCC instead of G++ was added to to the `.doc/README.md` of the C/C++ Console template). Signed-off-by: Andre Riesco --- DEPRECATED.md | 4 + README.md | 1 - cConsole/.conf/deps.json | 10 - cConsole/.conf/id_rsa | 27 -- cConsole/.conf/id_rsa.pub | 1 - cConsole/.conf/update.json | 14 - cConsole/.doc/README.md | 23 -- cConsole/.dockerignore | 1 - cConsole/.gitignore | 84 ----- cConsole/.vscode/c_cpp_properties.json | 15 - cConsole/.vscode/extensions.json | 6 - cConsole/.vscode/launch.json | 172 --------- cConsole/.vscode/settings.json | 22 -- cConsole/.vscode/tasks.json | 472 ------------------------- cConsole/Dockerfile | 77 ---- cConsole/Dockerfile.debug | 93 ----- cConsole/Dockerfile.sdk | 41 --- cConsole/Makefile | 68 ---- cConsole/docker-compose.yml | 15 - cConsole/includes/.ok | 0 cConsole/src/main.c | 8 - cmakeConsole/.doc/README.md | 5 +- cppConsole/.doc/README.md | 46 ++- 23 files changed, 50 insertions(+), 1155 deletions(-) delete mode 100644 cConsole/.conf/deps.json delete mode 100644 cConsole/.conf/id_rsa delete mode 100644 cConsole/.conf/id_rsa.pub delete mode 100644 cConsole/.conf/update.json delete mode 100644 cConsole/.doc/README.md delete mode 100644 cConsole/.dockerignore delete mode 100644 cConsole/.gitignore delete mode 100644 cConsole/.vscode/c_cpp_properties.json delete mode 100644 cConsole/.vscode/extensions.json delete mode 100644 cConsole/.vscode/launch.json delete mode 100644 cConsole/.vscode/settings.json delete mode 100644 cConsole/.vscode/tasks.json delete mode 100644 cConsole/Dockerfile delete mode 100644 cConsole/Dockerfile.debug delete mode 100644 cConsole/Dockerfile.sdk delete mode 100644 cConsole/Makefile delete mode 100644 cConsole/docker-compose.yml delete mode 100644 cConsole/includes/.ok delete mode 100644 cConsole/src/main.c diff --git a/DEPRECATED.md b/DEPRECATED.md index f8d13ef16..c237541d7 100644 --- a/DEPRECATED.md +++ b/DEPRECATED.md @@ -12,10 +12,14 @@ | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/gambasform.png?raw=true) | Gambas3 Form Project | Gambas3 | Visual Basic | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [gambasForms](./gambasForms) | ![](https://avatars.githubusercontent.com/u/2633321?v=4&s=64) [@microhobby](https://www.github.com/microhobby) | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/rust-console.png?raw=true) | Rust Console Application | libc | Rust | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [rustConsole](./rustConsole) | ![](https://avatars.githubusercontent.com/u/19845403?v=4&s=64) [@skkywalker](https://www.github.com/skkywalker) | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/python3console.png?raw=true) | Python 3 Pyside 2(Qt5) QML | Pyside 2 | Python 3 | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [python3Pyside2QML](./python3Pyside2QML) | ![](https://github.com/toradex/vscode-torizon-templates-documentation/blob/main/thumbnails/none.png?raw=true) [@andreriesco](https://www.github.com/andreriesco) | +| ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/cconsole.png?raw=true) | C Makefile Console Application | libc | C | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) ![](assets/img/riscv64.png?raw=true&id=2) ![](assets/img/x8664.png?raw=true&id=2) | [cConsole](./cConsole) | ![](https://avatars.githubusercontent.com/u/19562097?v=4&s=64) [@hiagofranco](https://www.github.com/hiagofranco) | This templates were deprecated due to the fact that their respective maintainer does not have the intention to keep maintaining them on Torizon OS 7. If you use any of this templates and have interest on becoming it's maintainer, please feel free to do so by [opening an issue here on the repository](https://github.com/torizon/vscode-torizon-templates/issues), contributions are welcome and we will help you out with this. + Python 3 Pyside 2(Qt5) QML template is an exception, since it will be replaced by a PySide6 (Qt6) template in the future. +Also, C Console template is not needed, as the C/C++ Console template can also be used with C (information explaining how to use GCC instead of G++ was added to to the `.doc/README.md` of the C/C++ Console template). + ## Already deprecated on Torizon OS 6 | TEMPLATE | DESCRIPTION | RUNTIME | LANGUAGE | HW ARCH | FOLDER | CONTRIBUTOR | diff --git a/README.md b/README.md index 70ef6f4e9..b507b4da5 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,6 @@ We encourage you to also contribute templates. The community supported templates | -------- | ----------- | ------- | -------- | ------- | ------ | ----------- | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/avaloniafbdrm.png?raw=true) | .NET 8 C# Avalonia Frame Buffer DRM | .NET 8.0 | C# | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [dotnetAvaloniaFrameBuffer](./dotnetAvaloniaFrameBuffer) | ![](https://avatars.githubusercontent.com/u/2633321?v=4&s=64) [@microhobby](https://www.github.com/microhobby) | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/avaloniagtk.png?raw=true) | .NET 8 C# Avalonia GTK MVVM | .NET 8.0 | C# | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [dotnetAvalonia](./dotnetAvalonia) | ![](https://avatars.githubusercontent.com/u/2633321?v=4&s=64) [@microhobby](https://www.github.com/microhobby) | -| ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/cconsole.png?raw=true) | C Makefile Console Application | libc | C | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) ![](assets/img/riscv64.png?raw=true&id=2) ![](assets/img/x8664.png?raw=true&id=2) | [cConsole](./cConsole) | ![](https://avatars.githubusercontent.com/u/19562097?v=4&s=64) [@hiagofranco](https://www.github.com/hiagofranco) | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/zig-console.png?raw=true) | Zig Console Application | no-libc | Zig | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [zigConsole](./zigConsole) | ![](https://avatars.githubusercontent.com/u/6756180?v=4&s=64) [@kassane](https://www.github.com/kassane) | | ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/refs/heads/main/thumbnails/nodejsts.png?raw=true) | Node.js TypeScript Application | Node.js | TypeScript | ![](assets/img/arm32.png?raw=true&id=2) ![](assets/img/arm64.png?raw=true&id=2) | [nodeJSTypeScript](./nodeJSTypeScript) | ![](https://avatars.githubusercontent.com/u/142019321?v=4&s=64) [@torizon](https://www.github.com/torizon) | diff --git a/cConsole/.conf/deps.json b/cConsole/.conf/deps.json deleted file mode 100644 index 9741f902d..000000000 --- a/cConsole/.conf/deps.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "packages": [ - "openssh-client", - "sshpass", - "build-essential", - "make", - "gdb", - "gcc" - ] -} diff --git a/cConsole/.conf/id_rsa b/cConsole/.conf/id_rsa deleted file mode 100644 index af98f44ff..000000000 --- a/cConsole/.conf/id_rsa +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAqpUaOa6i/TaSKwpdsHzLfGK95dDcFYpmYH5hUj0cBhVEVdl8 -JAG0MEDcZsjQHiBlfUiHmyU2iOWBoKUytpMnzYF6ggdZBv5hBMv3RcTlnNijxzxg -KvbjTm3LqAY8uu4SF9I8oDXVOn7xwZYgiC7s3XRGOP6TowSVEHsLB+cehWs4Y5io -3BngOlcOYZtVrh+i3A7xSHWP7n2IetJEo5C425oaOCZXUJT2egau6ODmvBItZjpG -mNdwVwrEI2H3o+LLI9tieNfyFcUFPNDRXbku1V0mXU9VjZ7WFihZXob11XNCEkY7 -Bg3SpzTntSRn9hZD7i3xDU9MSJz90rnn56ID1wIDAQABAoIBACI239i7/3Mcc/rw -DFSu4z2irIYg+1PSu7AVCT4uhaVutJMnmS+7q8GV8N8o3h18z/5uAs0KjMKuje6D -1AUsxOoCU2krQh8V/K2yn3k+AfQQu+DlakCT3onHmfassZeo0rY2c/SKd6dQ+Pqk -Owg1qUrN3Jvn7ALhk2iH1XGTWNrXj44AxVVhK3zADd/688stubo+mhj1vLJvk3IJ -j/cb9UtCnWDZ6U6E4C+5tfXqzrqbtlrWnIBe0qAwYI6+f4bSQxnNa42wNUh0v0mX -tiY9wnHEmE7nCQNQ8sBeBLEJm3xmFRhABNA+iAglsjfeBIbPNpy7rXty412CmHp0 -mLG0RskCgYEA4t4Ca3EDq/scg7fiplLjhk2AtsZumkYT/N+42x4VlioKfoaivLKf -6mjWUSr+c7Aq0Ssx9GdOFU0epNGbuvymCGBhq6v27SADMJTP2Dmg83FpcV6opOUM -SBz1tnrL9j74Eo9jGdnBjgxHOl4biO+uCjCZxcLoVjsfPpGnCeNSpFUCgYEAwHzM -GfiBR9wl+7cVrtP4YQgmzyZ6YCnqkfFasVAe6cN/0if5sqQRn3Fg3YFrP9GlKkkn -EMvow56nTWUmpx4KG4yanrocEYIsA4uv4kwyFOC/YD+67SQpgTEOjD0seDJoOgpz -ekkxNjMro8RJCK+DrV17qk3/dGY4b3u2M66P03sCgYEAhHCcswJX5WeD/vUzkGtl -PfsywADZgqCUfJRSg0Bt06sZU0Hf8Q7KQnsPWnUh9IGMjW2NDSPdtpu93vQq2J8z -gkJZ4nFShp2gnxTQvWbvKg80QiXDh/fbEqItY2kOduPNyHACp42y6+0JC+7yXh+l -13cF3ihpoCWFmO5IuIIHtb0CgYEAk5acwEUEi17HWOuWmog4591iNG8iYd2B2Akh -Ktdt/HtD5JV2JX0bbg924CA9ZZ+Pbo7Mf1p5zJQ3X2Zxbq3fviPe4ll88AfJS6at -Y2xc8hkpY9k5sF6L3F0K9IhrMnYj6GzfAiJgs1gk29rCzQAWjLUi/v/zIQLHvuMy -Xwo3iUUCgYEAo/27Qkb5nOdL8sJwFggDrdB1pPrxXN20KmYCJF1P9wPDhnj1fJ7+ -0Z/56XYzPA2rQx0vf5idvoGQ3KZS7QkOClLtcyevH3b38fnmAqv+dPLRHmrSd+3G -BspdMlr3rwZK8RKwXjDzLYpwSvjmf7PTGTPO3C7WTzg+m0U9RbSJKi4= ------END RSA PRIVATE KEY----- diff --git a/cConsole/.conf/id_rsa.pub b/cConsole/.conf/id_rsa.pub deleted file mode 100644 index 86f8fe63f..000000000 --- a/cConsole/.conf/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqlRo5rqL9NpIrCl2wfMt8Yr3l0NwVimZgfmFSPRwGFURV2XwkAbQwQNxmyNAeIGV9SIebJTaI5YGgpTK2kyfNgXqCB1kG/mEEy/dFxOWc2KPHPGAq9uNObcuoBjy67hIX0jygNdU6fvHBliCILuzddEY4/pOjBJUQewsH5x6FazhjmKjcGeA6Vw5hm1WuH6LcDvFIdY/ufYh60kSjkLjbmho4JldQlPZ6Bq7o4Oa8Ei1mOkaY13BXCsQjYfej4ssj22J41/IVxQU80NFduS7VXSZdT1WNntYWKFlehvXVc0ISRjsGDdKnNOe1JGf2FkPuLfENT0xInP3SuefnogPX \ No newline at end of file diff --git a/cConsole/.conf/update.json b/cConsole/.conf/update.json deleted file mode 100644 index 18dcae5b0..000000000 --- a/cConsole/.conf/update.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "source": "Makefile", - "target": "Makefile" - }, - { - "source": ".vscode/c_properties.json", - "target": ".vscode/c_properties.json" - }, - { - "source": "Dockerfile.sdk", - "target": "Dockerfile.sdk" - } -] diff --git a/cConsole/.doc/README.md b/cConsole/.doc/README.md deleted file mode 100644 index fb619760f..000000000 --- a/cConsole/.doc/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# C Console Template Specific Documentation - - -> ⚠️ **WARNING:** This is just the documentation part specific of this template. **For the complete and general Torizon IDE documentation, check the [developer website documentation](https://developer.toradex.com/torizon/application-development/ide-extension/)** ⚠️ - -All projects follow the pipeline of tasks described in the [common contributing documentation](https://github.com/toradex/vscode-torizon-templates/blob/bookworm/CONTRIBUTING.md#contributing-templates). However, each project has its own specificities in terms of technologies and methods used to compile, deploy, and debug the code. Therefore, each of them has their own specific tasks in the `tasks.json` file. - -This C console template uses Makefile to compile the code, with tasks named `build-makedir-\${architecture}` (creates the destination directory for the future compiled code) and `build-debug-\${architecture}` (compiles the code). It also uses an SDK container to cross-compile the code. This container image is built using the `Dockerfile.sdk` file, and the tasks that build the containers are named `build-container-image-sdk-\${architecture}`. - -The compiled code is then copied into the container, in the `torizon_app_root` (which is automatically passed to the `APP_ROOT` variable in the `Dockerfiles`) directory defined at `settings.json`, through the Docker `COPY` command. - -The task that has the entire pipeline of executed tasks, from the first step to the last step before the debugging, is the `deploy-torizon-\${architecture}` task. - -Finally, remote debugging is performed by attaching to the GDB on the running container on the device using a [VSCode feature called Pipe Transport](https://code.visualstudio.com/docs/cpp/pipe-transport). For local debugging, the [VSCode method for C/C++ Debugging](https://code.visualstudio.com/docs/cpp/launch-json-reference) is used. The tasks that perform the debugging are those present in the `launch.json` file. - -The source code of the template is a simple Hello World (Hello Torizon, actually) in C, using Makefile as build system. - -## Makefile Tools (Extension) Pop-up Message - -If the project is stuck when trying to debug it, check if the pop-up message below is shown on the bottom-right corner of VSCode. If it doesn't, press `F1` and type `Developer: Reload Window`, and then it will be shown. If it does, click on the `Yes (don't show again)` option. - - ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/bookworm/cppConsole/dryRunPopUp.png) - diff --git a/cConsole/.dockerignore b/cConsole/.dockerignore deleted file mode 100644 index 91ac1b8f8..000000000 --- a/cConsole/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -credentials.zip diff --git a/cConsole/.gitignore b/cConsole/.gitignore deleted file mode 100644 index a184adf95..000000000 --- a/cConsole/.gitignore +++ /dev/null @@ -1,84 +0,0 @@ - -# Created by https://www.gitignore.io/api/c,c++,cmake - -### C ### -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf - -### C++ ### -# Prerequisites - -# Compiled Object files -*.slo - -# Precompiled Headers - -# Compiled Dynamic libraries - -# Fortran module files -*.mod -*.smod - -# Compiled Static libraries -*.lai - -#Build directories -build-* - -# End of https://www.gitignore.io/api/c,c++,cmake - -credentials.zip -*.lock.yml - -.conf/.depok -.conf/.docok \ No newline at end of file diff --git a/cConsole/.vscode/c_cpp_properties.json b/cConsole/.vscode/c_cpp_properties.json deleted file mode 100644 index fb49d59e2..000000000 --- a/cConsole/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "configurations": [ - { - "name": "__change__", - "includePath": [ - "${workspaceFolder}/includes/**", - "/usr/include/**" - ], - "intelliSenseMode": "linux-gcc-x64", - "compilerPath": "/usr/bin/gcc", - "cStandard": "gnu17" - } - ], - "version": 4 -} diff --git a/cConsole/.vscode/extensions.json b/cConsole/.vscode/extensions.json deleted file mode 100644 index f19074486..000000000 --- a/cConsole/.vscode/extensions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "recommendations": [ - "ms-vscode.cpptools", - "ms-vscode.makefile-tools" - ] -} diff --git a/cConsole/.vscode/launch.json b/cConsole/.vscode/launch.json deleted file mode 100644 index 84dffb38c..000000000 --- a/cConsole/.vscode/launch.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "name": "Local AMD64", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build-local/debug/__change__", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceRoot}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "miDebuggerPath": "/usr/bin/gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ], - "preLaunchTask": "build-debug-local" - }, - { - "name": "Torizon AMD64", - "type": "cppdbg", - "request": "launch", - "program": "${config:torizon_app_root}/__change__", - "args": [], - "stopAtEntry": false, - "cwd": "${config:torizon_app_root}", - "environment": [], - "externalConsole": false, - "internalConsoleOptions": "openOnSessionStart", - "logging": { - "engineLogging": true, // set this to false for a smaller log on the debug console - }, - "sourceFileMap": { - "${config:torizon_app_root}": "${workspaceFolder}" - }, - "pipeTransport": { - "debuggerPath": "/usr/bin/gdb", - "pipeProgram": "ssh", - "pipeArgs": [ - "-T", - "-q", - "-p", - "${config:torizon_debug_ssh_port}", - "-o", - "StrictHostKeyChecking=no", - "-o", - "UserKnownHostsFile /dev/null", - "${config:torizon_run_as}@${config:torizon_ip}" // user@device - ] - }, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ], - "preLaunchTask": "deploy-torizon-amd64" - }, - { - "name": "Torizon ARMv7", - "type": "cppdbg", - "request": "launch", - "program": "${config:torizon_app_root}/__change__", - "args": [], - "stopAtEntry": false, - "cwd": "${config:torizon_app_root}", - "environment": [], - "externalConsole": false, - "internalConsoleOptions": "openOnSessionStart", - "logging": { - "engineLogging": true, // set this to false for a smaller log on the debug console - }, - "sourceFileMap": { - "${config:torizon_app_root}": "${workspaceFolder}" - }, - "pipeTransport": { - "debuggerPath": "/usr/bin/gdb", - "pipeProgram": "ssh", - "pipeArgs": [ - "-T", - "-q", - "-p", - "${config:torizon_debug_ssh_port}", - "-o", - "StrictHostKeyChecking=no", - "-o", - "UserKnownHostsFile /dev/null", - "${config:torizon_run_as}@${config:torizon_ip}" // user@device - ] - }, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ], - "preLaunchTask": "deploy-torizon-arm" - }, - { - "name": "Torizon ARMv8", - "type": "cppdbg", - "request": "launch", - "program": "${config:torizon_app_root}/__change__", - "args": [], - "stopAtEntry": false, - "cwd": "${config:torizon_app_root}", - "environment": [], - "externalConsole": false, - "internalConsoleOptions": "openOnSessionStart", - "logging": { - "engineLogging": true, // set this to false for a smaller log on the debug console - }, - "sourceFileMap": { - "${config:torizon_app_root}": "${workspaceFolder}" - }, - "pipeTransport": { - "debuggerPath": "/usr/bin/gdb", - "pipeProgram": "ssh", - "pipeArgs": [ - "-T", - "-q", - "-p", - "${config:torizon_debug_ssh_port}", - "-o", - "StrictHostKeyChecking=no", - "-o", - "UserKnownHostsFile /dev/null", - "${config:torizon_run_as}@${config:torizon_ip}" // user@device - ] - }, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ], - "preLaunchTask": "deploy-torizon-arm64" - }, - ] -} diff --git a/cConsole/.vscode/settings.json b/cConsole/.vscode/settings.json deleted file mode 100644 index 5a93338e9..000000000 --- a/cConsole/.vscode/settings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "torizon_psswd": "", - "torizon_login": "", - "torizon_ip": "", - "torizon_ssh_port": "", - "host_ip": "", - "torizon_workspace": "${workspaceFolder}", - "torizon_debug_ssh_port": "2230", - "torizon_debug_port1": "", - "torizon_debug_port2": "", - "torizon_debug_port3": "", - "torizon_gpu": "", - "torizon_arch": "", - "wait_sync": "1", - "torizon_run_as": "torizon", - "torizon_app_root": "/home/torizon/app", - "docker_tag": "v0.0.0", - "tcb.packageName": "__change__", - "tcb.version": "3.11.0", - "torizon.gpuPrefixRC": true, - "terminal.integrated.defaultProfile.linux": "bash" -} diff --git a/cConsole/.vscode/tasks.json b/cConsole/.vscode/tasks.json deleted file mode 100644 index 1c0fa0076..000000000 --- a/cConsole/.vscode/tasks.json +++ /dev/null @@ -1,472 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "build-makedir-local", - "hide": true, - "command": "make", - "type": "shell", - "args": [ - "ARCH=local", - "makedir" - ], - "problemMatcher": [ - "$gcc" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-makedir-amd64", - "hide": true, - "command": "make", - "type": "shell", - "args": [ - "ARCH=amd64", - "makedir" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOn": [ - "build-container-image-sdk-amd64" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-makedir-arm", - "hide": true, - "command": "make", - "type": "shell", - "args": [ - "ARCH=arm", - "makedir" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOn": [ - "build-container-image-sdk-arm" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-makedir-arm64", - "hide": true, - "command": "make", - "type": "shell", - "args": [ - "ARCH=arm64", - "makedir" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOn": [ - "build-container-image-sdk-arm64" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-debug-local", - "detail": "Build a debug version of the application for amd64 using\nthe toolchain installed in the host.", - "command": "make", - "type": "shell", - "args": [ - "ARCH=local", - "debug" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - "build-makedir-local" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-debug-arm64", - "detail": "Build a debug version of the application for arm64 using\nthe toolchain from the SDK container.", - "command": "DOCKER_HOST=", - "type": "shell", - "args": [ - "docker", - "run", - "--rm", - "-v", - "${workspaceFolder}:${config:torizon_app_root}", - "cross-toolchain-arm64-__container__", - "make", - "ARCH=arm64", - "CC=aarch64-linux-gnu-gcc", - "debug" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - "build-makedir-arm64" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "deploy-torizon-arm64", - "detail": "", - "hide": true, - "command": "rsync", - "type": "process", - "args": [ - "-P", - "-av", - "-e", - "ssh -p ${config:torizon_debug_ssh_port} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null", - "${workspaceFolder}/build-arm64/debug/", - "${config:torizon_run_as}@${config:torizon_ip}:${config:torizon_app_root}" - ], - "dependsOn": [ - "validate-settings", - "validate-arch-arm64", - "copy-docker-compose", - "pre-cleanup", - "build-debug-arm64", - "build-container-torizon-debug-arm64", - "push-container-torizon-debug-arm64", - "pull-container-torizon-debug-arm64", - "run-container-torizon-debug-arm64", - "pos-cleanup" - ], - "dependsOrder": "sequence", - "problemMatcher": "$msCompile", - "icon": { - "id": "debug-alt", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-debug-arm", - "detail": "Build a debug version of the application for arm using\nthe toolchain from the SDK container.", - "command": "DOCKER_HOST=", - "type": "shell", - "args": [ - "docker", - "run", - "--rm", - "-v", - "${workspaceFolder}:${config:torizon_app_root}", - "cross-toolchain-arm-__container__", - "make", - "ARCH=arm", - "CC=arm-linux-gnueabihf-gcc", - "debug" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - "build-makedir-arm" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "deploy-torizon-arm", - "detail": "", - "hide": true, - "command": "rsync", - "type": "process", - "args": [ - "-P", - "-av", - "-e", - "ssh -p ${config:torizon_debug_ssh_port} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null", - "${workspaceFolder}/build-arm/debug/", - "${config:torizon_run_as}@${config:torizon_ip}:${config:torizon_app_root}" - ], - "dependsOn": [ - "validate-settings", - "validate-arch-arm", - "copy-docker-compose", - "pre-cleanup", - "build-debug-arm", - "build-container-torizon-debug-arm", - "push-container-torizon-debug-arm", - "pull-container-torizon-debug-arm", - "run-container-torizon-debug-arm", - "pos-cleanup" - ], - "dependsOrder": "sequence", - "problemMatcher": "$msCompile", - "icon": { - "id": "debug-alt", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "build-debug-amd64", - "detail": "Build a debug version of the application for amd64 using\nthe toolchain from the SDK container.", - "command": "DOCKER_HOST=", - "type": "shell", - "args": [ - "docker", - "run", - "--rm", - "-v", - "${workspaceFolder}:${config:torizon_app_root}", - "cross-toolchain-amd64-__container__", - "make", - "ARCH=amd64", - "CC=x86_64-linux-gnu-gcc", - "debug" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - "build-makedir-amd64" - ], - "icon": { - "id": "tools", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "deploy-torizon-amd64", - "detail": "", - "hide": true, - "command": "rsync", - "type": "process", - "args": [ - "-P", - "-av", - "-e", - "ssh -p ${config:torizon_debug_ssh_port} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null", - "${workspaceFolder}/build-amd64/debug/", - "${config:torizon_run_as}@${config:torizon_ip}:${config:torizon_app_root}" - ], - "dependsOn": [ - "validate-settings", - "validate-arch-amd64", - "copy-docker-compose", - "pre-cleanup", - "build-debug-amd64", - "build-container-torizon-debug-amd64", - "push-container-torizon-debug-amd64", - "pull-container-torizon-debug-amd64", - "run-container-torizon-debug-amd64", - "pos-cleanup" - ], - "dependsOrder": "sequence", - "problemMatcher": "$msCompile", - "icon": { - "id": "debug-alt", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "clean-local", - "detail": "Clean the local application build directory. `make clean`", - "command": "make", - "type": "shell", - "args": [ - "clean", - "ARCH=local" - ], - "problemMatcher": [ - "$gcc" - ], - "icon": { - "id": "trash", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "clean-arm64", - "detail": "Clean the arm64 application build directory. `make clean`", - "command": "make", - "type": "shell", - "args": [ - "clean", - "ARCH=arm64" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - ], - "icon": { - "id": "trash", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "clean-arm", - "detail": "Clean the arm application build directory. `make clean`", - "command": "make", - "type": "shell", - "args": [ - "clean", - "ARCH=arm" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - ], - "icon": { - "id": "trash", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - { - "label": "clean-amd64", - "detail": "Clean the amd64 application build directory. `make clean`", - "command": "make", - "type": "shell", - "args": [ - "clean", - "ARCH=amd64" - ], - "problemMatcher": [ - "$gcc" - ], - "dependsOrder": "sequence", - "dependsOn": [ - ], - "icon": { - "id": "trash", - "color": "terminal.ansiYellow" - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": true, - "panel": "shared", - "group": "build-execution" - } - }, - ], -"inputs": [] -} diff --git a/cConsole/Dockerfile b/cConsole/Dockerfile deleted file mode 100644 index 9570f7295..000000000 --- a/cConsole/Dockerfile +++ /dev/null @@ -1,77 +0,0 @@ -ARG CROSS_SDK_BASE_TAG=4.0.0 -ARG BASE_VERSION=4.0.0 - -## -# Board architecture -## -ARG IMAGE_ARCH= - -## -# Directory of the application inside container -## -ARG APP_ROOT= - - -# BUILD ------------------------------------------------------------------------ -FROM torizon/cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG} AS build - -ARG APP_ROOT -ARG IMAGE_ARCH - -# __deps__ -RUN apt-get -q -y update && \ - apt-get -q -y install \ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - # __torizon_packages_build_start__ - # __torizon_packages_build_end__ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - && \ - apt-get clean && apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* -# __deps__ - -COPY . ${APP_ROOT} -WORKDIR ${APP_ROOT} - -# Remove the code from the debug builds, inside this container, to build the -# release version from a clean build -RUN rm -rf ${APP_ROOT}/build-${IMAGE_ARCH} - -# Compile the application -RUN if [ "$IMAGE_ARCH" = "arm64" ] ; then \ - make ARCH=${IMAGE_ARCH} CC=aarch64-linux-gnu-gcc ; \ - elif [ "$IMAGE_ARCH" = "armhf" ] ; then \ - make ARCH=${IMAGE_ARCH} CC=arm-linux-gnueabihf-gcc ; \ - elif [ "$IMAGE_ARCH" = "amd64" ] ; then \ - make ARCH=${IMAGE_ARCH} CC=x86_64-linux-gnu-gcc ; \ - fi - -# BUILD ------------------------------------------------------------------------ - - -# DEPLOY ----------------------------------------------------------------------- -FROM --platform=linux/${IMAGE_ARCH} torizon/debian:${BASE_VERSION} AS deploy - -ARG IMAGE_ARCH -ARG APP_ROOT - -RUN apt-get -y update && apt-get install -y --no-install-recommends \ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - # __torizon_packages_prod_start__ - # __torizon_packages_prod_end__ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* - - -# Copy the application compiled in the build step to the $APP_ROOT directory -# path inside the container, where $APP_ROOT is the torizon_app_root -# configuration defined in settings.json -COPY --from=build ${APP_ROOT}/build-${IMAGE_ARCH}/bin ${APP_ROOT} - -# "cd" (enter) into the APP_ROOT directory -WORKDIR ${APP_ROOT} - -# Command executed in runtime when the container starts -CMD ["./__change__"] - -# DEPLOY ----------------------------------------------------------------------- diff --git a/cConsole/Dockerfile.debug b/cConsole/Dockerfile.debug deleted file mode 100644 index 0326ceff0..000000000 --- a/cConsole/Dockerfile.debug +++ /dev/null @@ -1,93 +0,0 @@ -# ARGUMENTS -------------------------------------------------------------------- -## -# Board architecture -## -ARG IMAGE_ARCH= - - - -## -# Base container version -## -ARG BASE_VERSION=4.0.0 - -## -# Debug port -## -ARG DEBUG_SSH_PORT= - -## -# Run as -## -ARG SSHUSERNAME= - -## -# Application root directory inside the container -## -ARG APP_ROOT= - -# BUILD ------------------------------------------------------------------------ -## -# Deploy Step -## -FROM --platform=linux/${IMAGE_ARCH} \ - torizon/debian:${BASE_VERSION} AS debug - -ARG IMAGE_ARCH -ARG DEBUG_SSH_PORT -ARG SSHUSERNAME -ARG APP_ROOT - -# SSH for remote debug -EXPOSE ${DEBUG_SSH_PORT} - -# Make sure we don't get notifications we can't answer during building. -ENV DEBIAN_FRONTEND="noninteractive" - -# your regular RUN statements here -# Install required packages -RUN apt-get -q -y update && \ - apt-get -q -y install \ - openssl \ - openssh-server \ - rsync \ - file \ - curl \ - gdb && \ - apt-get clean && apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* - -# automate for torizonPackages.json -RUN apt-get -q -y update && \ - apt-get -q -y install \ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - # __torizon_packages_dev_start__ - # __torizon_packages_dev_end__ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - && \ - apt-get clean && apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* - -# ⚠️ DEBUG PURPOSES ONLY!! -# THIS CONFIGURES AN INSECURE SSH CONNECTION - -# create folders needed for the different components -# configures SSH access to the container and sets environment by default -RUN mkdir /var/run/sshd && \ - sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' \ - -i /etc/pam.d/sshd && \ - if test $SSHUSERNAME != root ; \ - then mkdir -p /home/$SSHUSERNAME/.ssh ; \ - else mkdir -p /root/.ssh ; fi && \ - echo "PermitUserEnvironment yes" >> /etc/ssh/sshd_config && \ - echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \ - echo "Port ${DEBUG_SSH_PORT}" >> /etc/ssh/sshd_config && \ - echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \ - echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config && \ - su -c "env" $SSHUSERNAME > /etc/environment && \ - echo "$SSHUSERNAME:" | chpasswd -e - -RUN rm -r /etc/ssh/ssh*key && \ - dpkg-reconfigure openssh-server - -CMD [ "/usr/sbin/sshd", "-D" ] diff --git a/cConsole/Dockerfile.sdk b/cConsole/Dockerfile.sdk deleted file mode 100644 index e88d370c7..000000000 --- a/cConsole/Dockerfile.sdk +++ /dev/null @@ -1,41 +0,0 @@ -# ARGUMENTS -------------------------------------------------------------------- -ARG CROSS_SDK_BASE_TAG=4.0.0 - -## -# Board architecture -## -ARG IMAGE_ARCH= - -## -# Application root directory inside the container -## -ARG APP_ROOT= - -# BUILD ------------------------------------------------------------------------ -FROM torizon/cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG} - -ARG APP_ROOT -ARG IMAGE_ARCH - -# __deps__ -RUN apt-get -q -y update && \ - apt-get -q -y install \ - # ADD YOUR PACKAGES HERE - && \ - apt-get clean && apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* -# __deps__ - -# automate for torizonPackages.json -RUN apt-get -q -y update && \ - apt-get -q -y install \ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - # __torizon_packages_build_start__ - # __torizon_packages_build_end__ -# DO NOT REMOVE THIS LABEL: this is used for VS Code automation - && \ - apt-get clean && apt-get autoremove && \ - rm -rf /var/lib/apt/lists/* - -USER torizon -WORKDIR ${APP_ROOT} diff --git a/cConsole/Makefile b/cConsole/Makefile deleted file mode 100644 index 84c02cb63..000000000 --- a/cConsole/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -# tool macros -CC := gcc -CCFLAGS := -Iincludes/ -DBGFLAGS := -g -LDFLAGS := -CCOBJFLAGS := $(CCFLAGS) -c -ARCH := - -# path macros -BIN_PATH := build-$(ARCH)/bin -OBJ_PATH := build-$(ARCH)/obj -SRC_PATH := src -DBG_PATH := build-$(ARCH)/debug - -# compile macros -TARGET_NAME := __change__ -TARGET := $(BIN_PATH)/$(TARGET_NAME) -TARGET_DEBUG := $(DBG_PATH)/$(TARGET_NAME) - -# src files & obj files -SRC := $(foreach x, $(SRC_PATH), $(wildcard $(addprefix $(x)/*,.c*))) -OBJ := $(addprefix $(OBJ_PATH)/, $(addsuffix .o, $(notdir $(basename $(SRC))))) -OBJ_DEBUG := $(addprefix $(DBG_PATH)/, $(addsuffix .o, $(notdir $(basename $(SRC))))) - -# clean files list -DISTCLEAN_LIST := $(OBJ) \ - $(OBJ_DEBUG) - -CLEAN_LIST := $(TARGET) \ - $(TARGET_DEBUG) \ - $(DISTCLEAN_LIST) - -# default rule -default: makedir all - -# non-phony targets -$(TARGET): $(OBJ) - $(CC) $(CCFLAGS) -o $@ $(OBJ) $(LDFLAGS) - -$(OBJ_PATH)/%.o: $(SRC_PATH)/%.c* - $(CC) $(CCOBJFLAGS) -o $@ $< - -$(DBG_PATH)/%.o: $(SRC_PATH)/%.c* - $(CC) $(CCOBJFLAGS) $(DBGFLAGS) -o $@ $< - -$(TARGET_DEBUG): $(OBJ_DEBUG) - $(CC) $(CCFLAGS) $(DBGFLAGS) $(OBJ_DEBUG) -o $@ $(LDFLAGS) - -# phony rules -.PHONY: makedir -makedir: - @mkdir -p $(BIN_PATH) $(OBJ_PATH) $(DBG_PATH) - -.PHONY: all -all: $(TARGET) - -.PHONY: debug -debug: $(TARGET_DEBUG) - -.PHONY: clean -clean: - @echo CLEAN $(CLEAN_LIST) - @rm -f $(CLEAN_LIST) - -.PHONY: distclean -distclean: - @echo CLEAN $(CLEAN_LIST) - @rm -f $(DISTCLEAN_LIST) diff --git a/cConsole/docker-compose.yml b/cConsole/docker-compose.yml deleted file mode 100644 index 0c9636214..000000000 --- a/cConsole/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3.9" -services: - __container__-debug: - build: - context: . - dockerfile: Dockerfile.debug - image: ${LOCAL_REGISTRY}:5002/__container__-debug:${TAG} - ports: - - ${DEBUG_SSH_PORT}:${DEBUG_SSH_PORT} - - __container__: - build: - context: . - dockerfile: Dockerfile - image: ${DOCKER_LOGIN}/__container__:${TAG} diff --git a/cConsole/includes/.ok b/cConsole/includes/.ok deleted file mode 100644 index e69de29bb..000000000 diff --git a/cConsole/src/main.c b/cConsole/src/main.c deleted file mode 100644 index 92669b629..000000000 --- a/cConsole/src/main.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -int main(int argc, char *argv[]) -{ - printf("Hello Torizon!\n"); - - return 0; -} diff --git a/cmakeConsole/.doc/README.md b/cmakeConsole/.doc/README.md index b87ce62e0..eee5f4006 100644 --- a/cmakeConsole/.doc/README.md +++ b/cmakeConsole/.doc/README.md @@ -1,4 +1,4 @@ -# C++ CMake Template Specific Documentation +# C/C++ CMake Template Specific Documentation > ⚠️ **WARNING:** This is just the documentation part specific of this template. **For the complete and general Torizon IDE documentation, check the [developer website documentation](https://developer.toradex.com/torizon/application-development/ide-extension/)** ⚠️ @@ -13,5 +13,4 @@ The task that has the entire pipeline of executed tasks, from the first step to Finally, remote debugging is performed by attaching to the GDB on the running container on the device using a [VSCode feature called Pipe Transport](https://code.visualstudio.com/docs/cpp/pipe-transport). For local debugging, the [VSCode method for C/C++ Debugging](https://code.visualstudio.com/docs/cpp/launch-json-reference) is used. The tasks that perform the debugging are those present in the `launch.json` file. -The source code of the template is a simple Hello World (Hello Torizon, actually) in C++, using Makefile as build system. - +The source code of the template is a simple Hello World (Hello Torizon, actually) in C++, using CMake as build system. diff --git a/cppConsole/.doc/README.md b/cppConsole/.doc/README.md index d385dc732..2bdf138f7 100644 --- a/cppConsole/.doc/README.md +++ b/cppConsole/.doc/README.md @@ -1,5 +1,4 @@ -# C++ Console Template Specific Documentation - +# C/C++ Console Template Specific Documentation > ⚠️ **WARNING:** This is just the documentation part specific of this template. **For the complete and general Torizon IDE documentation, check the [developer website documentation](https://developer.toradex.com/torizon/application-development/ide-extension/)** ⚠️ @@ -21,3 +20,46 @@ If the project is stuck when trying to debug it, check if the pop-up message bel ![](https://raw.githubusercontent.com/toradex/vscode-torizon-templates-documentation/bookworm/cppConsole/dryRunPopUp.png) + +## Addapting this template to use GCC instead of G++ + +You can easily addapt this template to use GCC instead of G++, by changing it to `gcc` in the following places: + +- `CC` on `Makefile`. From: + ``` + CC := g++ + ``` + To: + ``` + CC := gcc + ``` + +- `CC` of `build-debug-` tasks on `.vscode/tasks.json`. From: + ``` + "CC=-g++", + ``` + To: + ``` + "CC=-gcc", + ``` + +- `make` command of `Dockerfile`. From: + ``` + RUN if [ "$IMAGE_ARCH" = "arm64" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=aarch64-linux-gnu-g++ ; \ + elif [ "$IMAGE_ARCH" = "arm" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=arm-linux-gnueabihf-g++ ; \ + elif [ "$IMAGE_ARCH" = "amd64" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=x86_64-linux-gnu-g++ ; \ + fi + ``` + To: + ``` + RUN if [ "$IMAGE_ARCH" = "arm64" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=aarch64-linux-gnu-gcc ; \ + elif [ "$IMAGE_ARCH" = "arm" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=arm-linux-gnueabihf-gcc ; \ + elif [ "$IMAGE_ARCH" = "amd64" ] ; then \ + make ARCH=${IMAGE_ARCH} CC=x86_64-linux-gnu-gcc ; \ + fi + ``` \ No newline at end of file