Makefile
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:4k
源码类别:
VxWorks
开发平台:
C/C++
- # Makefile - make rules for target/config/ixdp425
- #
- # Copyright 2002 Wind River Systems, Inc.
- #
- # modification history
- # --------------------
- # 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
- #*/
- IXP425LIB_BASE = $(CSR_BASE)/lib/armobjs
- IXP425LIB = $(IXP425LIB_BASE)/libIxp425.a
- WITH_REDBOOT = 0
- HAVE_82559 = 0
- #CPF425O--1 CPF425C--2
- BOARD_TYPE = 1
- # Boot from EPROM
- ROM_BASE_ADRS = 50000000 # base address of EPROM
- ifeq ($(WITH_REDBOOT),1)
- ROM_TEXT_ADRS = 50040000 # code start addr in EPROM
- else
- ROM_TEXT_ADRS = 50000000 # code start addr in EPROM
- endif
- FLASH_FIRST_SIZE = 01000000 # size of the first flash
- FLASH_SECOND_SIZE = 01000000 # size of the second flash
- ROM_SIZE = $(FLASH_FIRST_SIZE) # size of EPROM
- RAM_LOW_ADRS = 00020000 # RAM text/data address
- RAM_HIGH_ADRS = 04000000 # RAM text/data address.
- CPU = XSCALE
- TOOL = gnube
- EXTRA_DEFINE = -g -I$(CSR_BASE)/src/include -I$(CSR_BASE)/src -DCPU_XSCALE
- -DARMMMU=ARMMMU_XSCALE -DARMCACHE=ARMCACHE_XSCALE -D__vxworks -DWITH_REDBOOT=$(WITH_REDBOOT)
- -DHAVE_82559=$(HAVE_82559) -DROM_SIZE=0x$(ROM_SIZE) -DBOARD_TYPE=$(BOARD_TYPE) -DFLASH_SECOND_SIZE=0x$(FLASH_SECOND_SIZE)
- ## Note: To get listing from .s files add -Wa,-a to cflags.
- BE_FLAG1 = -mbig-endian
- BE_FLAG2 = -X -EB
- TGT_DIR =$(SRC_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)
- ## 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.o
- TARGET_DIR = ixdp425
- VENDOR = Intel
- BOARD = 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.
- #
- # 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 = ixEthAccSysEnd.o ixEthAccEnd.o
- LIB_EXTRA = $(IXP425LIB_BASE)/libIxp425.a
- DOC_FILES = sysLib sysEnd
- ixp425Eeprom ixp425Gpio ixp425I2c ixp425IntrCtl
- ixp425Pci ixp425PciConfigLib ixp425PciConfigShow
- ixp425PciDma ixp425PciIntLib ixp425Sio
- ixp425Timer
- #####################################################
- ## 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)