1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: target/embedded/config.in
5 # Copyright (C) 2004 - 2011 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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 ---
15 #Description: Generic Embedded
17 comment_id '- Target Style' COMMENT_TARGET_EMBEDDED_STYLE
19 # might not be available: e.g. avr32, blackfin, superh, ...
20 if pkgcheck dietlibc .; then
21 choice SDECFG_TARGET_EMBEDDED_STYLE uclibc \
22 uclibc 'uClibc (ugly but many packages to choose from)' \
23 dietlibc 'diet libc (less is more)'
25 choice SDECFG_TARGET_EMBEDDED_STYLE uclibc \
26 uclibc 'uClibc (ugly but many packages to choose from)'
28 bool 'Use busybox applets' SDECFG_TARGET_EMBEDDED_BB 1
30 embedded_pkgfilter() {
34 # mangle all packages to only build them in the cross stage (1)
35 s,^. \(.\)[^ ]*,X \11--------,;
37 # select some packages (and repositories) explicitely
39 / 00-dirtree / { p; d; };
40 / sysfiles / { p; d; };
41 / rocknet / { p; d; };
42 / disktype / { p; d; };
43 / minised / { p; d; };
48 # depends on embutils/dietlibc, which we might not have
49 # / mkinitrd / { p; d; };
51 / linux-header / { p; d; };
53 # we need those for some broken packages that need updating
54 / autoconf / { s,^. [^ ]*,X 0---------,; p; d; }
55 / automake / { s,^. [^ ]*,X 0---------,; p; d; }
56 / libtool / { s,^. [^ ]*,X 0---------,; p; d; }
58 / squashfs-tools / { s,^. [^ ]*,X 0---------,; p; d; }
60 / pkgconfig / { s,^. [^ ]*,X 0---------,; p; d; }
61 / ccache / { s,^. [^ ]*,X 0---------,; p; d; }
65 / libowfat / { p; d; };
75 # / screen / { p; d; };
78 / elvis-tiny / { p; d; };
84 / ncurses / { p; d; };
87 / libpcap / { p; d; };
90 / iptables / { p; d; };
91 / dropbear / { p; d; };
98 / mininet / { p; d; };
99 / libowfat / { p; d; };
100 #/ gatling / { p; d; };
101 / clockspeed / { p; d; };
102 / djbdns / { p; d; };
106 case "$SDECFG_TARGET_EMBEDDED_STYLE" in
109 / binutils / { s,^. [^ ]*,X 0---------,; p; d; }
110 / gcc / { s,^. [^ ]*,X 0---------,; p; d; }
111 / gmp / { s,^. [^ ]*,X 0---------,; p; d; }
112 / mpfr / { s,^. [^ ]*,X 0---------,; p; d; }
113 / mpc / { s,^. [^ ]*,X 0---------,; p; d; }
115 / dietlibc / { p; d; };
116 / embutils / { p; d; };
121 / binutils / { p; d; };
127 / uclibc / { p; d; };
128 / perl perl / { p; d; };
129 / libpng / { p; d; };
131 / openssl / { p; d; };
133 / irda-utils / { p; d; };
135 / dosfstools / { p; d; };
136 / e2fsprogs / { p; d; };
138 / mktemp / { p; d; };
140 # only needed by the toolchain, the target itself uses busybox applets
141 / module-init-tools / { s,^. [^ ]*,X 0---------,; p; d; };
142 / gzip / { s,^. [^ ]*,X 0---------,; p; d; };
143 / cpio / { s,^. [^ ]*,X 0---------,; p; d; };
148 if [ "$SDECFG_TARGET_EMBEDDED_BB" != 0 ]; then
150 / busybox / { p; d; };
154 / module-init-tools / { p; d; };
159 / coreutils / { p; d; };
160 / util-linux / { p; d; };
161 / findutils / { p; d; };
162 / diffutils / { p; d; };
167 / net-tools / { p; d; };
168 / iproute2 / { p; d; };
169 / hdparm / { p; d; };
170 / procps / { p; d; };
171 / psmisc / { p; d; };
172 / tftp-hpa / { p; d; };
176 case "$SDECFG_ARCH" in
179 / u-boot / { p; d; };
186 /.*/ { s/^X /O / ; p; d; };
193 pkgfilter embedded_pkgfilter
195 SDECFGSET_IMAGE='none'
196 SDECFGSET_PKGFILE_TYPE='tar.bz2'
197 SDECFGSET_PKGFILE_VER=1
199 # we must set it here, since the logic pkgenables the selected libc
200 SDECFGSET_LIBC="$SDECFG_TARGET_EMBEDDED_STYLE"
201 SDECFGSET_DIETLIBC_DYN=0
203 if [ $SDECFG_TARGET_EMBEDDED_STYLE == dietlibc ]; then
209 SDECFGSET_INIT='minit'
213 SDECFGSET_DO_REBUILD_STAGE=0
214 SDECFGSET_DISABLE_NLS=1