summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aquantia/atlantic/Makefile
diff options
context:
space:
mode:
authorIgor Russkikh <Igor.Russkikh@aquantia.com>2019-10-26 11:05:34 +0000
committerDavid S. Miller <davem@davemloft.net>2019-10-26 11:28:40 -0700
commit7873ee26b10bcb03553b6a26ec16b9a937a5b916 (patch)
tree653161b3b365ba0b7d9e99e12f4db4db0dbf8144 /drivers/net/ethernet/aquantia/atlantic/Makefile
parent5eeb6c3cf26eac522df07bee1a58573804179126 (diff)
net: aquantia: disable ptp object build if no config
We do disable aq_ptp module build using inline stubs when CONFIG_PTP_1588_CLOCK is not declared. This reduces module size and removes unnecessary code. Reported-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/Makefile')
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/Makefile b/drivers/net/ethernet/aquantia/atlantic/Makefile
index 68c41141ede2..0020726db204 100644
--- a/drivers/net/ethernet/aquantia/atlantic/Makefile
+++ b/drivers/net/ethernet/aquantia/atlantic/Makefile
@@ -24,10 +24,11 @@ atlantic-objs := aq_main.o \
aq_ethtool.o \
aq_drvinfo.o \
aq_filters.o \
- aq_ptp.o \
aq_phy.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
+
+atlantic-$(CONFIG_PTP_1588_CLOCK) += aq_ptp.o \ No newline at end of file