当前位置: 首页 > 工具软件 > ChibiOS/RT > 使用案例 >

ArduPilot飞控ChibiOS静态库源码编译选项

严信瑞
2023-12-01

备注:

  • -O0 -g3 -ggdb3是自己添加的

  • 飞控板类型:fmuv3

汇编语言编译选项
arm-none-eabi-gcc 
-c 
-mcpu=cortex-m4 
-Wa,-amhls=modules/ChibiOS/lst/crt0_v7m.lst 
-DCORTEX_USE_FPU=TRUE  
-O0 -g3 -ggdb3 
-DTHUMB_PRESENT 
-mno-thumb-interwork 
-DTHUMB_NO_INTERWORKING 
-mthumb 
-MD -MP -MF 
.dep/crt0_v7m.o.d 
-mthumb -DTHUMB 
-I. 
-I../../modules/ChibiOS/os/license 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../modules/ChibiOS/os/common/portability/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/devices/STM32F4xx 
-I../../modules/ChibiOS/os/common/ext/ARM/CMSIS/Core/Include 
-I../../modules/ChibiOS/os/common/ext/ST/STM32F4xx 
-I../../modules/ChibiOS/os/hal/include 
-I../../modules/ChibiOS/os/hal/ports/common/ARMCMx 
-I../../modules/ChibiOS/os/hal/ports/STM32/STM32F4xx 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/ADCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CANv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CRYPv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DMAv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/EXTIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/GPIOv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/I2Cv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/OTGv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/QUADSPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/RTCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SDIOv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/TIMv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/USARTv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/xWDGv1 
-I../../modules/ChibiOS/os/hal/osal/rt 
-I../../modules/ChibiOS/os/rt/include 
-I../../modules/ChibiOS/os/oslib/include 
-I../../modules/ChibiOS/os/common/ports/ARMCMx 
-I../../modules/ChibiOS/os/common/ports/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/hal/lib/streams 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../libraries/AP_HAL_ChibiOS/hwdef/common 
../../modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S 
-o modules/ChibiOS/obj/crt0_v7m.o
C语言编译选项
arm-none-eabi-gcc 
-c 
-mcpu=cortex-m4 
-g 
-fomit-frame-pointer 
-falign-functions=16 
-ffunction-sections 
-fdata-sections 
-fno-common 
-mfloat-abi=hard 
-mfpu=fpv4-sp-d16 
-fsingle-precision-constant 
-Og 
-Wall 
-Wextra 
-Wundef
-Wstrict-prototypes 
-Wa,-alms=modules/ChibiOS/lst/crt1.lst 
-DCORTEX_USE_FPU=TRUE 
-DCHPRINTF_USE_FLOAT=1  
-DHAL_BOARD_NAME=\"fmuv3\" 
-O0 -g3 -ggdb3 
-D_ARDUPILOT_ 
-DTHUMB_PRESENT 
-mno-thumb-interwork 
-DTHUMB_NO_INTERWORKING 
-MD -MP -MF .dep/crt1.o.d 
-mthumb 
-DTHUMB 
-I. 
-I../../modules/ChibiOS/os/license 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../modules/ChibiOS/os/common/portability/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/devices/STM32F4xx 
-I../../modules/ChibiOS/os/common/ext/ARM/CMSIS/Core/Include 
-I../../modules/ChibiOS/os/common/ext/ST/STM32F4xx 
-I../../modules/ChibiOS/os/hal/include 
-I../../modules/ChibiOS/os/hal/ports/common/ARMCMx 
-I../../modules/ChibiOS/os/hal/ports/STM32/STM32F4xx 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/ADCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CANv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CRYPv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DMAv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/EXTIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/GPIOv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/I2Cv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/OTGv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/QUADSPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/RTCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SDIOv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/TIMv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/USARTv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/xWDGv1 
-I../../modules/ChibiOS/os/hal/osal/rt 
-I../../modules/ChibiOS/os/rt/include 
-I../../modules/ChibiOS/os/oslib/include 
-I../../modules/ChibiOS/os/common/ports/ARMCMx 
-I../../modules/ChibiOS/os/common/ports/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/hal/lib/streams 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../libraries/AP_HAL_ChibiOS/hwdef/common 
../../modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/crt1.c 
-o modules/ChibiOS/obj/crt1.o
C++编译选项
arm-none-eabi-g++ 
-c 
-mcpu=cortex-m4 
-g 
-fomit-frame-pointer 
-falign-functions=16 
-ffunction-sections 
-fdata-sections 
-fno-common 
-mfloat-abi=hard 
-mfpu=fpv4-sp-d16 
-fsingle-precision-constant 
-fno-rtti 
-std=gnu++11 
-Wall -Wextra 
-Wundef 
-Wa,-alms=modules/ChibiOS/lst/syscalls_cpp.lst 
-DCORTEX_USE_FPU=TRUE 
-DCHPRINTF_USE_FLOAT=1  
-DHAL_BOARD_NAME=\"fmuv3\" 
-O0 -g3 -ggdb3 
-DTHUMB_PRESENT 
-mno-thumb-interwork 
-DTHUMB_NO_INTERWORKING 
-MD -MP -MF .dep/syscalls_cpp.o.d 
-mthumb 
-DTHUMB 
-I. 
-I../../modules/ChibiOS/os/license 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../modules/ChibiOS/os/common/portability/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/common/startup/ARMCMx/devices/STM32F4xx 
-I../../modules/ChibiOS/os/common/ext/ARM/CMSIS/Core/Include 
-I../../modules/ChibiOS/os/common/ext/ST/STM32F4xx 
-I../../modules/ChibiOS/os/hal/include 
-I../../modules/ChibiOS/os/hal/ports/common/ARMCMx 
-I../../modules/ChibiOS/os/hal/ports/STM32/STM32F4xx 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/ADCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CANv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/CRYPv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/DMAv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/EXTIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/GPIOv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/I2Cv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/OTGv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/QUADSPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/RTCv2 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SPIv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/SDIOv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/TIMv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/USARTv1 
-I../../modules/ChibiOS/os/hal/ports/STM32/LLD/xWDGv1 
-I../../modules/ChibiOS/os/hal/osal/rt 
-I../../modules/ChibiOS/os/rt/include 
-I../../modules/ChibiOS/os/oslib/include 
-I../../modules/ChibiOS/os/common/ports/ARMCMx 
-I../../modules/ChibiOS/os/common/ports/ARMCMx/compilers/GCC 
-I../../modules/ChibiOS/os/hal/lib/streams 
-I../../modules/ChibiOS/os/various/cpp_wrappers 
-I../../modules/ChibiOS/ext/fatfs/src 
-I../../libraries/AP_HAL_ChibiOS/hwdef/common 
../../modules/ChibiOS/os/various/cpp_wrappers/syscalls_cpp.cpp 
-o modules/ChibiOS/obj/syscalls_cpp.o
 类似资料: