hartmannathan commented on code in PR #11303:
URL: https://github.com/apache/nuttx/pull/11303#discussion_r1412391407


##########
tools/Unix.mk:
##########
@@ -279,10 +279,16 @@ include/arch:
        $(Q) $(DIRLINK) $(TOPDIR)/$(ARCH_DIR)/include $@
 
 # Link the boards/<arch>/<chip>/<board>/include directory to include/arch/board
+# If the above path does not exist, then we try to link to common
+
+LINK_INCLUDE_DIR=$(BOARD_DIR)/include
+ifeq ($(wildcard $(LINK_INCLUDE_DIR)),)
+       LINK_INCLUDE_DIR = $(BOARD_COMMON_DIR)/include

Review Comment:
   If `$(BOARD_COMMON_DIR)` is empty, will `LINK_INCLUDE_DIR` be `/include`? Do 
we need logic to prevent that?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to