bitcraze / crazyflie-firmware

The main firmware for the Crazyflie Nano Quadcopter, Crazyflie Bolt Quadcopter and Roadrunner Positioning Tag.
GNU General Public License v3.0
1.19k stars 1.06k forks source link

Kbuild: Convert more compiler defines to Kconfig #942

Closed jonasdn closed 2 years ago

jonasdn commented 2 years ago

Right now a lot is controlled from defines on the command line, see all-flags in cy.yml:

- name: All features
      run: docker run --rm -v ${PWD}:/module bitcraze/builder \
      ./tools/build/build PLATFORM=cf2 CONFIG_DEBUG=y \ 
      "EXTRA_CFLAGS=-DCALIBRATED_LED_MORSE -DSENSORS_MPU6500_DLPF_256HZ \
      -DMADWICK_QUATERNION_IMU -DDEBUG_QUEUE_MONITOR  -DOW_WRITE_TEST \
      -DOW_READ_TEST -DDEBUG_PRINT_ON_UART -DENABLE_UART1 -DENABLE_UART2"  \ 
       UNIT_TEST_STYLE=min

Some or all of these could probably be converted to Kconfig style options instead. The goal is removing the all-flags part of the CI and having the allyesconfig be its equivielent.

jonasdn commented 2 years ago