Makefile
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:4k
源码类别:

VxWorks

开发平台:

C/C++

  1. # Makefile - make rules for target/config/ixdp425
  2. #
  3. # Copyright 2002 Wind River Systems, Inc.
  4. #
  5. # modification history
  6. # --------------------
  7. # 01d,19nov02,jb3  Fixed doc build failure w/o intel library
  8. # 01c,13nov02,jb3  SPR 84009
  9. # 01b,22oct02,jb  Setting RAM_HIGH to config.h value
  10. # 01a,05sep02,jb3  Merge in changes from w/ t2.1 ongiong development
  11. # 01j,22aug02,jb  Adjust hex file vma offset
  12. # 01i,20aug02,jb  Moving RAM_LOW
  13. # 01h,19aug02,jb  Removing unneeded entries
  14. # ---,01feb02,xxx  Update for T2.2 (bspCnvtT2_2.tcl)
  15. # 01g,31jul02,jb  Adding files to doc list
  16. # 01f,26jun02,jb  Adding ixp425 End support
  17. # 01e,26jun02,jb  Adding hex files to RELEASE build
  18. # 01d,25jun02,jb  Adding to RELEASE
  19. # 01c,14jun02,jb  Removing fei include
  20. # 01b,12jun02,jb  Continuing restructure
  21. # 01a,10jun02,jb  Removing POSTBUILD Rule
  22. #
  23. # DESCRIPTION
  24. # This file contains rules for building vxWorks for the IXP425.
  25. #
  26. # INCLUDES
  27. #     makeTarget
  28. #*/
  29. IXP425LIB_BASE   = $(CSR_BASE)/lib/armobjs
  30. IXP425LIB  = $(IXP425LIB_BASE)/libIxp425.a
  31. WITH_REDBOOT  = 0
  32. HAVE_82559  = 0
  33. #CPF425O--1 CPF425C--2
  34. BOARD_TYPE  = 1
  35. # Boot from EPROM
  36. ROM_BASE_ADRS   = 50000000      # base address of EPROM
  37. ifeq ($(WITH_REDBOOT),1)
  38. ROM_TEXT_ADRS   = 50040000      # code start addr in EPROM
  39. else
  40. ROM_TEXT_ADRS   = 50000000      # code start addr in EPROM
  41. endif
  42. FLASH_FIRST_SIZE = 01000000 # size of the first flash
  43. FLASH_SECOND_SIZE = 01000000 # size of the second flash
  44. ROM_SIZE        = $(FLASH_FIRST_SIZE)     # size of EPROM 
  45. RAM_LOW_ADRS    = 00020000     # RAM text/data address
  46. RAM_HIGH_ADRS   = 04000000     # RAM text/data address.
  47. CPU              = XSCALE
  48. TOOL             = gnube
  49. EXTRA_DEFINE     = -g -I$(CSR_BASE)/src/include -I$(CSR_BASE)/src -DCPU_XSCALE 
  50.                    -DARMMMU=ARMMMU_XSCALE -DARMCACHE=ARMCACHE_XSCALE -D__vxworks -DWITH_REDBOOT=$(WITH_REDBOOT) 
  51.                    -DHAVE_82559=$(HAVE_82559) -DROM_SIZE=0x$(ROM_SIZE) -DBOARD_TYPE=$(BOARD_TYPE) -DFLASH_SECOND_SIZE=0x$(FLASH_SECOND_SIZE)
  52. ## Note: To get listing from .s files add -Wa,-a to cflags.
  53. BE_FLAG1 = -mbig-endian
  54. BE_FLAG2 = -X -EB
  55. TGT_DIR =$(SRC_BASE)target
  56. include $(TGT_DIR)/h/make/defs.bsp
  57. #include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
  58. #include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
  59. ## Only redefine make definitions below this point, or your definitions will
  60. ## be overwritten by the makefile stubs above.
  61. SWAP = $(TGT_DIR)/config/$(TARGET_DIR)/swapbytes_$(WIND_HOST_TYPE)
  62. # To include flashUtils in non compressed portion of image. flashUtils is
  63. # used to program the bootrom into flash through software. This should not
  64. # be included in the final release of the BSP.
  65. BOOT_EXTRA =  flashUtils.o
  66. TARGET_DIR       = ixdp425
  67. VENDOR           = Intel
  68. BOARD            = IXP425_Ixdp425_Board
  69. # Specify the targets to be built by "make release"; after these targets are
  70. # built, the target bsp2prj is built as well.
  71. RELEASE         += bootrom.hex 
  72. #
  73. # The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
  74. # in config.h, MakeSkel, Makefile, and Makefile.*
  75. # All definitions for these constants must be identical.
  76. #
  77. # relocate the rom image to offset by ROM_TEXT_ADRS - RAM_LOW_ADRS
  78. #HEX_FLAGS       = -v --adjust-vma 0X4FFFF000
  79. #VMA_FLAGS       = -O srec --set-start=$(VMA_START)
  80. # Uncomment these two lines to build with onboard ethernet engines.
  81. MACH_EXTRA      = ixEthAccSysEnd.o ixEthAccEnd.o 
  82. LIB_EXTRA = $(IXP425LIB_BASE)/libIxp425.a 
  83. DOC_FILES       = sysLib sysEnd 
  84. ixp425Eeprom ixp425Gpio ixp425I2c ixp425IntrCtl 
  85. ixp425Pci ixp425PciConfigLib ixp425PciConfigShow 
  86. ixp425PciDma ixp425PciIntLib ixp425Sio 
  87.                 ixp425Timer 
  88. #####################################################
  89. ## END SECTION
  90. #####################################################
  91. ## Only redefine make definitions above this point, or the expansion of
  92. ## makefile target dependencies may be incorrect.
  93. include $(TGT_DIR)/h/make/rules.bsp
  94. #include $(TGT_DIR)/h/make/rules.$(WIND_HOST_TYPE)