elmot / clion-embedded-arm

OpenOCD + STM32CubeMX support for CLion
https://blog.jetbrains.com/clion/2017/12/clion-for-embedded-development-part-ii
Other
170 stars 29 forks source link

CubeMX Makefile code generation support #91

Closed phaethon closed 5 years ago

phaethon commented 6 years ago

Expected Behavior

Latest CubeMX versions allow to select Makefile as a toolchain for code generation. Output is cleaner than SW4STM32 for the purposes of CLion import. Basically, only CMakeLists.txt has to be created. Initial project import should work with Makefile output of CubeMX.

Actual Behavior

Plugin does not create the CMakeLists.txt when importing Makefile code export from CLion.

Steps to Reproduce the Problem

  1. Choose Makefile as toolchain in CubeMX.
  2. Import project into CLion with OpenOCD plugin enabled.

Specifications

elmot commented 6 years ago

Last time when I tried that makefile it did not work well at least on Windows. CLion 2018 is going to support makefiles, I will check out how it works at some point.

phaethon commented 6 years ago

I am using the CubeMX generated Makefile on Linux and MacOS. Works fine for me. At present, I am manually converting it to cmake to use with CLion. Give me a notice if you want a working sample.

phaethon commented 6 years ago

There is also custom target way: https://stackoverflow.com/questions/26918459/using-local-makefile-for-clion-instead-of-cmake

elmot commented 6 years ago

Well, the feature request looks more like "Support multiple build files generated from templates"

elmot commented 5 years ago

This is not going to be implemented in open-source plugin. If the issue is still valid, please create a feature request at JetBrains YouTrack system. Please do not forget to provide an example.