bc2a13136a
BCMSAI 4.3.0.10, 6.5.21 SDK release with enhancements and fixes for vxlan, TD3 MMU, TD4-X9 EA support, etc.
73 lines
2.9 KiB
Makefile
73 lines
2.9 KiB
Makefile
#
|
|
# Copyright 2007-2020 Broadcom Inc. All rights reserved.
|
|
#
|
|
# Permission is granted to use, copy, modify and/or distribute this
|
|
# software under either one of the licenses below.
|
|
#
|
|
# License Option 1: GPL
|
|
#
|
|
# 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 (the "GPL").
|
|
#
|
|
# 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 version 2 (GPLv2) for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# version 2 (GPLv2) along with this source code.
|
|
#
|
|
#
|
|
# License Option 2: Broadcom Open Network Switch APIs (OpenNSA) license
|
|
#
|
|
# This software is governed by the Broadcom Open Network Switch APIs license:
|
|
# https://www.broadcom.com/products/ethernet-connectivity/software/opennsa
|
|
#
|
|
# $Id: Makefile.linux-x86-smp_generic_64-2_6,v 1.5 Broadcom SDK $
|
|
# $Copyright: (c) 2008 Broadcom Corp.
|
|
# All Rights Reserved.$
|
|
|
|
CFGFLAGS += -DLONGS_ARE_64BITS
|
|
CFGFLAGS += -DPTRS_ARE_64BITS
|
|
CFGFLAGS += -DPHYS_ADDRS_ARE_64BITS
|
|
CFGFLAGS += -DSAL_SPL_LOCK_ON_IRQ
|
|
|
|
include ${SDK}/make/Makefile.linux-x86-generic-common-2_6
|
|
|
|
ifeq (,$(KFLAGS))
|
|
KFLAGS := -nostdinc -isystem $(SYSINC) -I$(KERNDIR)/include -I$(KERNDIR)/arch/x86/include -include $(AUTOCONF) -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -mtune=generic -mno-red-zone -fno-pie -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign
|
|
endif
|
|
|
|
ifeq ($(LINUX_MAKE_SHARED_LIB), 1)
|
|
KFLAGS += -fPIC -mcmodel=small
|
|
else
|
|
KFLAGS += -fno-pie -mcmodel=kernel
|
|
endif
|
|
|
|
LINUX_UAPI = $(LINUX_INCLUDE)/uapi
|
|
ifneq (,$(shell ls $(LINUX_UAPI) 2>/dev/null))
|
|
KFLAGS += -I$(LINUX_INCLUDE)/uapi -I$(LINUX_INCLUDE)/generated/uapi -I$(KERNDIR)/arch/x86/include/generated -I$(KERNDIR)/arch/x86/include/uapi -I$(KERNDIR)/arch/x86/include/generated/uapi
|
|
endif
|
|
|
|
ifdef LTSW_CHIPS
|
|
# Ensure we do not use an out-of-date libelf.so
|
|
ELFUTILS_MIN = 158
|
|
ELFUTILS_DIR ?= /projects/ntsw-tools/lib
|
|
|
|
# Default open source target build
|
|
OPENSRC_BUILD ?= x86_64
|
|
|
|
# Hardware interface (see $SDKLT/bcma/sys/probe directory)
|
|
SYSTEM_INTERFACE ?= ngbde
|
|
|
|
# Turn on direct register access if running on real hardware.
|
|
ifeq (ngbde,$(SYSTEM_INTERFACE))
|
|
LTSW_ADD_CPPFLAGS += -DBCMDRD_CONFIG_MEMMAP_DIRECT=1
|
|
endif
|
|
|
|
export SYSTEM_INTERFACE
|
|
endif
|
|
|
|
include ${SDK}/make/Makefile.linux-x86-common-2_6
|