Bug on HAL when compiling with smart_build disabled

Report here problems in any of ChibiOS components. This forum is NOT for support.
0x3333
Posts: 57
Joined: Thu Mar 07, 2019 10:19 pm
Has thanked: 7 times
Been thanked: 6 times

Bug on HAL when compiling with smart_build disabled

Postby 0x3333 » Fri Aug 16, 2019 6:55 pm

In the hal.mk file, when compiling without smart_build enabled, "hal_flash.c" is missing in the HALSRC variable.

Also I relocated hal_st.c to the same position when smart_build is enabled.

Code: Select all

diff --git a/os/hal/hal.mk b/os/hal/hal.mk
index 71b325ad1..dfba65c25 100644
--- a/os/hal/hal.mk
+++ b/os/hal/hal.mk
@@ -93,8 +93,10 @@ HALSRC += $(CHIBIOS)/os/hal/src/hal_wspi.c
 endif
 else
 HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
+         $(CHIBIOS)/os/hal/src/hal_st.c \^M
          $(CHIBIOS)/os/hal/src/hal_buffers.c \
          $(CHIBIOS)/os/hal/src/hal_queues.c \
+         $(CHIBIOS)/os/hal/src/hal_flash.c \^M
          $(CHIBIOS)/os/hal/src/hal_mmcsd.c \
          $(CHIBIOS)/os/hal/src/hal_adc.c \
          $(CHIBIOS)/os/hal/src/hal_can.c \
@@ -115,7 +117,6 @@ HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
          $(CHIBIOS)/os/hal/src/hal_serial_usb.c \
          $(CHIBIOS)/os/hal/src/hal_sio.c \
          $(CHIBIOS)/os/hal/src/hal_spi.c \
-         $(CHIBIOS)/os/hal/src/hal_st.c \
          $(CHIBIOS)/os/hal/src/hal_trng.c \
          $(CHIBIOS)/os/hal/src/hal_uart.c \
          $(CHIBIOS)/os/hal/src/hal_usb.c \


User avatar
Giovanni
Site Admin
Posts: 12177
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 570 times
Been thanked: 487 times
Contact:

Re: Bug on HAL when compiling with smart_build disabled

Postby Giovanni » Fri Aug 16, 2019 7:24 pm

Hi,

Moving in bug reports.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests