# # 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-nsx-2_6,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 := mips2_fp_be- override PATH := $(PATH):/projects/ntsw-tools/linux/mvista/mvista-4.0/pro/devkit/mips/mips2_fp_be/bin endif # Default Linux Kernel directory ifeq (,$(KERNDIR)) KERNDIR := /projects/ntsw-tools/linux/mvista/mvista-4.0-nsx/linux-2.6.10_dev endif # Default Linux include directory ifeq (,$(LINUX_INCLUDE)) LINUX_INCLUDE := $(KERNDIR)/include endif CFGFLAGS += -DSYS_BE_PIO=1 -DSYS_BE_PACKET=0 -DSYS_BE_OTHER=1 ENDIAN = BE_HOST=1 CFGFLAGS += -D$(ENDIAN) 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 -mtune=sb1 -Wa,--trap -pipe -mlong-calls endif ifneq ($(targetplat),user) include ${SDK}/make/Makefile.linux-kernel-2_6 endif