diff options
| author | Yang sheng <[email protected]> | 2022-04-09 00:39:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-09 00:39:00 +0800 |
| commit | eb2fc60207fc86229460fe1ec066134751014871 (patch) | |
| tree | 4ad7aa0154d88ac2ad17eb8cdc68bd6d4688263c /bsp | |
| parent | 084bb1c95626f7ab14984a7fde0e56a3290659c4 (diff) | |
[bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64… (#5785)
* [bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64-aarch64 and stm32f411-st-nucleo.
* [RTC] Fix compile errors
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/qemu-vexpress-a9/rtconfig.py | 2 | ||||
| -rw-r--r-- | bsp/qemu-virt64-aarch64/rtconfig.py | 2 | ||||
| -rw-r--r-- | bsp/stm32/stm32f411-st-nucleo/rtconfig.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bsp/qemu-vexpress-a9/rtconfig.py b/bsp/qemu-vexpress-a9/rtconfig.py index edd1b6aab7..ebaa1409a6 100644 --- a/bsp/qemu-vexpress-a9/rtconfig.py +++ b/bsp/qemu-vexpress-a9/rtconfig.py @@ -57,7 +57,7 @@ if PLATFORM == 'gcc': STRIP = PREFIX + 'strip' DEVICE = ' -march=armv7-a -marm -msoft-float' - CFLAGS = DEVICE + ' -Wall' + CFLAGS = DEVICE + ' -Wall -Werror' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -D__ASSEMBLY__ -I.' LINK_SCRIPT = 'link.lds' LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,system_vectors'+\ diff --git a/bsp/qemu-virt64-aarch64/rtconfig.py b/bsp/qemu-virt64-aarch64/rtconfig.py index 7204079e6f..6432212bf3 100644 --- a/bsp/qemu-virt64-aarch64/rtconfig.py +++ b/bsp/qemu-virt64-aarch64/rtconfig.py @@ -39,7 +39,7 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -g -march=armv8-a -mtune=cortex-a53' - CFLAGS = DEVICE + ' -Wall' + CFLAGS = DEVICE + ' -Wall -Werror' AFLAGS = ' -c' + ' -x assembler-with-cpp -D__ASSEMBLY__' LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,system_vectors -T link.lds' CPATH = '' diff --git a/bsp/stm32/stm32f411-st-nucleo/rtconfig.py b/bsp/stm32/stm32f411-st-nucleo/rtconfig.py index 51934c8fa9..5697fba90d 100644 --- a/bsp/stm32/stm32f411-st-nucleo/rtconfig.py +++ b/bsp/stm32/stm32f411-st-nucleo/rtconfig.py @@ -44,7 +44,7 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' - CFLAGS = DEVICE + ' -Dgcc' + CFLAGS = DEVICE + ' -Dgcc' + ' -Wall -Werror' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds' |
