-
Notifications
You must be signed in to change notification settings - Fork 30
/
Kbuild
57 lines (48 loc) · 1.45 KB
/
Kbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-License-Identifier: GPL-2.0-only
################################################################################
#
# Marvell (aQuantia) Ethernet Controller AQtion Linux Driver
# Copyright (C) 2020 Marvell International Ltd.
#
################################################################################
#
# Makefile for the AQtion(tm) Ethernet driver
#
TARGET := atlantic
include $(src)/Kbuild.cflags
# Out-of-tree only BEGIN:
# Force the driver module compilation here so that we don't need to update .config
# for all CI targets
CONFIG_AQTION := m
# Out-of-tree only END
$(TARGET)-objs:=aq_main.o aq_nic.o aq_pci_func.o aq_nic.o aq_vec.o aq_ring.o aq_ptp.o aq_filters.o \
aq_hw_utils.o aq_ethtool.o aq_drvinfo.o \
aq_trace.o \
aq_phy.o \
aq_compat.o \
aq_tsn.o \
aq_sysfs.o \
hw_atl/hw_atl_a0.o \
hw_atl/hw_atl_b0.o \
hw_atl/hw_atl_utils.o \
hw_atl/hw_atl_utils_fw2x.o \
hw_atl/hw_atl_llh.o \
hw_atl/hw_atl_fw_hostboot.o \
hw_atl/hw_atl_fw_image.o \
hw_atl2/hw_atl2_llh.o \
hw_atl2/hw_atl2.o \
hw_atl2/hw_atl2_utils.o \
hw_atl2/hw_atl2_utils_fw.o \
hw_atl2/hw_atl2_fw_hostboot.o \
macsec/macsec_api.o \
aq_dash.o \
$(TARGET)-$(CONFIG_MACSEC) += aq_macsec.o
obj-$(CONFIG_AQTION):=$(TARGET).o
ifeq ($(CONFIG_AQTION_KUNIT_TESTS),y)
# Out-of-tree only BEGIN:
# We are not relying on .config, so force obj-$(CONFIG_AQTION) back to nothing,
# if building unit tests
obj-$(CONFIG_AQTION):=
# Out-of-tree only END
include $(src)/Kbuild.kunit
endif