Files
linux-nv-oot/drivers/net/ethernet/nvidia/nvethernet/Makefile
Vince Hsu c41266d8b0 nvethernet: use -mno-outline-atomics for nvethernet
The -moutline-atomics is enabled by default since GCC 10. Specify
-mno-outline-atomics to avoid the error when building with GCC 11.

MODPOST kernel-nvidia-oot/nvidia-oot/Module.symvers
ERROR: modpost: "__aarch64_cas4_acq_rel" [ kernel-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko] undefined!
ERROR: modpost: "__aarch64_ldadd4_acq_rel" [ kernel-nvidia-oot/nvidia-oot/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko] undefined!

Bug 3975705
Bug 200730650

Change-Id: Ief3188dbad704c08deec34f2d23ccd9625fa0a5a
Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2855788
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-02-15 15:56:25 -08:00

48 lines
1.4 KiB
Makefile

#SPDX-License-Identifier: GPL-2.0-only
#Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
OSI_COMMON := nvethernetrm/osi/common
OSI_CORE := nvethernetrm/osi/core
OSI_DMA := nvethernetrm/osi/dma
obj-m += nvethernet.o
ccflags-y += -DLINUX_IVC -DUPDATED_PAD_CAL -mno-outline-atomics \
-I$(srctree.nvidia)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/include \
-I$(srctree.nvidia)/drivers/net/ethernet/nvidia/nvethernet/nvethernetrm/osi/common/include
ccflags-y += -DMACSEC_SUPPORT -DNET30 -DDEBUG_MACSEC -DOSI_DEBUG $(if $(CONFIG_TEGRA_EPL),-DHSI_SUPPORT,) -DLINUX_OS -DNVPKCS_MACSEC
nvethernet-objs:= ether_linux.o \
osd.o \
ethtool.o \
ether_tc.o \
sysfs.o \
ioctl.o \
ptp.o \
macsec.o \
selftests.o \
$(OSI_CORE)/osi_core.o \
$(OSI_CORE)/osi_hal.o \
$(OSI_CORE)/macsec.o \
$(OSI_COMMON)/osi_common.o \
$(OSI_COMMON)/eqos_common.o \
$(OSI_COMMON)/mgbe_common.o \
$(OSI_DMA)/osi_dma.o \
$(OSI_DMA)/osi_dma_txrx.o \
$(OSI_CORE)/eqos_core.o \
$(OSI_CORE)/ivc_core.o \
$(OSI_CORE)/mgbe_core.o \
$(OSI_CORE)/core_common.o \
$(OSI_CORE)/xpcs.o \
$(OSI_DMA)/mgbe_dma.o \
$(OSI_CORE)/eqos_mmc.o \
$(OSI_DMA)/eqos_dma.o \
$(OSI_DMA)/eqos_desc.o \
$(OSI_DMA)/mgbe_desc.o \
$(OSI_DMA)/debug.o \
$(OSI_CORE)/mgbe_mmc.o \
$(OSI_CORE)/frp.o \
$(OSI_CORE)/vlan_filter.o \
$(OSI_CORE)/debug.o