Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO_OS_INC_DIRS, symlinks for .h files are not created when building for mbed platform #2404

Open
buha opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@buha
Copy link
Contributor

buha commented Dec 19, 2024

I observed this when building for mbed platform but may be true for other platforms as well. Very easy to reproduce, take any mbed project, replace the INCS += ... no-OS include/ .h files list ... with NO_OS_INC_DIRS += $(INCLUDE) and perform a build.

@buha buha added the bug label Dec 19, 2024
@CiprianRegus
Copy link
Contributor

With these changes to the iio_demo project

diff --git a/projects/iio_demo/src.mk b/projects/iio_demo/src.mk
index ddfdd84c1..666125592 100644
--- a/projects/iio_demo/src.mk
+++ b/projects/iio_demo/src.mk
@@ -19,18 +19,20 @@ SRCS += $(DRIVERS)/api/no_os_uart.c     \
         $(NO-OS)/util/no_os_alloc.c     \
         $(NO-OS)/util/no_os_mutex.c
 
-INCS += $(INCLUDE)/no_os_delay.h     \
-        $(INCLUDE)/no_os_error.h     \
-        $(INCLUDE)/no_os_fifo.h      \
-        $(INCLUDE)/no_os_irq.h       \
-        $(INCLUDE)/no_os_lf256fifo.h \
-        $(INCLUDE)/no_os_list.h      \
-        $(INCLUDE)/no_os_dma.h      \
-        $(INCLUDE)/no_os_timer.h     \
-        $(INCLUDE)/no_os_uart.h      \
-        $(INCLUDE)/no_os_util.h      \
-        $(INCLUDE)/no_os_alloc.h     \
-        $(INCLUDE)/no_os_mutex.h
+# INCS += $(INCLUDE)/no_os_delay.h     \
+#         $(INCLUDE)/no_os_error.h     \
+#         $(INCLUDE)/no_os_fifo.h      \
+#         $(INCLUDE)/no_os_irq.h       \
+#         $(INCLUDE)/no_os_lf256fifo.h \
+#         $(INCLUDE)/no_os_list.h      \
+#         $(INCLUDE)/no_os_dma.h      \
+#         $(INCLUDE)/no_os_timer.h     \
+#         $(INCLUDE)/no_os_uart.h      \
+#         $(INCLUDE)/no_os_util.h      \
+#         $(INCLUDE)/no_os_alloc.h     \
+#         $(INCLUDE)/no_os_mutex.h
+
+NO_OS_INC_DIRS += $(INCLUDE)

the symlinks for the files in the No-OS/include directory seem to be created for me (tested on Maxim and STM32):

╰$ tree build/app/Core/noos/include 
build/app/Core/noos/include
├── jesd204.h -> /home/xvr/Downloads/no-OS/include/jesd204.h
├── no_os_ain.h -> /home/xvr/Downloads/no-OS/include/no_os_ain.h
├── no_os_alloc.h -> /home/xvr/Downloads/no-OS/include/no_os_alloc.h
├── no_os_aout.h -> /home/xvr/Downloads/no-OS/include/no_os_aout.h
├── no_os_axi_io.h -> /home/xvr/Downloads/no-OS/include/no_os_axi_io.h
├── no_os_circular_buffer.h -> /home/xvr/Downloads/no-OS/include/no_os_circular_buffer.h
├── no_os_clk.h -> /home/xvr/Downloads/no-OS/include/no_os_clk.h
├── no_os_crc16.h -> /home/xvr/Downloads/no-OS/include/no_os_crc16.h
├── no_os_crc24.h -> /home/xvr/Downloads/no-OS/include/no_os_crc24.h
├── no_os_crc8.h -> /home/xvr/Downloads/no-OS/include/no_os_crc8.h
├── no_os_crc.h -> /home/xvr/Downloads/no-OS/include/no_os_crc.h
├── no_os_delay.h -> /home/xvr/Downloads/no-OS/include/no_os_delay.h
├── no_os_dma.h -> /home/xvr/Downloads/no-OS/include/no_os_dma.h
├── no_os_eeprom.h -> /home/xvr/Downloads/no-OS/include/no_os_eeprom.h
├── no_os_error.h -> /home/xvr/Downloads/no-OS/include/no_os_error.h
├── no_os_fifo.h -> /home/xvr/Downloads/no-OS/include/no_os_fifo.h
├── no_os_flash.h -> /home/xvr/Downloads/no-OS/include/no_os_flash.h
├── no_os_gpio.h -> /home/xvr/Downloads/no-OS/include/no_os_gpio.h
├── no_os_i2c.h -> /home/xvr/Downloads/no-OS/include/no_os_i2c.h
├── no_os_i3c.h -> /home/xvr/Downloads/no-OS/include/no_os_i3c.h
├── no_os_init.h -> /home/xvr/Downloads/no-OS/include/no_os_init.h
├── no_os_irq.h -> /home/xvr/Downloads/no-OS/include/no_os_irq.h
├── no_os_lf256fifo.h -> /home/xvr/Downloads/no-OS/include/no_os_lf256fifo.h
├── no_os_list.h -> /home/xvr/Downloads/no-OS/include/no_os_list.h
├── no_os_mdio.h -> /home/xvr/Downloads/no-OS/include/no_os_mdio.h
├── no_os_mutex.h -> /home/xvr/Downloads/no-OS/include/no_os_mutex.h
├── no_os_pid.h -> /home/xvr/Downloads/no-OS/include/no_os_pid.h
├── no_os_print_log.h -> /home/xvr/Downloads/no-OS/include/no_os_print_log.h
├── no_os_pwm.h -> /home/xvr/Downloads/no-OS/include/no_os_pwm.h
├── no_os_rtc.h -> /home/xvr/Downloads/no-OS/include/no_os_rtc.h
├── no_os_semaphore.h -> /home/xvr/Downloads/no-OS/include/no_os_semaphore.h
├── no_os_spi.h -> /home/xvr/Downloads/no-OS/include/no_os_spi.h
├── no_os_tdm.h -> /home/xvr/Downloads/no-OS/include/no_os_tdm.h
├── no_os_timer.h -> /home/xvr/Downloads/no-OS/include/no_os_timer.h
├── no_os_trng.h -> /home/xvr/Downloads/no-OS/include/no_os_trng.h
├── no_os_uart.h -> /home/xvr/Downloads/no-OS/include/no_os_uart.h
├── no_os_units.h -> /home/xvr/Downloads/no-OS/include/no_os_units.h
└── no_os_util.h -> /home/xvr/Downloads/no-OS/include/no_os_util.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants