Makefile
上传用户:dqzhongke1
上传日期:2022-06-26
资源大小:667k
文件大小:7k
源码类别:

VxWorks

开发平台:

C/C++

  1. # Makefile - makefile for Wind River wrSbc8548 BSP
  2. #
  3. # Copyright (c) 2006-2007 Wind River Systems, Inc.
  4. #
  5. # The right to copy, distribute, modify, or otherwise make use
  6. # of this software may be licensed only pursuant to the terms
  7. # of an applicable Wind River license agreement.
  8. # modification history
  9. # --------------------
  10. # 01b,28mar07,b_m  update CPU & CPU_VARIANT.
  11. # 01a,30jan06,kds  Modify from cds8548/Makefile/01a
  12. #
  13. # DESCRIPTION
  14. # This file contains rules for building VxWorks for the
  15. # Wind River SBC8548 reference board.
  16. #
  17. # INCLUDES
  18. #     makeTarget
  19. #*/
  20. CPU             = PPC32
  21. #TOOL            = sfdiab
  22. TOOL            = sfgnu
  23. CPU_VARIANT     = _ppc85XX
  24. # Support for 36 bit physical addresses in the MMU can be added for
  25. # vxWorks 6.2 and later with the following CPU_VARIANT.
  26. #CPU_VARIANT  = _ppc85XX_e500v2
  27. TGT_DIR = $(WIND_BASE)/target
  28. EXTRA_INCLUDE += -I$(WIND_BASE)/target/h/nfs
  29. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5
  30. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5
  31. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipnet2/src
  32. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipnet2/include
  33. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipnet2/config
  34. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/windml-5.0/h
  35. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/dcom-2.3/h
  36. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/opc-3.1/h
  37. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/webcli-4.6/target/h
  38. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/webservices-1.4/h
  39. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/osconfig/vxworks/src
  40. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/windml-5.0/osconfig/vxworks/src
  41. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/osconfig/vxworks/h
  42. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/windml-5.0/osconfig/vxworks/h
  43. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipappl/config
  44. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipappl/include
  45. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcci/config
  46. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcci/include
  47. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcom/config
  48. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcom/include
  49. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcom/port/vxworks/config
  50. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipcom/port/vxworks/include
  51. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcpc6/config
  52. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcpc6/include
  53. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcpr/config
  54. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcpr/include
  55. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcps/config
  56. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcps/include
  57. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcps6/config
  58. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipdhcps6/include
  59. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipeap/config
  60. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipeap/include
  61. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipfirewall/config
  62. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipfirewall/include
  63. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iphwcrypto/config
  64. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iphwcrypto/include
  65. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipike/config
  66. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipike/include
  67. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipipsec2/config
  68. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipipsec2/include
  69. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmcp/config
  70. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmcp/include
  71. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmip6/config
  72. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmip6/include
  73. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmip6mn/config
  74. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmip6mn/include
  75. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipfa/config
  76. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipfa/include
  77. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipha/config
  78. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipha/include
  79. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipmn/config 
  80. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmipmn/include
  81. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmpls/config 
  82. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipmpls/include
  83. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipppp/config
  84. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipppp/include
  85. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipradius/config 
  86. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipradius/include 
  87. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iprip/config 
  88. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iprip/include 
  89. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipripng/config
  90. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipripng/include
  91. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipsntp/config 
  92. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipsntp/include 
  93. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipssh/config
  94. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/ipssh/include
  95. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iptcp/config 
  96. EXTRA_INCLUDE += -I$(WIND_BASE)/../components/ip_net2-6.5/iptcp/include 
  97. EXTRA_INCLUDE += -I$(WIND_BASE)/target/config/comps
  98. LD_LINK_PATH_EXTRA += -L$(WIND_BASE)/../components/obj/vxworks-6.5/krnl/lib/ppc/PPC32/sfcommon
  99. include $(TGT_DIR)/h/make/defs.bsp
  100. CONFIG_ALL      = all
  101. ## Only redefine make definitions below this point, or your definitions will
  102. ## be overwritten by the makefile stubs above.
  103. TARGET_DIR = mpc8548
  104. VENDOR = Broadcom 
  105. BOARD = GTO 
  106. RELEASE += bootrom_uncmp.hex bootrom_uncmp.bin 
  107. EXTRA_DEFINE    = -DBROADCOM_BSP -DIP_PORT_VXWORKS=65
  108. ## The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
  109. ## in config.h and Makefile. All definitions for these constants must be
  110. ## identical.
  111. ROM_TEXT_ADRS    = fff00100 # ROM entry address
  112. ROM_SIZE         = 00100000 # number of bytes of ROM space
  113. ROM_WARM_ADRS    = fff00108 # ROM warm entry address 
  114. ROM_LINK_ADRS  = fff00000
  115. RAM_LOW_ADRS     = 00100000 # RAM text/data address
  116. RAM_HIGH_ADRS    = 04000000 # RAM text/data address
  117. MACH_EXTRA       = 
  118. BOOT_EXTRA       = 
  119. LIB_EXTRA        = 
  120. VMA_START        = 0x0
  121. USR_ENTRY        = usrInit
  122. ## Only redefine make definitions above this point, or the expansion of 
  123. ## makefile target dependencies may be incorrect.
  124. MACH_EXTRA = i2cM41T81Clock.o i2cPCF8547Ioport.o flash29GL1GDrvLib.o 
  125.              flashFsLib.o flashDrvLib.o srecLoad.o
  126. local_clean:
  127. $(RM) *.o
  128. $(RM) *.a
  129. $(RM) depend.$(TARGET_DIR)
  130. include $(TGT_DIR)/h/make/rules.bsp