⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 这是ARM在Vxworks的驱动源代码
💻
字号:
# Makefile - make rules for target/config/ixdp425## Copyright 2002 Wind River Systems, Inc.## modification history# --------------------# 01g,07apr03,m_h  comment is out of place# 01f,07apr03,m_h  enable ixEth, error if no CSR_BASE or csr dir# 01e,04apr03,m_h  Optimization, local FEI, ixOsBufLib.o# 01d,19nov02,jb3  Fixed doc build failure w/o intel library# 01c,13nov02,jb3  SPR 84009# 01b,22oct02,jb  Setting RAM_HIGH to config.h value# 01a,05sep02,jb3  Merge in changes from w/ t2.1 ongiong development# 01j,22aug02,jb  Adjust hex file vma offset# 01i,20aug02,jb  Moving RAM_LOW# 01h,19aug02,jb  Removing unneeded entries# ---,01feb02,xxx  Update for T2.2 (bspCnvtT2_2.tcl)# 01g,31jul02,jb  Adding files to doc list# 01f,26jun02,jb  Adding ixp425 End support# 01e,26jun02,jb  Adding hex files to RELEASE build# 01d,25jun02,jb  Adding to RELEASE# 01c,14jun02,jb  Removing fei include# 01b,12jun02,jb  Continuing restructure# 01a,10jun02,jb  Removing POSTBUILD Rule## DESCRIPTION# This file contains rules for building vxWorks for the IXP425.## INCLUDES#     makeTarget#*/IX_TARGET=vxbeTOOLENV=armCSR_BASE=$(ROUTER_BASE)/ixp400_xscale_sw#IXP425LIB_BASE   = $(CSR_BASE)/lib/$(TOOLENV)objsIXP425LIB_BASE   = $(CSR_BASE)/lib/vxbeIXP425LIB	 = $(IXP425LIB_BASE)/libIxp425.aCPU              = XSCALETOOL             = diabbeROUTER_TYPE	 = ixp425#APPS_NAME	 = ixp425EXTRA_DEFINE     = -I$(CSR_BASE)/src/include -I$(CSR_BASE)/src -DCPU_XSCALE \                   -DARMMMU=ARMMMU_XSCALE -DARMCACHE=ARMCACHE_XSCALE -D__vxworks -D__ARMEB__ -DNO_INLINE_APISifeq ($(TOOL),gnube)EXTRA_DEFINE    +=  -O3 -fomit-frame-pointer -funroll-loopsendif## Note: To get listing from .s files add -Wa,-a to cflags.BE_FLAG1 = -mbig-endianBE_FLAG2 = -X -EB#TGT_DIR = $(WIND_BASE)/targetTGT_DIR = $(ROUTER_BASE)/target#include $(TGT_DIR)/h/make/defs.bsp#include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)#include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)include $(CFGS_DIR)/defs.bspinclude $(CFGS_DIR)/defs.$(WIND_HOST_TYPE)LOCAL_CSR_BASE = $(CSR_BASE)#Lets look around for a valid CSR_BASE or csr directoryifeq ($(LOCAL_CSR_BASE),)IXDP425_CSR = $(wildcard $(TGT_DIR)/config/ixdp425/csr)ifneq ($(IXDP425_CSR),)CSR_BASE = $(IXDP425_CSR)else#abort with error messageconfig.h: CSR_BASE_MESSAGE CSR_BASEendifendifCSR_BASE_MESSAGE:	@echo "ERROR: You must define the environment variable CSR_BASE"	@echo "       This should be your CSR directory"## Only redefine make definitions below this point, or your definitions will## be overwritten by the makefile stubs above.SWAP = $(TGT_DIR)/config/$(TARGET_DIR)/swapbytes_$(WIND_HOST_TYPE)# To include flashUtils in non compressed portion of image. flashUtils is# used to program the bootrom into flash through software. This should not# be included in the final release of the BSP.BOOT_EXTRA =  flashUtils.oTARGET_DIR       = ixdp425VENDOR           = IntelBOARD            = IXP425_Ixdp425_Board# Specify the targets to be built by "make release"; after these targets are# built, the target bsp2prj is built as well.RELEASE         += bootrom.hex ## The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined# in config.h, MakeSkel, Makefile, and Makefile.*# All definitions for these constants must be identical.## Boot from EPROMROM_BASE_ADRS   = 50000000      # base address of EPROMROM_TEXT_ADRS   = 50000000      # code start addr in EPROMROM_SIZE        = 01000000      # size of EPROM , 16 meg for now.RAM_LOW_ADRS    = 00010000     # RAM text/data addressRAM_HIGH_ADRS   = 07000000     # RAM text/data address.# relocate the rom image to offset by ROM_TEXT_ADRS - RAM_LOW_ADRS#HEX_FLAGS       = -v --adjust-vma 0X4FFFF000#VMA_FLAGS       = -O srec --set-start=$(VMA_START)# Uncomment these two lines to build with onboard ethernet engines.MACH_EXTRA      = bspcfg.o ixEthAccSysEnd.o ixEthAccEnd.o ixOsBufLib.o ifeq  ($(findstring gnu,$(TOOL)),gnu)LIB_EXTRA = $(wildcard $(ROUTER_BASE)/apps/libgnu/*.a) $(IXP425LIB_BASE)/libIxp425.aelseifeq  ($(findstring diab,$(TOOL)),diab)#LIB_EXTRA = $(wildcard $(ROUTER_BASE)/apps/libdiab/*.a) $(IXP425LIB_BASE)/libIxp425.aLIB_EXTRA = $(ALL_LIB_ANAME)  $(IXP425LIB_BASE)/libIxp425.aendifendif# These may not be needed after Tor 2.2 cumulative patch 1# also endLib.h should be removed from the directory if these are removedMACH_EXTRA     += endNetBufLib.o fei82557End.o flashUtils.o spi_simulate.o rawio.o DOC_FILES       = sysLib sysEnd \		ixp425Eeprom ixp425Gpio ixp425I2c ixp425IntrCtl \		ixp425Pci ixp425PciConfigLib ixp425PciConfigShow \		ixp425PciDma ixp425PciIntLib ixp425Sio \		ixEthAccEnd ixEthAccSysEnd \                ixp425Timer                 EXTRA_INCLUDE	= -I$(ROUTER_BASE)/include -I$(ROUTER_BASE)/h -I$(ROUTER_BASE)/bsps \		-I$(ROUTER_BASE)/bsps/devices -I$(ROUTER_BASE)/bsps/ixp425/src####################################################### END SECTION####################################################### Only redefine make definitions above this point, or the expansion of## makefile target dependencies may be incorrect.#include $(TGT_DIR)/h/make/rules.bsp#include $(TGT_DIR)/h/make/rules.$(WIND_HOST_TYPE)include $(CFGS_DIR)/rules.bsp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -