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