mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 08:23:33 +08:00
Initial Kconfig implementation in CMake
Used fmuk66-v3 as test case
This commit is contained in:
committed by
Daniel Agar
parent
4b89ff29ce
commit
4044fbd4a0
+186
-41
@@ -1,86 +1,231 @@
|
||||
|
||||
menuconfig ADC
|
||||
bool "ADC Support"
|
||||
menu "ADC"
|
||||
source src/drivers/adc/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig DRIVERS_BAROMETER
|
||||
bool "Barometer"
|
||||
default n
|
||||
---help---
|
||||
Enable support for ADC
|
||||
Enable support for Barometers
|
||||
|
||||
menuconfig BAROMETER
|
||||
bool "Barometer Support"
|
||||
if DRIVERS_BAROMETER
|
||||
source src/drivers/barometer/Kconfig
|
||||
endif #DRIVERS_BAROMETER
|
||||
|
||||
menuconfig DRIVERS_BATT_SMBUS
|
||||
bool "batt smbus"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available barometer drivers
|
||||
|
||||
menuconfig BOOTLOADERS
|
||||
bool "BOOTLOADERS Support"
|
||||
Enable support for batt smbus
|
||||
|
||||
menuconfig DRIVERS_BOOTLOADERS
|
||||
bool "BOOTLOADERS"
|
||||
default n
|
||||
---help---
|
||||
Enable support for bootloaders
|
||||
|
||||
menuconfig DIFFERENTIAL_PRESSURE
|
||||
bool "Differential pressure Support"
|
||||
menuconfig DRIVERS_CAMERA_CAPTURE
|
||||
bool "camera capture"
|
||||
default n
|
||||
---help---
|
||||
Enable support for camera capture
|
||||
|
||||
menuconfig DRIVERS_CAMERA_TRIGGER
|
||||
bool "camera trigger"
|
||||
default n
|
||||
---help---
|
||||
Enable support for camera trigger
|
||||
|
||||
menuconfig DRIVERS_DIFFERENTIAL_PRESSURE
|
||||
bool "Differential pressure"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available differential pressure drivers
|
||||
|
||||
menuconfig GPS
|
||||
bool "GPS Support"
|
||||
menuconfig DRIVERS_DISTANCE_SENSOR
|
||||
bool "distance sensor"
|
||||
default n
|
||||
---help---
|
||||
Enable support for distance sensor
|
||||
|
||||
menuconfig DRIVERS_DSHOT
|
||||
bool "dshot"
|
||||
default n
|
||||
---help---
|
||||
Enable support for dshot
|
||||
|
||||
menuconfig DRIVERS_GPS
|
||||
bool "GPS"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available GPS drivers
|
||||
|
||||
menuconfig IMU
|
||||
bool "IMU Support"
|
||||
menuconfig DRIVERS_HEATER
|
||||
bool "heater"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available IMU drivers
|
||||
Enable support for heater
|
||||
|
||||
menuconfig LIGHTS
|
||||
bool "Lights Support"
|
||||
default n
|
||||
---help---
|
||||
Enable support for lights
|
||||
|
||||
if LIGHTS
|
||||
#source src/drivers/lights/Kconfig
|
||||
endif #LIGHTS
|
||||
menu "IMU"
|
||||
source src/drivers/imu/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig MAGNETOMETER
|
||||
bool "Magnetometer Support"
|
||||
menuconfig DRIVERS_IRLOCK
|
||||
bool "irlock"
|
||||
default n
|
||||
---help---
|
||||
Enable support for irlock
|
||||
|
||||
menu "Lights"
|
||||
source src/drivers/lights/Kconfig
|
||||
endmenu
|
||||
|
||||
menuconfig DRIVERS_LINUX_PWM_OUT
|
||||
bool "linux pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for linux pwm out
|
||||
|
||||
menuconfig DRIVERS_MAGNETOMETER
|
||||
bool "Magnetometer"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available magnetometer drivers
|
||||
|
||||
menuconfig OPTICAL_FLOW
|
||||
bool "Optical flow Support"
|
||||
menuconfig DRIVERS_OPTICAL_FLOW
|
||||
bool "Optical flow"
|
||||
default n
|
||||
---help---
|
||||
Enable support for all available optical flow drivers
|
||||
|
||||
menuconfig PWM_OUT
|
||||
bool "PWM Out Support"
|
||||
|
||||
menuconfig DRIVERS_OSD
|
||||
bool "osd"
|
||||
default n
|
||||
---help---
|
||||
Enable support for PWM Out
|
||||
Enable support for osd
|
||||
|
||||
menuconfig SAFETY_BUTTON
|
||||
bool "Safety button Support"
|
||||
menuconfig DRIVERS_PCA9685
|
||||
bool "pca9685"
|
||||
default n
|
||||
---help---
|
||||
Enable support for Safety button
|
||||
Enable support for pca9685
|
||||
|
||||
menuconfig TONE_ALARM
|
||||
bool "Tone alarm Support"
|
||||
menuconfig DRIVERS_PCA9685_PWM_OUT
|
||||
bool "pca9685 pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pca9685 pwm out
|
||||
|
||||
menuconfig DRIVERS_POWER_MONITOR
|
||||
bool "power monitor"
|
||||
default n
|
||||
---help---
|
||||
Enable support for power monitor
|
||||
|
||||
menuconfig DRIVERS_PROTOCOL_SPLITTER
|
||||
bool "protocol splitter"
|
||||
default n
|
||||
---help---
|
||||
Enable support for protocol splitter
|
||||
|
||||
menuconfig DRIVERS_PWM_INPUT
|
||||
bool "pwm input"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm input
|
||||
|
||||
menuconfig DRIVERS_PWM_OUT
|
||||
bool "pwm out"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm out
|
||||
|
||||
menuconfig DRIVERS_PWM_OUT_SIM
|
||||
bool "pwm out sim"
|
||||
default n
|
||||
---help---
|
||||
Enable support for pwm out sim
|
||||
|
||||
menuconfig DRIVERS_PX4IO
|
||||
bool "px4io"
|
||||
default n
|
||||
---help---
|
||||
Enable support for px4io
|
||||
|
||||
menuconfig DRIVERS_QSHELL
|
||||
bool "qshell"
|
||||
default n
|
||||
---help---
|
||||
Enable support for qshell
|
||||
|
||||
menuconfig DRIVERS_RC_INPUT
|
||||
bool "rc input"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rc input
|
||||
|
||||
menuconfig DRIVERS_ROBOCLAW
|
||||
bool "roboclaw"
|
||||
default n
|
||||
---help---
|
||||
Enable support for roboclaw
|
||||
|
||||
menuconfig DRIVERS_RPI_RC_IN
|
||||
bool "rpi rc in"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rpi rc in
|
||||
|
||||
menuconfig DRIVERS_RPM
|
||||
bool "rpm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for rpm
|
||||
|
||||
menuconfig DRIVERS_SAFETY_BUTTON
|
||||
bool "safety button"
|
||||
default n
|
||||
---help---
|
||||
Enable support for safety button
|
||||
|
||||
menuconfig DRIVERS_SPEKTRUM_RC
|
||||
bool "spektrum rc"
|
||||
default n
|
||||
---help---
|
||||
Enable support for spektrum rc
|
||||
|
||||
menuconfig DRIVERS_TELEMETRY
|
||||
bool "telemetry"
|
||||
default n
|
||||
---help---
|
||||
Enable support for telemetry
|
||||
|
||||
menuconfig DRIVERS_TEST_PPM
|
||||
bool "test ppm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for test ppm
|
||||
|
||||
menuconfig DRIVERS_TONE_ALARM
|
||||
bool "Tone alarm"
|
||||
default n
|
||||
---help---
|
||||
Enable support for tone alarm
|
||||
|
||||
menuconfig UAVCAN_V1
|
||||
bool "UAVCANv1 Support"
|
||||
menuconfig DRIVERS_UAVCAN
|
||||
bool "uavcan"
|
||||
default n
|
||||
---help---
|
||||
Enable support for uavcan
|
||||
|
||||
menuconfig DRIVERS_UAVCAN_V1
|
||||
bool "UAVCANv1"
|
||||
default n
|
||||
---help---
|
||||
Enable support for UAVCANv1
|
||||
|
||||
if UAVCAN_V1
|
||||
if DRIVERS_UAVCAN_V1
|
||||
source src/drivers/uavcan_v1/Kconfig
|
||||
endif #UAVCAN_V1
|
||||
endif #DRIVERS_UAVCAN_V1
|
||||
|
||||
Reference in New Issue
Block a user