Changeset 63009 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 4, 2016 8:54:40 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r63007 r63009 407 407 408 408 ifdef VBOX_WITH_INIP 409 VBoxDD_DEFS += VBOX_WITH_INIP410 VBoxDD_SOURCES += \411 Network/DevINIP.cpp412 # XXX: do not depend on order413 409 ifndef LWIP_SOURCES 414 410 include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk 415 411 endif 416 VBoxDD_LWIP_INCS += Network # for lwipopts.h 417 $(eval $(call def_vbox_lwip_private, VBoxDD, Network/lwip-new)) 418 $(eval $(call def_vbox_lwip_flags, VBoxDD, Network/DevINIP.cpp, Network/lwip-new)) 412 VBoxDD_DEFS += VBOX_WITH_INIP 413 VBoxDD_SOURCES += \ 414 Network/DevINIP.cpp \ 415 $(addprefix Network/lwip-new/,$(LWIP_SOURCES)) 416 VBoxDD_INCS += \ 417 Network \ 418 $(addprefix Network/lwip-new/,$(LWIP_INCS)) 419 419 endif # VBOX_WITH_INIP 420 420 -
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.