2022-11-23 12:45:05 +01:00
|
|
|
############################################################################
|
|
|
|
# drivers/virtio/Make.defs
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Include virtio support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO),y)
|
2023-03-22 04:49:43 +01:00
|
|
|
CSRCS += virtio.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_MMIO),y)
|
2022-11-23 12:45:05 +01:00
|
|
|
CSRCS += virtio-mmio.c
|
|
|
|
endif
|
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_BLK),y)
|
|
|
|
CSRCS += virtio-blk.c
|
|
|
|
endif
|
|
|
|
|
2023-05-29 09:02:12 +02:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_GPU),y)
|
|
|
|
CSRCS += virtio-gpu.c
|
|
|
|
endif
|
|
|
|
|
2023-06-15 14:21:24 +02:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_INPUT),y)
|
|
|
|
CSRCS += virtio-input.c
|
|
|
|
endif
|
|
|
|
|
2022-11-23 12:45:05 +01:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_NET),y)
|
2023-03-22 04:49:43 +01:00
|
|
|
CSRCS += virtio-net.c
|
2022-11-23 12:45:05 +01:00
|
|
|
endif
|
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_RNG),y)
|
|
|
|
CSRCS += virtio-rng.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_SERIAL),y)
|
|
|
|
CSRCS += virtio-serial.c
|
2023-05-12 04:21:24 +02:00
|
|
|
endif
|
|
|
|
|
2023-06-26 15:34:19 +02:00
|
|
|
ifeq ($(CONFIG_DRIVERS_VIRTIO_SOUND),y)
|
|
|
|
CSRCS += virtio-snd.c
|
|
|
|
endif
|
2022-11-23 12:45:05 +01:00
|
|
|
# Include build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path virtio
|
|
|
|
VPATH += :virtio
|