boards/Board.mk: Add support to pass dependency paths. boards/arm/cxd56xx/common/Makefile: Add correct dependency paths for board/ and src/ subdirectories.

This commit is contained in:
Gregory Nutt 2019-09-01 12:19:36 -06:00
parent d596e56c3d
commit 85770966ff
3 changed files with 10 additions and 5 deletions

View File

@ -121,12 +121,12 @@ endif
.depend: Makefile $(SRCS) $(CXXSRCS)
ifneq ($(ZDSVERSION),)
$(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
else
$(Q) $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
$(Q) $(MKDEP) $(DEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
ifneq ($(CXXSRCS),)
$(Q) $(MKDEP) "$(CXX)" -- $(CXXFLAGS) -- $(CXXSRCS) >>Make.dep
$(Q) $(MKDEP) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(CXXSRCS) >>Make.dep
endif
$(Q) touch $@

View File

@ -1,7 +1,7 @@
############################################################################
# boards/arm/cxd56x/spresense/src/Makefile
# boards/arm/cxd56x/common/Makefile
#
# Copyright 2018 Sony Semiconductor Solutions Corporation
# Copyright 2019 Sony Semiconductor Solutions Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@ -37,4 +37,7 @@
include board$(DELIM)Make.defs
include src$(DELIM)Make.defs
DEPPATH += --dep-path board
DEPPATH += --dep-path src
include $(TOPDIR)/boards/Board.mk

View File

@ -213,6 +213,8 @@ struct socket_conn_s
*/
FAR struct devif_callback_s *list;
/* Connection-specific content may follow */
};
/* This is the internal representation of a socket reference by a file