Advertisement
Guest User

Untitled

a guest
Jan 9th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=5
  5.  
  6. inherit git-r3
  7.  
  8. EGIT_REPO_URI="git://github.com/linux-sunxi/u-boot-sunxi.git"
  9.  
  10. DESCRIPTION="u-boot for Allwinner sunxi series of SoCs (A10, A13, A10s, and A20)"
  11. HOMEPAGE="https://github.com/linux-sunxi/u-boot-sunxi"
  12.  
  13. SLOT="0"
  14. KEYWORDS="~arm"
  15.  
  16. # List of sunxi boards. See boards.cfg
  17. SUNXI_BOARDS="
  18. A10_MID_1GB
  19. A10s-OLinuXino-M
  20. A10s-OLinuXino-M_FEL
  21. A10-OLinuXino-Lime
  22. A13-OLinuXino
  23. A13-OLinuXino_FEL
  24. A13-OLinuXino_FEL_sdcon
  25. A13-OLinuXinoM
  26. A13-OLinuXinoM_FEL
  27. A13_MID
  28. A20-OLinuXino_MICRO
  29. A20-OLinuXino_MICRO_FEL
  30. Auxtek-T003
  31. Auxtek-T004
  32. ba10_tv_box
  33. Coby_MID7042
  34. Coby_MID8042
  35. Coby_MID9742
  36. Cubieboard
  37. Cubieboard2
  38. Cubieboard2_FEL
  39. Cubietruck
  40. Cubietruck_FEL
  41. Cubieboard_512
  42. Cubieboard_FEL
  43. DNS_M82
  44. EOMA68_A10
  45. EOMA68_A10_FEL
  46. EOMA68_A20
  47. EOMA68_A20_FEL
  48. EU3000
  49. Gooseberry_A721
  50. H6
  51. Hackberry
  52. Hyundai_A7HD
  53. Interra-3
  54. INet97F-II
  55. INet_K70HC
  56. Jesurun-Q5
  57. K1001L1C
  58. Marsboard_A10
  59. Marsboard_A20
  60. Marsboard_A20_debug
  61. Megafeis_A08
  62. Mele_A1000
  63. Mele_A1000_FEL
  64. Mele_A1000G
  65. Mele_A3700
  66. Mini-X
  67. Mini-X-1Gb
  68. Mini-X_A10s
  69. mk802
  70. mk802-1gb
  71. mk802_a10s
  72. mk802ii_A20
  73. mk802ii
  74. pcDuino
  75. pengpod1000
  76. pengpod700
  77. PoV_ProTab2_IPS9
  78. PoV_ProTab2_IPS_3g
  79. PoV_ProTab2_XXL
  80. r7-tv-dongle
  81. Sanei_N90
  82. sun4i
  83. sun4i_sdcon
  84. sun5i
  85. sun5i_sdcon
  86. sun5i_uart1
  87. uhost_u1a
  88. wobo-i5
  89. xzpad700
  90. "
  91.  
  92. for board in ${SUNXI_BOARDS}; do
  93. IUSE_SUNXI_BOARDS+=" sunxi_boards_${board}"
  94. done
  95.  
  96. IUSE="${IUSE_SUNXI_BOARDS}"
  97. REQUIRED_USE="^^ ( ${IUSE_SUNXI_BOARDS} )"
  98.  
  99. src_prepare() {
  100. epatch "${FILESDIR}/${PN}-common-makefile.patch"
  101. }
  102.  
  103. src_configire() {
  104. for board in ${IUSE_SUNXI_BOARDS}; do
  105. use "sunxi_boards_${board}" && emake "${board}"_config
  106. done
  107. }
  108.  
  109. src_install() {
  110. insinto "/usr/share/${PF}" && doins u-boot.bin
  111. insinto "/usr/share/${PF}" && doins u-boot-sunxi-with-spl.bin
  112. insinto "/usr/share/${PF}/spl" && doins spl/sunxi-spl.bin
  113. dodoc doc/README.*
  114.  
  115. elog "This build allows booting from SD, over USB and over ethernet,"
  116. elog "but it still lacks support for booting off the NAND."
  117. elog "To be able to boot off of the NAND, please read wiki"
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement