# # Copyright 2017 Broadcom # # 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. # # $Id: Makefile.linux-nsx64,v 1.9 Broadcom SDK $ # $Copyright: (c) 2005 Broadcom Corp. # All Rights Reserved.$ # Look for custom tools ifneq (,$(MIPS_TOOLS_DIR)) override PATH := $(MIPS_TOOLS_DIR):$(PATH) endif ifneq (,$(MIPS_CROSS_COMPILE)) override CROSS_COMPILE := $(MIPS_CROSS_COMPILE) endif # Default tools ifeq (,$(CROSS_COMPILE)) CROSS_COMPILE := mips64_fp_be- override PATH := $(PATH):/projects/ntsw-tools/linux/mvista/mips64_be_tools-3.1/bin endif # Default Linux include directory ifeq (,$(LINUX_INCLUDE)) LINUX_INCLUDE = /projects/ntsw-tools/linux/headers/mvl-3.1-nsx64/include endif CFGFLAGS += -DSYS_BE_PIO=1 -DSYS_BE_PACKET=0 -DSYS_BE_OTHER=1 ENDIAN = BE_HOST=1 CFGFLAGS += -D$(ENDIAN) -Wa,-xgot -mips64 -mabi=64 -fno-strict-aliasing -DPTRS_ARE_64BITS -DLONGS_ARE_64BITS CFGFLAGS += -DBCM_PLATFORM_STRING=\"NSX_BCM1125\" # From linux/arch/mips/Makefile ifeq (,$(KFLAGS)) KFLAGS := -D__KERNEL__ -O2 -fomit-frame-pointer -fno-strict-aliasing -G 0 -mno-abicalls -fno-pic -mips64 -mabi=64 -mtune=sb1 -Wa,--trap -pipe -mlong-calls endif ifneq ($(targetplat),user) include ${SDK}/make/Makefile.linux-kernel endif MODULE_LDFLAGS += -m elf64btsmip