a-v-s / ucdev

BSCP Makefiles and scripts for Embedded development
https://a-v-s.github.io/ucdev/
5 stars 0 forks source link

Static Library building for HALs are not automatically building #3

Closed a-v-s closed 2 years ago

a-v-s commented 2 years ago

When a static library for a HAL is not build, the Makefile tried to build it automatically eg

make -C ../../build/staticlib/stm32f3 TARGET=STM32F303xC

which is broken.

The Makefiles for static libs must be rewritten to allow for this to work, as there is a conflict with the use of the MCU variable. These Makefiles have been made before there was static library building support in the ucdev Makefiles. They must be adopted to use the static library support (which may need to be extended for this purpose, as they currently target ARCH/SUBARCH only)