AlkaMotors / AM32-MultiRotor-ESC-firmware

Firmware for stm32f051 based speed controllers for use with mutirotors
GNU General Public License v3.0
754 stars 266 forks source link

Makefiles updates for easy maintenance #63

Closed cruwaller closed 2 years ago

cruwaller commented 2 years ago

Makefiles updated to allow build all targets without additional modifications.

Targets can be built independently using:

or per mcu type:

or all make all

AlkaMotors commented 2 years ago

Nice, I like it, I had not been able to figure out how to combine them properly .. I'll look it over more later and give it a try. Gd32 is not functional yet anyway. It works on the 48pin lqfp but I haven't finished it.

Voodoobrew101 commented 2 years ago

So we no longer need to edit the makefile to switch MCU's then?

cruwaller commented 2 years ago

So we no longer need to edit the makefile to switch MCU's then?

Yeah, that's the point :)

DusKing1 commented 2 years ago

Seems quite clean and nice to me. @AlkaMotors now I want you to approve this PR firstly and let's see how the CI part going on.

cruwaller commented 2 years ago

We also need to fix dependency files. I can do that later. That would make CI and development faster (no need to clean every tim) :)

AlkaMotors commented 2 years ago

Works for me, nice and clean, thanks @cruwaller