2007-11-02 20:10:33 +00:00
|
|
|
############################################################################
|
|
|
|
# drivers/net/Make.defs
|
|
|
|
#
|
2021-03-04 07:10:42 +01: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-11-02 20:10:33 +00:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-11-02 20:10:33 +00:00
|
|
|
#
|
2021-03-04 07:10:42 +01: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-11-02 20:10:33 +00:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2011-05-16 15:09:39 +00:00
|
|
|
# Include nothing if networking is disabled
|
2007-11-02 20:10:33 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET),y)
|
2011-05-16 15:09:39 +00:00
|
|
|
|
|
|
|
# Include network interface drivers
|
|
|
|
|
2023-01-17 11:39:33 +08:00
|
|
|
ifeq ($(CONFIG_MM_IOB),y)
|
|
|
|
CSRCS += netdev_upperhalf.c
|
|
|
|
endif
|
|
|
|
|
2020-02-02 14:15:24 +08:00
|
|
|
ifeq ($(CONFIG_NET_LOOPBACK),y)
|
2015-08-24 11:03:36 -06:00
|
|
|
CSRCS += loopback.c
|
|
|
|
endif
|
|
|
|
|
2019-11-02 11:30:33 -06:00
|
|
|
ifeq ($(CONFIG_NET_RPMSG_DRV),y)
|
|
|
|
CSRCS += rpmsgdrv.c
|
|
|
|
endif
|
|
|
|
|
2015-12-07 09:26:57 -06:00
|
|
|
ifeq ($(CONFIG_NETDEV_TELNET),y)
|
|
|
|
CSRCS += telnet.c
|
|
|
|
endif
|
|
|
|
|
2007-11-02 20:10:33 +00:00
|
|
|
ifeq ($(CONFIG_NET_DM90x0),y)
|
2011-05-16 15:09:39 +00:00
|
|
|
CSRCS += dm90x0.c
|
2007-11-02 20:10:33 +00:00
|
|
|
endif
|
2011-05-16 15:09:39 +00:00
|
|
|
|
2012-09-11 16:50:16 +00:00
|
|
|
ifeq ($(CONFIG_ENC28J60),y)
|
2011-05-16 15:09:39 +00:00
|
|
|
CSRCS += enc28j60.c
|
2010-04-25 21:24:12 +00:00
|
|
|
endif
|
2011-05-16 15:09:39 +00:00
|
|
|
|
2013-08-25 11:21:54 -06:00
|
|
|
ifeq ($(CONFIG_ENCX24J600),y)
|
|
|
|
CSRCS += encx24j600.c
|
|
|
|
endif
|
|
|
|
|
2011-03-12 03:42:08 +00:00
|
|
|
ifeq ($(CONFIG_NET_SLIP),y)
|
2011-05-16 15:09:39 +00:00
|
|
|
CSRCS += slip.c
|
2011-03-12 03:42:08 +00:00
|
|
|
endif
|
2011-05-16 15:09:39 +00:00
|
|
|
|
2015-03-11 06:52:56 -06:00
|
|
|
ifeq ($(CONFIG_NET_TUN),y)
|
|
|
|
CSRCS += tun.c
|
|
|
|
endif
|
|
|
|
|
2015-07-29 15:57:58 -06:00
|
|
|
ifeq ($(CONFIG_NET_FTMAC100),y)
|
|
|
|
CSRCS += ftmac100.c
|
|
|
|
endif
|
|
|
|
|
2018-08-24 11:07:07 -06:00
|
|
|
ifeq ($(CONFIG_NET_LAN91C111),y)
|
|
|
|
CSRCS += lan91c111.c
|
|
|
|
endif
|
|
|
|
|
2022-10-07 08:57:38 +09:00
|
|
|
ifeq ($(CONFIG_NET_SKELETON),y)
|
|
|
|
CSRCS += skeleton.c
|
|
|
|
endif
|
|
|
|
|
2022-05-31 12:46:49 +02:00
|
|
|
ifeq ($(CONFIG_NET_W5500),y)
|
|
|
|
CSRCS += w5500.c
|
|
|
|
endif
|
|
|
|
|
2014-08-16 12:56:02 -06:00
|
|
|
ifeq ($(CONFIG_ARCH_PHY_INTERRUPT),y)
|
|
|
|
CSRCS += phy_notify.c
|
|
|
|
endif
|
|
|
|
|
2011-05-16 15:09:39 +00:00
|
|
|
# Include network build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path net
|
|
|
|
VPATH += :net
|
2007-11-02 20:10:33 +00:00
|
|
|
endif
|