sonic-buildimage/platform/broadcom/saibcm-modules/sdklt/linux/knet/Kbuild
zitingguo-ms 2c0f4e57d7
Upgrade XGS saibcm-modules to 8.4 (#16246)
Why I did it
XGS saibcm-modules 8.4 is needed. #14471

Work item tracking
Microsoft ADO (number only): 24917414
How I did it
Copy files from xgs SDK 8.4 repo and modify makefiles to build the image.
Upgrade version to 8.4.0.2 in saibcm-modules.mk.

How to verify it
Build a private image and run full qualification with it: https://elastictest.org/scheduler/testplan/650419cb71f60aa92c456a2b
2023-10-26 18:58:34 +08:00

52 lines
1.7 KiB
Makefile

# -*- Kbuild -*-
#
# Linux KNET module.
#
# $Copyright: Copyright 2018-2022 Broadcom. All rights reserved.
# The term 'Broadcom' refers to Broadcom Inc. and/or its subsidiaries.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# A copy of the GNU General Public License version 2 (GPLv2) can
# be found in the LICENSES folder.$
#
obj-m := linux_ngknet.o
ifneq ($(OUTPUT_DIR),)
INCLUDES := -I$(OUTPUT_DIR)/knet/generated/include -I$(OUTPUT_DIR)/knet/generated
endif
ccflags-y := $(KNET_CPPFLAGS) $(LKM_CFLAGS) \
-I$(SDK)/shr/include \
-I$(SDK)/bcmdrd/include \
-I$(SDK)/linux/include \
-I$(SDK)/linux/knet/generated/include \
-I$(SDK)/linux/knet/generated \
$(INCLUDES)
linux_ngknet-y := $(CHIP_OBJS) \
bcmcnet_cmicd_pdma_hw.o \
bcmcnet_cmicd_pdma_rxtx.o \
bcmcnet_cmicx_pdma_hw.o \
bcmcnet_cmicx_pdma_rxtx.o \
bcmcnet_cmicr_pdma_hw.o \
bcmcnet_cmicr_pdma_rxtx.o \
bcmcnet_core.o \
bcmcnet_dev.o \
bcmcnet_rxtx.o \
ngknet_buff.o \
ngknet_callback.o \
ngknet_extra.o \
ngknet_linux.o \
ngknet_main.o \
ngknet_procfs.o \
ngknet_ptp.o