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.

118 lines
2.9 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: target/wrt2/config.in
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. #Description: Wireless Router (experimental!)
  15. comment_id '- Target Style' COMMENT_TARGET_EMBEDDED_STYLEC
  16. choice SDECFG_TARGET_EMBEDDED_STYLE uclibc \
  17. uclibc 'uc libC (ugly but many packages to choose from)' \
  18. dietlibc 'diet libC (less is more)'
  19. embedded_pkgfilter() {
  20. local tmp=`mktemp`
  21. cat > $tmp <<-EOT
  22. # mangle all packages to only build them in the cross stage (1)
  23. s,^. \(.\)[^ ]*,X \11--------,;
  24. # select some packages (and repositories) explicitely
  25. / fhs / { p; d; };
  26. / linux-header / { p; d; };
  27. / binutils / { s,^. [^ ]*,X 0---------,; p; d; }
  28. / gcc / { s,^. [^ ]*,X 0---------,; p; d; }
  29. / squashfs-tools / { s,^. [^ ]*,X 0---------,; p; d; }
  30. #/ linux26mips / { p; d; };
  31. # unionfs fails to build with dietlibc
  32. #/ unionfs / { p; d; };
  33. / ncurses / { p; d; };
  34. / readline / { p; d; };
  35. / libowfat / { p; d; };
  36. / zlib / { p; d; };
  37. / libpcap / { p; d; };
  38. / openssl / { p; d; };
  39. / minit / { p; d; };
  40. / fgetty / { p; d; };
  41. / embutils / { p; d; };
  42. / pdksh / { p; d; };
  43. / arptables / { p; d; };
  44. / ebtables / { p; d; };
  45. / iptables / { p; d; };
  46. / iproute2 / { p; d; };
  47. / vlan / { p; d; };
  48. / bridge-utils / { p; d; };
  49. / ppp / { p; d; };
  50. / quagga / { p; d; };
  51. / dropbear / { p; d; };
  52. / rsync / { p; d; };
  53. / curl / { p; d; };
  54. / bglibs / { p; d; };
  55. / bcron / { p; d; };
  56. / madwifi / { p; d; };
  57. / wireless-tools / { p; d; };
  58. / hostap / { p; d; };
  59. EOT
  60. case "$SDECFG_TARGET_EMBEDDED_STYLE" in
  61. dietlibc)
  62. cat >> $tmp <<-EOT
  63. / dietlibc / { p; d; };
  64. EOT
  65. ;;
  66. *)
  67. cat >> $tmp <<-EOT
  68. / uclibc / { p; d; };
  69. EOT
  70. ;;
  71. esac
  72. cat >> $tmp <<-EOT
  73. # disable the rest
  74. /.*/ { s/^X /O / ; p; d; };
  75. EOT
  76. sed -f $tmp
  77. rm $tmp
  78. }
  79. pkgfilter embedded_pkgfilter
  80. SDECFGSET_PKGFILE_TYPE='tarbz2'
  81. SDECFGSET_PKGFILE_VER=0
  82. # we must set it here, since the logic pkgenables the selected libc
  83. SDECFGSET_LIBC="$SDECFG_TARGET_EMBEDDED_STYLE"
  84. #SDECFGSET_DIETLIBC_DYN=0
  85. [ $SDECFG_TARGET_EMBEDDED_STYLE == dietlibc ] && SDECFGSET_STATIC=1
  86. SDECFGSET_INIT='minit'
  87. SDECFGSET_OPT='size'
  88. SDECFGSET_DO_REBUILD_STAGE=0
  89. SDECFGSET_DISABLE_NLS=1
  90. SDECFGSET_PKG_BUSYBOX_SYMLINKS=1