cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate binaries (.bin) from GitLab CI/CD

mikel-m
Associate II

Hi,

I have a project in STM32CubeIDE and I use the 'Build Project' option to generate the project binary.

Now, what I want to do is to generate that binary from GitLab CI/CD. To do this, I have registered a GitLab runner on a Linux machine with all the different tools installed.

What command do I have to run in the GitLab pipeline?

I tried to run 'make -j12 all' in the pipeline but I got the following error:

arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/bl2_main.o'
make[1]: *** [Middlewares/mcuboot/bl2_main.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/caps.o'
make[1]: *** [Middlewares/mcuboot/caps.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/fault_injection_hardening.o'
make[1]: *** [Middlewares/mcuboot/fault_injection_hardening.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/encrypted.o'
make[1]: *** [Middlewares/mcuboot/encrypted.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/flash_map.o'
make[1]: *** [Middlewares/mcuboot/flash_map.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/image_ec.o'
make[1]: *** [Middlewares/mcuboot/image_ec.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/image_rsa.o'
make[1]: *** [Middlewares/mcuboot/image_rsa.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/image_ec256.o'
make[1]: *** [Middlewares/mcuboot/image_ec256.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/fault_injection_hardening_delay_rng_mbedtls.o'
make[1]: *** [Middlewares/mcuboot/fault_injection_hardening_delay_rng_mbedtls.o] Error 1
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/bootutil_misc.o'
make[1]: *** [Middlewares/mcuboot/bootutil_misc.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/flash_map_legacy.o'
make[1]: *** [Middlewares/mcuboot/flash_map_legacy.o] Error 1
arm-none-eabi-gcc: error: unrecognized command line option '-fcyclomatic-complexity'
Middlewares/mcuboot/subdir.mk:76: fallo en las instrucciones para el objetivo 'Middlewares/mcuboot/flash_map_extended.o'
make[1]: *** [Middlewares/mcuboot/flash_map_extended.o] Error 1
makefile:61: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2

Thanks and best regards,

0 REPLIES 0