VirtualBox

Changeset 63009 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 4, 2016 8:54:40 PM (8 years ago)
Author:
vboxsync
Message:

Reduced lwip-new/Config.kmk to just the two list (incs and sources), cannot see any reason for the current complexity.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r63007 r63009  
    407407
    408408 ifdef VBOX_WITH_INIP
    409   VBoxDD_DEFS           += VBOX_WITH_INIP
    410   VBoxDD_SOURCES        += \
    411         Network/DevINIP.cpp
    412   # XXX: do not depend on order
    413409  ifndef LWIP_SOURCES
    414410   include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk
    415411  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))
    419419 endif # VBOX_WITH_INIP
    420420
  • trunk/src/VBox/Devices/Network/lwip-new/Config.kmk

    r63007 r63009  
    11# $Id$
    22## @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.
    46#
    57
     
    9597
    9698
    97 
    98 define _def_vbox_lwip_use # VAR_BaseName, path/to/lwip/dir
    99   $(strip $1)_SOURCES += $(foreach file, $(LWIP_SOURCES), $(strip $2)/$(file))
    100 endef
    101 
    102 
    103 define def_vbox_lwip_flags # PROTO_BaseName, VAR_BaseName, path/to/lwip/dir
    104   # add anything configured for the component via PROTO_BaseName
    105   $(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 includes
    109   $(strip $2)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $3)/$(incdir))
    110 endef
    111 
    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 your
    116 ### component) will pick up lwip includes etc from your component
    117 ### settings.
    118 ###
    119 ### This is, for example, how NetworkServices/NAT uses it.
    120 ###
    121 define def_vbox_lwip_public # VAR_BaseName, path/to/lwip/dir
    122   $(eval $(call _def_vbox_lwip_use, $1, $2))
    123   $(eval $(call def_vbox_lwip_flags, $1, $1, $2))
    124 endef
    125 
    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 etc
    130 ### separately and you are supposed to call def_vbox_lwip_flags
    131 ### 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/dir
    136   $(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 endef
    139 
    140 
    14199ifeq ($(USERNAME), vvl)
    142100$(foreach lwip_file, $(LWIP_SOURCES), $(eval $(lwip_file)_DEFS=RTMEM_WRAP_TO_EF_APIS))
     
    150108    Network/lwip-new/test/unit/udp/test_udp.c
    151109endif
    152 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette