original files of m241
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
# defs.ipcom - make defines for IPCOM
|
||||
#
|
||||
# Copyright (c) 2006-2008, 2010, 2017 Wind River Systems, Inc.
|
||||
#
|
||||
# The right to copy, distribute, modify or otherwise make use
|
||||
# of this software may be licensed only pursuant to the terms
|
||||
# of an applicable Wind River license agreement.
|
||||
#
|
||||
#
|
||||
# modification history
|
||||
# --------------------
|
||||
# 01o,28may17,xxy Added TSN support
|
||||
# 01n,25apr16,pdr Added PTP support (backport Vx7).
|
||||
# 01m,16sep10,xhs support IPLITE
|
||||
# 01l,19may10,pee replaced direct use of @ with proper variable
|
||||
# 01k,29sep08,mze remove IPCOM_OBJ_DIR no longer used
|
||||
# 01j,29apr08,dlk Fix WR_IPCOM_VERSION (should have _, e.g. 6_7).
|
||||
# 01i,28sep07,pee WIND00105890
|
||||
# 01h,27sep07,pee backing off...
|
||||
# 01g,10sep07,pee makeing option file intermediate.
|
||||
# 01f,25jun07,tkf Fix CQ:WIND00096983.
|
||||
# 01e,19jun07,tpw Use WRVX_COMPBASE vs. WIND_COMPONENTS correctly.
|
||||
# 01d,01jun07,tkf Move _IPCOM_OBJ_DIR to here. ipcom_ipdomain now stored in
|
||||
# _IPCOM_OBJ_DIR.
|
||||
# 01c,24apr07,tkf Add IPv6-Only build support.
|
||||
# 01b,03mar07,tkf Provide IPNET include path list in a file.
|
||||
# 01a,09nov06,tkf created.
|
||||
#
|
||||
#
|
||||
# DESCRIPTION
|
||||
# This file is currently included in rules.ipcom to define macros that pertain
|
||||
# to IPCOM requirements. The file can also be included by any VxWorks side
|
||||
# makefile to access IPCOM defines.
|
||||
#
|
||||
|
||||
__DEFS_IPCOM_INCLUDED__ = TRUE
|
||||
|
||||
|
||||
###
|
||||
# The macro IP_PORT_VXWORKS is used in IPCOM make fragments to determine
|
||||
# if the IPNET port is VxWorks and which version. Applications on VxWorks
|
||||
# that include IPCOM header files need to provide IP_PORT_VXWORKS.
|
||||
#
|
||||
ifeq ($(IP_PORT_VXWORKS),)
|
||||
WR_IPCOM_NAME := vxworks
|
||||
WR_IPCOM_VERSION := $(filter-out $(WR_IPCOM_NAME), $(subst -, ,$(WIND_PLATFORM)))
|
||||
WR_IPCOM_VERSION := $(subst .,_,$(WR_IPCOM_VERSION))
|
||||
|
||||
ifeq ($(findstring -DIP_PORT_VXWORKS,$(EXTRA_DEFINE)),)
|
||||
EXTRA_DEFINE += -DIP_PORT_VXWORKS=$(subst _,,$(WR_IPCOM_VERSION))
|
||||
endif
|
||||
endif
|
||||
|
||||
################################
|
||||
# The macro INCLUDE_IPCOM_CC defines the IPCOM include search paths. Makefiles
|
||||
# written for applications that include IPCOM header files need to add
|
||||
# INCLUDE_IPCOM_CC to INCLUDE_CC as follows:
|
||||
#
|
||||
# INCLUDE_CC += $(INCLUDE_IPCOM_CC)
|
||||
WIND_COMPONENTS_INCLUDES := $(subst \,/,$(WIND_COMPONENTS_INCLUDES))
|
||||
ifeq ($(WIND_HOST_TYPE),x86-win32)
|
||||
IPCOM_SEPARATOR := ;
|
||||
else
|
||||
IPCOM_SEPARATOR := :
|
||||
endif
|
||||
|
||||
_IPCOM_IPDOMAIN_FILE := ipcom_ipdomain$(OPT)
|
||||
ifneq ($(TOOL_OPTIONS_FILES_DIR),)
|
||||
_IPCOM_IPDOMAIN_FILE_ = $(TOOL_OPTIONS_FILES_DIR)/$(_IPCOM_IPDOMAIN_FILE)
|
||||
else
|
||||
_IPCOM_IPDOMAIN_FILE_ = $(OBJ_DIR)/$(_IPCOM_IPDOMAIN_FILE)
|
||||
endif
|
||||
|
||||
|
||||
#INCLUDE_IPCOM_CC += $(foreach dir,$(subst $(IPCOM_SEPARATOR), ,$(WIND_COMPONENTS_INCLUDES)),$(OPTION_INCLUDE_DIR)$(dir))
|
||||
_IPNET_TOP_DIR := $(subst \,/,$(WRVX_COMPBASE)/$(COMP_IPNET2))
|
||||
ifdef _WRS_CONFIG_COMPONENT_IPLITE
|
||||
INCLUDE_IPCOM_CC = $(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/port/vxworks/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/port/vxworks/config \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/config \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/iplite2/src \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/iplite2/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/iplite2/config
|
||||
else
|
||||
INCLUDE_IPCOM_CC = $(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/port/vxworks/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/port/vxworks/config \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipcom/config \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipnet2/src \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipnet2/include \
|
||||
$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/ipnet2/config
|
||||
endif
|
||||
|
||||
####
|
||||
# The following include paths are required for applications that require to
|
||||
# include IPNET header files. It is assumed that all IP products contain their
|
||||
# publicly accessible header files in config and include directories.
|
||||
#
|
||||
IPCOM_V4_PRODUCTS := ipappl iprip ipsntp ipdhcps ipdhcpr ipppp iptcp ipmcrypto vxmux ipsctp ipwps vxcoreip vxcompat ipmacsec ipntp ipptp tsn
|
||||
IPCOM_V6_PRODUCTS := ipripng ipdhcpc6 ipdhcps6
|
||||
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_V4_PRODUCTS),$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/$(dir)/config)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_V4_PRODUCTS),$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/$(dir)/include)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_V6_PRODUCTS),$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/$(dir)/config)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_V6_PRODUCTS),$(OPTION_INCLUDE_DIR)$(_IPNET_TOP_DIR)/$(dir)/include)
|
||||
|
||||
####
|
||||
# Include extended IPCOM defines
|
||||
-include $(WIND_BASE)/target/h/make/defs.ipcom-extended
|
||||
-include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/defs.ipcom-extended
|
||||
|
||||
####
|
||||
# The following code eliminates any duplicate include paths
|
||||
#
|
||||
export _IPNET_TOP_DIR
|
||||
ifeq ($(findstring $(_IPCOM_IPDOMAIN_FILE_),$(EXTRA_INCLUDE)),)
|
||||
EXTRA_INCLUDE += $(OPTION_INDIRECT_FILE)$(_IPCOM_IPDOMAIN_FILE_)
|
||||
endif
|
||||
ifeq ($(findstring $(_IPCOM_IPDOMAIN_FILE_),$(TOOL_OPTIONS_FILES_ALL)),)
|
||||
TOOL_OPTIONS_FILES_ALL += $(_IPCOM_IPDOMAIN_FILE_)
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
# defs.ipcom-extended - make defines for extended IPCOM products
|
||||
#
|
||||
# Copyright (c) 2001-2006,2007,2009,2015 Wind River Systems, Inc.
|
||||
#
|
||||
# The right to copy, distribute, modify or otherwise make use
|
||||
# of this software may be licensed only pursuant to the terms
|
||||
# of an applicable Wind River license agreement.
|
||||
#
|
||||
#
|
||||
# modification history
|
||||
# --------------------
|
||||
# 20dec16,ljl Change openssl-1_0_1 to openssl-1_0_2, VXW6-86058
|
||||
# 01f,29jan15,ljl Add openssl-1_0_1, VXW6-83972
|
||||
# 01e,08sep09,spw Add several components, as per WIND00179049
|
||||
# 01d,29jul09,ten Add L2TP support
|
||||
# 01c,07aug07,mry Add 802.1x supplicant support
|
||||
# 01b,19jun07,tpw Use WRVX_COMPBASE vs. WIND_COMPONENTS correctly.
|
||||
# 01a,27nov06,tkf created.
|
||||
#
|
||||
#
|
||||
# DESCRIPTION
|
||||
# This file is curently included in defs.ipcom to define macros that pertain
|
||||
# to requirements of IP products that are not included by default.
|
||||
#
|
||||
|
||||
####
|
||||
# The following include pathes are required for applications that require to
|
||||
# include IPNET header files. It is assumed that all IP products contain their
|
||||
# publicly accessible header files in config and include directories.
|
||||
#
|
||||
#IPCOM_EXT_V4_PRODUCTS := ipmcp ipipsec2 ipike iphwcrypto ipcrypto ipssh ipmipfa \
|
||||
# ipmipha ipmipmn ipmpls ipeap ip8021x ipradius ipfirewall ipssl2 ipl2tp \
|
||||
# ipcavium ipdiameter ipfreescale ipmip4 ipmip ipmippm \
|
||||
# iprohc ipwlan ipxinc vxbridge vxdot1x wrsnmp
|
||||
|
||||
IPCOM_EXT_V4_PRODUCTS := ipmcp ipipsec2 ipike iphwcrypto ipcrypto ipssh ipmipfa \
|
||||
ipmipha ipmipmn ipmpls ipeap ip8021x ipradius ipfirewall ipssl2 ipl2tp \
|
||||
ipcavium ipdiameter ipfreescale ipmip4 ipmip ipmippm \
|
||||
iprohc ipwlan vxbridge vxdot1x wrsnmp vxifproxy wrnad
|
||||
|
||||
IPCOM_EXT_V6_PRODUCTS := ipmip6 ipmip6mn ipmip6ha ipmip6pm
|
||||
IPNET_TOP_DIR := $(subst \,/,$(WRVX_COMPBASE)/$(COMP_IPNET2))
|
||||
|
||||
INCLUDE_IPCOM_CC += $(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/ipwlan/include
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_EXT_V4_PRODUCTS),$(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/$(dir)/config)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_EXT_V4_PRODUCTS),$(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/$(dir)/include)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_EXT_V6_PRODUCTS),$(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/$(dir)/config)
|
||||
INCLUDE_IPCOM_CC += $(foreach dir, $(IPCOM_EXT_V6_PRODUCTS),$(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/$(dir)/include)
|
||||
ifeq ($(_WRS_CONFIG_COMPONENT_IPCRYPTO_OPENSSL_1_0_2),y)
|
||||
INCLUDE_IPCOM_CC += $(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/ipcrypto/openssl-1_0_2/include
|
||||
INCLUDE_IPCOM_CC += $(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/ipssl2/openssl-1_0_2/include
|
||||
else
|
||||
INCLUDE_IPCOM_CC += $(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/ipcrypto/openssl-0_9_8/include
|
||||
INCLUDE_IPCOM_CC += $(OPTION_INCLUDE_DIR)$(IPNET_TOP_DIR)/ipssl2/openssl-0_9_8/include
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
# rules.ipcom - make rules for IPCOM
|
||||
#
|
||||
# Copyright (c) 2001-2009 Wind River Systems, Inc.
|
||||
#
|
||||
# The right to copy, distribute, modify or otherwise make use
|
||||
# of this software may be licensed only pursuant to the terms
|
||||
# of an applicable Wind River license agreement.
|
||||
#
|
||||
#
|
||||
# modification history
|
||||
# --------------------
|
||||
# 01p,27nov12,xhs Fix default vsb/vip error,WIND00387505
|
||||
# 01o,07may09,dlk Handle USE_IPDEFINES in VIP or BSP build (WIND00165503).
|
||||
# 01n,02sep08,mze stop creating the IPCOM_LIBCONFIG file
|
||||
# 01m,01may08,dlk Support USE_IPDEFINES to obtain defines from ipcom.
|
||||
# 01l,04mar08,pee temporary workaround to accomodate emake
|
||||
# 01k,31oct07,pee WIND00109695
|
||||
# 01j,19oct07,pee WIND00105890
|
||||
# 01i,28sep07,pee WIND00105890
|
||||
# 01h,17sep07,tkf Fix CQ:WIND00104875.
|
||||
# 01g,19jun07,tpw Use WRVX_COMPBASE vs. WIND_COMPONENTS correctly.
|
||||
# 01f,13jun07,tkf Convert backslash characters into forwardslash in
|
||||
# WIND_COMPONENTS.
|
||||
# 01e,24may07,tkf Move _IPCOM_OBJ_DIR to defs.ipcom. Generate ipcom_ipdomain
|
||||
# in _IPCOM_OBJ_DIR instead of in the ipcom make dir. Also
|
||||
# added user object dependency on ipcom_ipdomain.
|
||||
# 01d,10may07,tkf If there are CPU variants, generate ipcom_libconfig only
|
||||
# for the CPU class.
|
||||
# 01c,25apr07,tkf Add dependency rule for statTbl.c. Also added rules for
|
||||
# generating library build configuration cache file.
|
||||
# 01b,03mar07,tkf Added rule to create IPNET include path file.
|
||||
# 01a,09nov06,tkf created.
|
||||
#
|
||||
#
|
||||
# DESCRIPTION
|
||||
# This file is included in rules.bsp and rules.library for both the kernel and
|
||||
# user builds to define make rules that pertain to IPCOM requirements.
|
||||
#
|
||||
|
||||
WRVX_COMPBASE := $(subst \,/,$(WRVX_COMPBASE))
|
||||
|
||||
###
|
||||
# Include IPCOM defines
|
||||
#
|
||||
ifneq ($(__DEFS_IPCOM_INCLUDED__),TRUE)
|
||||
include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/defs.ipcom
|
||||
endif
|
||||
|
||||
###
|
||||
# The following definitions are to be used in the generation of the library build
|
||||
# configuration cache file.
|
||||
#
|
||||
ifeq ($(findstring -DINET6_ONLY,$(ADDED_CFLAGS) $(EXTRA_DEFINE)),-DINET6_ONLY)
|
||||
_INET6_BUILD_ONLY = 1
|
||||
endif
|
||||
|
||||
ifeq ($(findstring -DINET6,$(ADDED_CFLAGS) $(EXTRA_DEFINE)),-DINET6)
|
||||
_INET6_BUILD = 1
|
||||
endif
|
||||
|
||||
ifeq ($(findstring -inet6only,$(OPT)),-inet6only)
|
||||
IPCOM_LIB_CFG += -DINET6
|
||||
else
|
||||
IPCOM_LIB_CFG += -DINET
|
||||
ifeq ($(findstring -inet6,$(OPT)),-inet6)
|
||||
IPCOM_LIB_CFG += -DINET6
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#####################################
|
||||
|
||||
###
|
||||
# The following is used by Wind Manage SNMP build only, not affecting others.
|
||||
#
|
||||
des.tag: $(_IPCOM_IPDOMAIN_FILE_)
|
||||
$(LIBDIR)/statTbl.c: $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
###
|
||||
# Implicit rule for user build make depend files
|
||||
|
||||
depend.usr.$(BUILD_EXT) : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
###
|
||||
# Implicit rules for object files
|
||||
|
||||
.s.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.c.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.sho : %.cpp $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.cpp.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.cxx.sho : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.s.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.c.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
$(OBJ_DIR)/%.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.cpp.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.cxx.o : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
###
|
||||
# The following is meant to add dependency os makeStatTbl on $(_IPCOM_IPDOMAIN_FILE)
|
||||
#
|
||||
$(LIBDIR)/statTbl.c: $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
.INTERMEDIATE : $(_IPCOM_IPDOMAIN_FILE_)
|
||||
|
||||
_IPCOM_IPDOMAIN_FILE_DIR = $(patsubst %/,%,$(dir $(_IPCOM_IPDOMAIN_FILE_)))
|
||||
|
||||
# $(_IPCOM_IPDOMAIN_FILE_): | $(_IPCOM_IPDOMAIN_FILE_DIR)
|
||||
|
||||
# When USE_IPDEFINES is non-empty, we need an absolute path for
|
||||
# _IPCOM_IPDOMAIN_FILE_ in the IP_UTIL_REDIR redirection, since
|
||||
# we change to a different directory to execute util_ipdef.
|
||||
# However, when building a VIP, a relative path is sometimes passed.
|
||||
# gnu make 3.80 lacks abspath and realpath. Here's a poor-man's
|
||||
# substitute:
|
||||
_PWD := $(subst \,/,$(shell pwd))
|
||||
_ABS_IPCOM_IPDOMAIN_FILE_ := $(patsubst ./%,$(_PWD)/%,$(_IPCOM_IPDOMAIN_FILE_))
|
||||
_ABS_IPCOM_IPDOMAIN_FILE_ := $(patsubst ../%,$(_PWD)/../%,$(_ABS_IPCOM_IPDOMAIN_FILE_))
|
||||
|
||||
# Do not generate IPDEFINES for user side
|
||||
ifeq ($(SPACE),user)
|
||||
USE_IPDEFINES := false
|
||||
endif
|
||||
ifeq ($(SPACE),USER)
|
||||
USE_IPDEFINES := false
|
||||
endif
|
||||
|
||||
# Create IPDEFINES file
|
||||
ifeq ($(wildcard $(_IPCOM_IPDOMAIN_FILE_DIR)),$(_IPCOM_IPDOMAIN_FILE_DIR))
|
||||
$(_IPCOM_IPDOMAIN_FILE_):
|
||||
else
|
||||
$(_IPCOM_IPDOMAIN_FILE_): $(_IPCOM_IPDOMAIN_FILE_DIR)
|
||||
endif
|
||||
@echo "$(INCLUDE_IPCOM_CC)" > $(_IPCOM_IPDOMAIN_FILE_)
|
||||
ifneq ($(USE_IPDEFINES),false)
|
||||
@$(MAKE) -C $(WRVX_COMPBASE)/$(COMP_IPNET2) CPU=$(CPU) TOOL=$(TOOL) OPT=$(OPT) VSB_DIR=$(VSB_DIR) IP_UTIL_REDIR=">> $(_ABS_IPCOM_IPDOMAIN_FILE_)" util_ipdef
|
||||
endif
|
||||
|
||||
$(_IPCOM_IPDOMAIN_FILE_DIR) :
|
||||
-$(MKDIR) $@
|
||||
|
||||
# To avoid duplicate defines
|
||||
SAVE_EXTRA_DEFINE := $(EXTRA_DEFINE)
|
||||
CUR_CFG_DEFS := $(filter-out $(IPCOM_LIB_CFG),$(SAVE_EXTRA_DEFINE))
|
||||
EXTRA_DEFINE = $(CUR_CFG_DEFS) $(IPCOM_LIB_CFG)
|
||||
Reference in New Issue
Block a user