sonic-buildimage/platform/broadcom/saibcm-modules/sdklt/linux/knetcb/Kbuild

40 lines
1.2 KiB
Plaintext
Raw Normal View History

# -*- Kbuild -*-
#
# Linux KNET Callback module.
#
2021-10-28 02:12:32 -05:00
# $Copyright: Copyright 2018-2021 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.$
#
ifneq ($(CONFIG_PSAMPLE),)
PSAMPLE_CB_OBJS=psample-cb.o
endif
obj-m := linux_ngknetcb.o
2021-10-28 02:12:32 -05:00
ccflags-y := $(KNETCB_CPPFLAGS) $(LKM_CFLAGS) \
$(SDK_PMD_KFLAGS) \
-I$(SDK)/shr/include \
-I$(SDK)/bcmdrd/include \
-I$(SDK)/bcmltd/include \
-I$(SDK)/bcmlrd/include \
-I$(SDK)/linux/include \
-I$(SDK)/linux/knet/include \
-I$(SDK)/linux/knetcb \
-I$(SDK)/linux/knet \
$(PSAMPLE_CFLAGS)
2021-10-28 02:12:32 -05:00
linux_ngknetcb-y := $(SDK_PMD_KOBJS) ngknetcb_main.o \
$(PSAMPLE_CB_OBJS)