2007-08-27 07:12:17 +08:00
|
|
|
############################################################################
|
2021-03-09 05:29:12 +08:00
|
|
|
# net/devif/Make.defs
|
2007-08-27 07:12:17 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2007-08-27 07:12:17 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-08-27 07:12:17 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2007-08-27 07:12:17 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2014-06-29 08:07:02 +08:00
|
|
|
# Network device interface source files
|
2007-11-08 02:54:35 +08:00
|
|
|
|
2017-08-08 03:03:23 +08:00
|
|
|
NET_CSRCS += devif_initialize.c devif_send.c devif_poll.c devif_callback.c
|
2018-08-25 22:36:02 +08:00
|
|
|
NET_CSRCS += devif_loopback.c
|
2015-01-15 22:03:56 +08:00
|
|
|
|
|
|
|
# Device driver IP packet receipt interfaces
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_IPv4),y)
|
|
|
|
NET_CSRCS += ipv4_input.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_IPv6),y)
|
|
|
|
NET_CSRCS += ipv6_input.c
|
|
|
|
endif
|
2011-03-12 23:36:28 +08:00
|
|
|
|
2017-07-08 08:33:06 +08:00
|
|
|
# IP forwarding
|
|
|
|
|
2017-07-05 00:19:52 +08:00
|
|
|
ifeq ($(CONFIG_NET_IPFORWARD),y)
|
2017-07-08 08:33:06 +08:00
|
|
|
NET_CSRCS += devif_forward.c
|
2017-07-05 00:19:52 +08:00
|
|
|
endif
|
|
|
|
|
2014-06-23 01:27:57 +08:00
|
|
|
# I/O buffer chain support required?
|
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
ifeq ($(CONFIG_MM_IOB),y)
|
2014-06-29 08:07:02 +08:00
|
|
|
NET_CSRCS += devif_iobsend.c
|
2014-06-23 01:27:57 +08:00
|
|
|
endif
|
|
|
|
|
2014-06-24 09:25:16 +08:00
|
|
|
# Raw packet socket support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_PKT),y)
|
2014-06-29 08:07:02 +08:00
|
|
|
NET_CSRCS += devif_pktsend.c
|
2014-06-24 09:25:16 +08:00
|
|
|
endif
|
|
|
|
|
2020-06-15 16:23:25 +08:00
|
|
|
ifeq ($(CONFIG_NET_CAN),y)
|
|
|
|
NET_CSRCS += devif_cansend.c
|
|
|
|
endif
|
|
|
|
|
2014-06-29 08:07:02 +08:00
|
|
|
# Include network device interface build support
|
2014-05-31 01:14:06 +08:00
|
|
|
|
2014-06-29 08:07:02 +08:00
|
|
|
DEPPATH += --dep-path devif
|
|
|
|
VPATH += :devif
|