Changeset 63009 in vbox for trunk/src/VBox/Devices/Network/lwip-new
- Timestamp:
- Aug 4, 2016 8:54:40 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109621
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/Config.kmk
r63007 r63009 1 1 # $Id$ 2 2 ## @file 3 # Adds sources list and defines required to LWIP pre-1.5.0 compilation 3 # Define the include dirs and source files for LWIP pre-1.5.0. 4 # 5 # This file is included by Devices/Makefile.kmk and NetworkServices/NAT/Makefile.kmk. 4 6 # 5 7 … … 95 97 96 98 97 98 define _def_vbox_lwip_use # VAR_BaseName, path/to/lwip/dir99 $(strip $1)_SOURCES += $(foreach file, $(LWIP_SOURCES), $(strip $2)/$(file))100 endef101 102 103 define def_vbox_lwip_flags # PROTO_BaseName, VAR_BaseName, path/to/lwip/dir104 # add anything configured for the component via PROTO_BaseName105 $(foreach suffix, INCS DEFS,106 $(if $(value $(strip $1)_LWIP_$(suffix)), $(eval $(strip $2)_$(suffix) += $(value $(strip $1)_LWIP_$(suffix)) ),))107 108 # add lwip's own includes109 $(strip $2)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $3)/$(incdir))110 endef111 112 113 ###114 ### Call this if you want to expose lwip to your component as a whole.115 ### In this case individual lwip files (added to _SOURCES of your116 ### component) will pick up lwip includes etc from your component117 ### settings.118 ###119 ### This is, for example, how NetworkServices/NAT uses it.120 ###121 define def_vbox_lwip_public # VAR_BaseName, path/to/lwip/dir122 $(eval $(call _def_vbox_lwip_use, $1, $2))123 $(eval $(call def_vbox_lwip_flags, $1, $1, $2))124 endef125 126 127 ###128 ### Call this if you want to expose lwip only to a few selected files.129 ### In this case each lwip file is configured with lwip includes etc130 ### separately and you are supposed to call def_vbox_lwip_flags131 ### yourself for those of your files that use lwip.132 ###133 ### This is, for example, how Devices uses it.134 ###135 define def_vbox_lwip_private # VAR_BaseName, path/to/lwip/dir136 $(eval $(call _def_vbox_lwip_use, $1, $2))137 $(foreach file, $(LWIP_SOURCES), $(eval $(call def_vbox_lwip_flags, $1, $(strip $2)/$(file), $2)))138 endef139 140 141 99 ifeq ($(USERNAME), vvl) 142 100 $(foreach lwip_file, $(LWIP_SOURCES), $(eval $(lwip_file)_DEFS=RTMEM_WRAP_TO_EF_APIS)) … … 150 108 Network/lwip-new/test/unit/udp/test_udp.c 151 109 endif 152
Note:
See TracChangeset
for help on using the changeset viewer.