OpenSDE Framework (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
4.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/embedded/config.in
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. #Description: Generic Embedded
  16. comment_id '- Target Style' COMMENT_TARGET_EMBEDDED_STYLE
  17. choice SDECFG_TARGET_EMBEDDED_STYLE uclibc \
  18. uclibc 'uClibc (ugly but many packages to choose from)' \
  19. dietlibc 'diet libc (less is more)'
  20. embedded_pkgfilter() {
  21. local tmp=`mktemp`
  22. cat > $tmp <<-EOT
  23. # mangle all packages to only build them in the cross stage (1)
  24. s,^. \(.\)[^ ]*,X \11--------,;
  25. # select some packages (and repositories) explicitely
  26. / 00-dirtree / { p; d; };
  27. / sysfiles / { p; d; };
  28. / iana-etc / { p; d; };
  29. / rocknet / { p; d; };
  30. / embutils / { p; d; };
  31. / disktype / { p; d; };
  32. / minised / { p; d; };
  33. / pdksh / { p; d; };
  34. / udev / { p; d; };
  35. / hotplug++ / { p; d; };
  36. / cpio / { p; d; };
  37. / mkinitrd / { p; d; };
  38. / stone / { p; d; };
  39. / linux-header / { p; d; };
  40. # we need those for some broken packages that need updating
  41. / automake / { s,^. [^ ]*,X 0---------,; p; d; }
  42. / libtool / { s,^. [^ ]*,X 0---------,; p; d; }
  43. / binutils / { s,^. [^ ]*,X 0---------,; p; d; }
  44. / gcc / { s,^. [^ ]*,X 0---------,; p; d; }
  45. / squashfs-tools / { s,^. [^ ]*,X 0---------,; p; d; }
  46. / pkgconfig / { s,^. [^ ]*,X 0---------,; p; d; }
  47. / linux26 / { p; d; };
  48. # / modutils / { p; d; };
  49. / module-init-tools / { p; d; };
  50. / libowfat / { p; d; };
  51. / minit / { p; d; };
  52. / fgetty / { p; d; };
  53. / bash / { p; d; };
  54. / gawk / { p; d; };
  55. / coreutils / { p; d; };
  56. / find-utils / { p; d; };
  57. / util-linux / { p; d; };
  58. / procps / { p; d; };
  59. / minised / { p; d; };
  60. / sed / { p; d; };
  61. / ugrep / { p; d; };
  62. / less / { p; d; };
  63. / mmv / { p; d; };
  64. # / bc / { p; d; };
  65. # screen # does not cross compile right now
  66. / curl / { p; d; };
  67. # wget # cross builds - but not needed right now
  68. / elvis-tiny / { p; d; };
  69. / zile / { p; d; };
  70. / zlib / { p; d; };
  71. / gzip / { p; d; };
  72. / bzip2 / { p; d; };
  73. / tar / { p; d; };
  74. / ncurses / { p; d; };
  75. / popt / { p; d; };
  76. / libpcap / { p; d; };
  77. / ppp / { p; d; };
  78. / iptables / { p; d; };
  79. / net-tools / { p; d; };
  80. / iproute2 / { p; d; };
  81. / dropbear / { p; d; };
  82. / rsync / { p; d; };
  83. / vlan / { p; d; };
  84. / ncurses / { p; d; };
  85. / grep / { p; d; };
  86. / make / { p; d; };
  87. #/ pkgconfig / { p; d; };
  88. / udev / { p; d; };
  89. / hotplug++ / { p; d; };
  90. / cpio / { p; d; };
  91. / mininet / { p; d; };
  92. / rng-tools / { p; d; };
  93. / libowfat / { p; d; };
  94. / gatling / { p; d; };
  95. / udhcp / { p; d; };
  96. / clockspeed / { p; d; };
  97. / djbdns / { p; d; };
  98. / tftp-hpa / { p; d; };
  99. / file / { p; d; };
  100. / diffutils / { p; d; };
  101. / mktemp / { p; d; };
  102. / time / { p; d; };
  103. / psmisc / { p; d; };
  104. / hdparm / { p; d; };
  105. # road to x.org
  106. / bigreqsproto / { p; d; };
  107. / inputproto / { p; d; };
  108. / kbproto / { p; d; };
  109. / xcmiscproto / { p; d; };
  110. / xextproto / { p; d; };
  111. / xf86bigfontproto / { p; d; };
  112. / xproto / { p; d; };
  113. / xtrans / { p; d; };
  114. EOT
  115. case "$SDECFG_TARGET_EMBEDDED_STYLE" in
  116. dietlibc)
  117. cat >> $tmp <<-EOT
  118. / dietlibc / { p; d; };
  119. EOT
  120. ;;
  121. *)
  122. cat >> $tmp <<-EOT
  123. / uclibc / { p; d; };
  124. / perl perl / { p; d; };
  125. / strongswan / { p; d; };
  126. / libpng / { p; d; };
  127. / openssl / { p; d; };
  128. / gmp / { p; d; };
  129. / irda-utils / { p; d; };
  130. / unionfs / { p; d; };
  131. / dosfstools / { p; d; };
  132. EOT
  133. ;;
  134. esac
  135. cat >> $tmp <<-EOT
  136. # disable the rest
  137. /.*/ { s/^X /O / ; p; d; };
  138. EOT
  139. sed -f $tmp
  140. rm $tmp
  141. }
  142. pkgfilter embedded_pkgfilter
  143. SDECFGSET_IMAGE='none'
  144. SDECFGSET_PKGFILE_TYPE='tar.bz2'
  145. SDECFGSET_PKGFILE_VER=1
  146. # we must set it here, since the logic pkgenables the selected libc
  147. SDECFGSET_LIBC="$SDECFG_TARGET_EMBEDDED_STYLE"
  148. SDECFGSET_DIETLIBC_DYN=0
  149. if [ $SDECFG_TARGET_EMBEDDED_STYLE == dietlibc ]; then
  150. SDECFGSET_STATIC=1
  151. else
  152. SDECFGSET_STATIC=0
  153. fi
  154. SDECFGSET_INIT='minit'
  155. SDECFGSET_OPT='size'
  156. SDECFGSET_DO_REBUILD_STAGE=0
  157. SDECFGSET_DISABLE_NLS=1
  158. SDECFGSET_PKG_BUSYBOX_SYMLINKS=1