VirtualBox

Changeset 50058 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 13, 2014 3:58:29 AM (11 years ago)
Author:
vboxsync
Message:

def_vbox_lwip_flags: Make it possible to supply additional compilation
flags to lwip from the client component by adding FOO_LWIP_INCS to
corresponding _INCS, ditto for _DEFS. This is intended for components
that use def_vbox_lwip_private and then call def_vbox_lwip_flags on a
few of its files that use lwip.

Adjust affected callers.

Not used by any component yet, but it makes it possible to supply
different lwipopt.h to different builds of lwip (coming soon in a
separate commit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/Makefile.kmk

    r50057 r50058  
    9595
    9696
     97
    9798define _def_vbox_lwip_use # VAR_BaseName, path/to/lwip/dir
    9899  $(strip $1)_SOURCES += \
     
    103104endef
    104105
    105 define def_vbox_lwip_flags # VAR_BaseName, path/to/lwip/dir
    106   $(strip $1)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $2)/$(incdir))
     106
     107define def_vbox_lwip_flags # PROTO_BaseName, VAR_BaseName, path/to/lwip/dir
     108  # add anything configured for the component via PROTO_BaseName
     109  $(foreach suffix, INCS DEFS,
     110    $(if $(value $(strip $1)_LWIP_$(suffix)),
     111      $(eval #
     112        $(strip $2)_$(suffix) += $(value $(strip $1)_LWIP_$(suffix))
     113      )))
     114
     115  # add lwip's own includes
     116  $(strip $2)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $3)/$(incdir))
    107117endef
     118
    108119
    109120###
     
    117128define def_vbox_lwip_public # VAR_BaseName, path/to/lwip/dir
    118129  $(eval $(call _def_vbox_lwip_use, $1, $2))
    119   $(eval $(call def_vbox_lwip_flags, $1, $2))
     130  $(eval $(call def_vbox_lwip_flags, $1, $1, $2))
    120131endef
     132
    121133
    122134###
     
    131143  $(eval $(call _def_vbox_lwip_use, $1, $2))
    132144  $(foreach file, $(LWIP_SOURCES), \
    133     $(eval $(call def_vbox_lwip_flags, $(strip $2)/$(file), $2)))
     145    $(eval $(call def_vbox_lwip_flags, $1, $(strip $2)/$(file), $2)))
    134146endef
    135147
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