diff options
author | Ross Burton <ross.burton@intel.com> | 2016-07-13 11:24:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:56:27 +0100 |
commit | bb9d9dacca704da5f55ad2e86ced41e7e531f286 (patch) | |
tree | ddd4fed633173ab81f8c14418d7c13b9b5b261b4 /meta/recipes-core | |
parent | 560077821aee107e8fe88e8a99e7efa493aec2d5 (diff) | |
download | poky-bb9d9dacca704da5f55ad2e86ced41e7e531f286.tar.gz |
uclibc: remove
uclibc is showing its age now and upstarts like musl are approximately the same
size but with far more features and active maintainers. Remove uclibc from
oe-core and use endorse musl as the lighter alternative to full-fat glibc.
(From OE-Core rev: ff1599149942af1c36280abd4f1ed3878aaa62eb)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/uclibc/site_config/funcs | 474 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/site_config/headers | 156 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/site_config/types | 21 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-config.inc | 142 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git.inc | 18 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-Disable-lrount_tes-function.patch | 37 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-Provide-an-alias-to-_obstack_free.patch | 44 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/locale.cfg | 3 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/obstack.cfg | 1 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/uClibc.distro | 195 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/uClibc.machine | 14 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-initial_git.bb | 36 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-package.inc | 36 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc.inc | 159 | ||||
-rw-r--r-- | meta/recipes-core/uclibc/uclibc_git.bb | 22 |
15 files changed, 0 insertions, 1358 deletions
diff --git a/meta/recipes-core/uclibc/site_config/funcs b/meta/recipes-core/uclibc/site_config/funcs deleted file mode 100644 index ccc85392d7..0000000000 --- a/meta/recipes-core/uclibc/site_config/funcs +++ /dev/null | |||
@@ -1,474 +0,0 @@ | |||
1 | a64l | ||
2 | abs | ||
3 | access | ||
4 | __adjtimex | ||
5 | alarm | ||
6 | alphasort | ||
7 | argz_append | ||
8 | __argz_count | ||
9 | argz_create_sep | ||
10 | argz_insert | ||
11 | __argz_next | ||
12 | argz_next | ||
13 | __argz_stringify | ||
14 | argz_stringify | ||
15 | asprintf | ||
16 | atexit | ||
17 | atof | ||
18 | atoi | ||
19 | bcmp | ||
20 | bcopy | ||
21 | bindresvport | ||
22 | bind_textdomain_codeset | ||
23 | btowc | ||
24 | bzero | ||
25 | calloc | ||
26 | canonicalize_file_name | ||
27 | catgets | ||
28 | cfgetospeed | ||
29 | cfsetispeed | ||
30 | cfsetspeed | ||
31 | chmod | ||
32 | chown | ||
33 | chroot | ||
34 | clock | ||
35 | close | ||
36 | closedir | ||
37 | closelog | ||
38 | confstr | ||
39 | connect | ||
40 | daemon | ||
41 | dcgettext | ||
42 | difftime | ||
43 | dirfd | ||
44 | dirname | ||
45 | dngettext | ||
46 | dup2 | ||
47 | ecvt | ||
48 | endgrent | ||
49 | endmntent | ||
50 | endpwent | ||
51 | endutent | ||
52 | endutxent | ||
53 | epoll_ctl | ||
54 | err | ||
55 | ether_hostton | ||
56 | ether_ntohost | ||
57 | euidaccess | ||
58 | execv | ||
59 | fchdir | ||
60 | fchmod | ||
61 | fchmodat | ||
62 | fchown | ||
63 | fchownat | ||
64 | fcntl | ||
65 | fcvt | ||
66 | fdatasync | ||
67 | fdopendir | ||
68 | feof_unlocked | ||
69 | fgets_unlocked | ||
70 | fgetxattr | ||
71 | finite | ||
72 | flistxattr | ||
73 | flock | ||
74 | flockfile | ||
75 | fnmatch | ||
76 | fork | ||
77 | fpathconf | ||
78 | __fpending | ||
79 | fprintf | ||
80 | free | ||
81 | freeaddrinfo | ||
82 | freeifaddrs | ||
83 | fseeko | ||
84 | __fsetlocking | ||
85 | fsetxattr | ||
86 | fstat64 | ||
87 | fstat | ||
88 | fstatfs | ||
89 | fsync | ||
90 | ftello | ||
91 | ftime | ||
92 | ftruncate | ||
93 | funlockfile | ||
94 | futimes | ||
95 | futimesat | ||
96 | gai_strerror | ||
97 | gcvt | ||
98 | getaddrinfo | ||
99 | getc_unlocked | ||
100 | getcwd | ||
101 | getdelim | ||
102 | getdomainname | ||
103 | getdtablesize | ||
104 | getegid | ||
105 | getenv | ||
106 | geteuid | ||
107 | getgid | ||
108 | getgrent | ||
109 | getgrent_r | ||
110 | getgrgid_r | ||
111 | getgrnam | ||
112 | getgrnam_r | ||
113 | getgrouplist | ||
114 | getgroups | ||
115 | gethostbyaddr_r | ||
116 | gethostbyname2 | ||
117 | gethostbyname | ||
118 | gethostbyname_r | ||
119 | gethostent | ||
120 | gethostid | ||
121 | gethostname | ||
122 | getifaddrs | ||
123 | getline | ||
124 | getloadavg | ||
125 | getmntent | ||
126 | getmsg | ||
127 | getnameinfo | ||
128 | getnetbyaddr_r | ||
129 | getnetgrent_r | ||
130 | getopt | ||
131 | getopt_long | ||
132 | getopt_long_only | ||
133 | getpagesize | ||
134 | getpass | ||
135 | getpeername | ||
136 | getpgrp | ||
137 | getpid | ||
138 | getppid | ||
139 | getprotoent_r | ||
140 | getpwent | ||
141 | getpwent_r | ||
142 | getpwnam | ||
143 | getpwnam_r | ||
144 | getpwuid | ||
145 | getpwuid_r | ||
146 | getresuid | ||
147 | getrlimit | ||
148 | getrusage | ||
149 | getservbyname | ||
150 | getservbyname_r | ||
151 | getservbyport_r | ||
152 | getservent | ||
153 | getservent_r | ||
154 | getspnam | ||
155 | getspnam_r | ||
156 | gettimeofday | ||
157 | getttyent | ||
158 | getttynam | ||
159 | getuid | ||
160 | getusershell | ||
161 | getutent | ||
162 | getutid | ||
163 | getutline | ||
164 | getutmp | ||
165 | getutmpx | ||
166 | getutxent | ||
167 | getutxid | ||
168 | getutxline | ||
169 | getwd | ||
170 | getxattr | ||
171 | glob | ||
172 | gmtime | ||
173 | gmtime_r | ||
174 | grantpt | ||
175 | group_member | ||
176 | herror | ||
177 | hstrerror | ||
178 | iconv | ||
179 | iconv_open | ||
180 | if_freenameindex | ||
181 | if_indextoname | ||
182 | if_nameindex | ||
183 | if_nametoindex | ||
184 | index | ||
185 | inet_addr | ||
186 | inet_aton | ||
187 | inet_ntoa | ||
188 | inet_ntop | ||
189 | inet_pton | ||
190 | initgroups | ||
191 | innetgr | ||
192 | iruserok | ||
193 | isascii | ||
194 | isatty | ||
195 | isblank | ||
196 | isgraph | ||
197 | isinf | ||
198 | isnan | ||
199 | isprint | ||
200 | isspace | ||
201 | iswalnum | ||
202 | iswcntrl | ||
203 | iswctype | ||
204 | iswprint | ||
205 | iswspace | ||
206 | iswupper | ||
207 | isxdigit | ||
208 | kill | ||
209 | killpg | ||
210 | lchown | ||
211 | lckpwdf | ||
212 | lgetxattr | ||
213 | link | ||
214 | listxattr | ||
215 | llistxattr | ||
216 | localtime | ||
217 | localtime_r | ||
218 | lockf | ||
219 | lrand48 | ||
220 | lsearch | ||
221 | lseek64 | ||
222 | lsetxattr | ||
223 | lstat | ||
224 | mallinfo | ||
225 | malloc | ||
226 | mblen | ||
227 | mbrlen | ||
228 | mbrtowc | ||
229 | mbsinit | ||
230 | mbsrtowcs | ||
231 | mbtowc | ||
232 | memalign | ||
233 | memchr | ||
234 | memcmp | ||
235 | memcpy | ||
236 | memmove | ||
237 | mempcpy | ||
238 | memrchr | ||
239 | memset | ||
240 | mkdir | ||
241 | mkdirat | ||
242 | mkdtemp | ||
243 | mkfifo | ||
244 | mknod | ||
245 | mkstemp64 | ||
246 | mkstemp | ||
247 | mktime | ||
248 | mlock | ||
249 | mmap | ||
250 | mtrace | ||
251 | munlock | ||
252 | munmap | ||
253 | nanosleep | ||
254 | nice | ||
255 | nl_langinfo | ||
256 | ntp_adjtime | ||
257 | ntp_gettime | ||
258 | _obstack_free | ||
259 | on_exit | ||
260 | open64 | ||
261 | open | ||
262 | openat | ||
263 | opendir | ||
264 | openlog | ||
265 | pathconf | ||
266 | pipe | ||
267 | poll | ||
268 | popen | ||
269 | posix_memalign | ||
270 | prctl | ||
271 | pread | ||
272 | printf | ||
273 | __progname | ||
274 | pselect | ||
275 | pthread_mutex_lock | ||
276 | ptsname | ||
277 | putenv | ||
278 | putgrent | ||
279 | putpwent | ||
280 | putspent | ||
281 | pututline | ||
282 | pututxline | ||
283 | putwc | ||
284 | pwrite | ||
285 | qsort | ||
286 | raise | ||
287 | rand | ||
288 | random | ||
289 | rand_r | ||
290 | read | ||
291 | readdir | ||
292 | readdir_r | ||
293 | readlink | ||
294 | realloc | ||
295 | realpath | ||
296 | re_comp | ||
297 | recvmsg | ||
298 | re_exec | ||
299 | regcomp | ||
300 | regexec | ||
301 | remove | ||
302 | rename | ||
303 | re_search | ||
304 | rmdir | ||
305 | rpmatch | ||
306 | rresvport_af | ||
307 | ruserok | ||
308 | ruserok_af | ||
309 | sbrk | ||
310 | scandir | ||
311 | sched_setscheduler | ||
312 | sched_yield | ||
313 | __secure_getenv | ||
314 | select | ||
315 | semctl | ||
316 | semget | ||
317 | sendmsg | ||
318 | setbuf | ||
319 | setbuffer | ||
320 | setegid | ||
321 | setenv | ||
322 | seteuid | ||
323 | setgid | ||
324 | setgroups | ||
325 | sethostname | ||
326 | setitimer | ||
327 | _setjmp | ||
328 | setjmp | ||
329 | setlinebuf | ||
330 | setlocale | ||
331 | setmntent | ||
332 | setpgid | ||
333 | setpgrp | ||
334 | setpriority | ||
335 | setregid | ||
336 | setresgid | ||
337 | setresuid | ||
338 | setreuid | ||
339 | setrlimit | ||
340 | setsid | ||
341 | setsockopt | ||
342 | settimeofday | ||
343 | setuid | ||
344 | setutent | ||
345 | setutxent | ||
346 | setvbuf | ||
347 | setxattr | ||
348 | sgetspent | ||
349 | shmat | ||
350 | shmctl | ||
351 | shmdt | ||
352 | shmget | ||
353 | shutdown | ||
354 | sigaction | ||
355 | sigaddset | ||
356 | sigaltstack | ||
357 | sigblock | ||
358 | sigemptyset | ||
359 | sighold | ||
360 | siginterrupt | ||
361 | signal | ||
362 | sigprocmask | ||
363 | sigset | ||
364 | sigsetmask | ||
365 | sigstack | ||
366 | sigsuspend | ||
367 | sigvec | ||
368 | snprintf | ||
369 | socket | ||
370 | socketpair | ||
371 | sprintf | ||
372 | srand48 | ||
373 | srand | ||
374 | srandom | ||
375 | sscanf | ||
376 | stat | ||
377 | statfs | ||
378 | statvfs | ||
379 | stime | ||
380 | stpcpy | ||
381 | strcasecmp | ||
382 | strcasestr | ||
383 | strchr | ||
384 | strchrnul | ||
385 | strcmp | ||
386 | strcspn | ||
387 | strdup | ||
388 | strerror | ||
389 | strerror_r | ||
390 | strftime | ||
391 | strlen | ||
392 | strncasecmp | ||
393 | strncmp | ||
394 | strndup | ||
395 | strnlen | ||
396 | strpbrk | ||
397 | strptime | ||
398 | strrchr | ||
399 | strsep | ||
400 | strsignal | ||
401 | strspn | ||
402 | strstr | ||
403 | strtod | ||
404 | strtoimax | ||
405 | strtok_r | ||
406 | strtol | ||
407 | strtoll | ||
408 | strtoul | ||
409 | strtoull | ||
410 | strtoumax | ||
411 | strverscmp | ||
412 | strxfrm | ||
413 | symlink | ||
414 | sync | ||
415 | sysconf | ||
416 | sysctl | ||
417 | sysinfo | ||
418 | syslog | ||
419 | _sys_siglist | ||
420 | sys_siglist | ||
421 | system | ||
422 | tcgetattr | ||
423 | tcgetpgrp | ||
424 | tcsetattr | ||
425 | tcsetpgrp | ||
426 | time | ||
427 | timegm | ||
428 | times | ||
429 | timezone | ||
430 | tmpnam | ||
431 | towlower | ||
432 | towupper | ||
433 | truncate | ||
434 | tsearch | ||
435 | ttyname | ||
436 | tzset | ||
437 | ulimit | ||
438 | umask | ||
439 | uname | ||
440 | unlink | ||
441 | unsetenv | ||
442 | unshare | ||
443 | updwtmp | ||
444 | updwtmpx | ||
445 | usleep | ||
446 | ustat | ||
447 | utime | ||
448 | utimes | ||
449 | utmpname | ||
450 | utmpxname | ||
451 | valloc | ||
452 | vasprintf | ||
453 | verrx | ||
454 | vfork | ||
455 | vfprintf | ||
456 | vfscanf | ||
457 | vhangup | ||
458 | vprintf | ||
459 | vsnprintf | ||
460 | vsprintf | ||
461 | wait3 | ||
462 | wait4 | ||
463 | waitpid | ||
464 | wcrtomb | ||
465 | wcscoll | ||
466 | wcsdup | ||
467 | wcslen | ||
468 | wctob | ||
469 | wctomb | ||
470 | wctype | ||
471 | wcwidth | ||
472 | wmemchr | ||
473 | wmemcpy | ||
474 | wmempcpy | ||
diff --git a/meta/recipes-core/uclibc/site_config/headers b/meta/recipes-core/uclibc/site_config/headers deleted file mode 100644 index 609ab53797..0000000000 --- a/meta/recipes-core/uclibc/site_config/headers +++ /dev/null | |||
@@ -1,156 +0,0 @@ | |||
1 | aio.h | ||
2 | alloca.h | ||
3 | argz.h | ||
4 | arpa/inet.h | ||
5 | arpa/nameser.h | ||
6 | asm/byteorder.h | ||
7 | asm/ioctls.h | ||
8 | asm/page.h | ||
9 | asm/types.h | ||
10 | assert.h | ||
11 | byteswap.h | ||
12 | crypt.h | ||
13 | ctype.h | ||
14 | dirent.h | ||
15 | dlfcn.h | ||
16 | elf.h | ||
17 | endian.h | ||
18 | err.h | ||
19 | errno.h | ||
20 | execinfo.h | ||
21 | fcntl.h | ||
22 | features.h | ||
23 | float.h | ||
24 | fstab.h | ||
25 | ftw.h | ||
26 | getopt.h | ||
27 | glob.h | ||
28 | grp.h | ||
29 | iconv.h | ||
30 | ifaddrs.h | ||
31 | inttypes.h | ||
32 | langinfo.h | ||
33 | lastlog.h | ||
34 | libgen.h | ||
35 | libintl.h | ||
36 | limits.h | ||
37 | linux/capability.h | ||
38 | linux/fd.h | ||
39 | linux/fs.h | ||
40 | linux/hayesesp.h | ||
41 | linux/hdreg.h | ||
42 | linux/icmp.h | ||
43 | linux/in6.h | ||
44 | linux/joystick.h | ||
45 | linux/ptrace.h | ||
46 | linux/serial.h | ||
47 | linux/sonypi.h | ||
48 | linux/unistd.h | ||
49 | linux/utsname.h | ||
50 | linux/version.h | ||
51 | locale.h | ||
52 | malloc.h | ||
53 | math.h | ||
54 | mcheck.h | ||
55 | memory.h | ||
56 | mntent.h | ||
57 | mqueue.h | ||
58 | netdb.h | ||
59 | net/if.h | ||
60 | netinet/ether.h | ||
61 | netinet/in.h | ||
62 | netinet/ip6.h | ||
63 | netinet/ip.h | ||
64 | netinet/tcp.h | ||
65 | netinet/udp.h | ||
66 | netipx/ipx.h | ||
67 | net/route.h | ||
68 | paths.h | ||
69 | poll.h | ||
70 | pthread.h | ||
71 | pty.h | ||
72 | pwd.h | ||
73 | regex.h | ||
74 | resolv.h | ||
75 | rpc/rpc.h | ||
76 | rpc/types.h | ||
77 | sched.h | ||
78 | scsi/scsi.h | ||
79 | search.h | ||
80 | semaphore.h | ||
81 | setjmp.h | ||
82 | sgtty.h | ||
83 | shadow.h | ||
84 | signal.h | ||
85 | stdarg.h | ||
86 | stdbool.h | ||
87 | stdc | ||
88 | stddef.h | ||
89 | stdint.h | ||
90 | stdio.h | ||
91 | stdlib.h | ||
92 | string.h | ||
93 | strings.h | ||
94 | stropts.h | ||
95 | sys/bitypes.h | ||
96 | sys/cdefs.h | ||
97 | sys/dir.h | ||
98 | sys/epoll.h | ||
99 | sysexits.h | ||
100 | sys/fcntl.h | ||
101 | sys/file.h | ||
102 | sys/fsuid.h | ||
103 | sys/ioctl.h | ||
104 | sys/ipc.h | ||
105 | syslog.h | ||
106 | sys/mman.h | ||
107 | sys/mount.h | ||
108 | sys/mtio.h | ||
109 | sys/param.h | ||
110 | sys/poll.h | ||
111 | sys/prctl.h | ||
112 | sys/ptrace.h | ||
113 | sys/queue.h | ||
114 | sys/reg.h | ||
115 | sys/resource.h | ||
116 | sys/select.h | ||
117 | sys/sem.h | ||
118 | sys/shm.h | ||
119 | sys/signal.h | ||
120 | sys/socket.h | ||
121 | sys/socketvar.h | ||
122 | sys/soundcard.h | ||
123 | sys/statfs.h | ||
124 | sys/stat.h | ||
125 | sys/statvfs.h | ||
126 | sys/stropts.h | ||
127 | sys/swap.h | ||
128 | sys/sysctl.h | ||
129 | sys/sysinfo.h | ||
130 | sys/sysmacros.h | ||
131 | sys/termios.h | ||
132 | sys/timeb.h | ||
133 | sys/time.h | ||
134 | sys/times.h | ||
135 | sys/timex.h | ||
136 | sys/types.h | ||
137 | sys/uio.h | ||
138 | sys/un.h | ||
139 | sys/unistd.h | ||
140 | sys/user.h | ||
141 | sys/utsname.h | ||
142 | sys/vfs.h | ||
143 | sys/wait.h | ||
144 | termio.h | ||
145 | termios.h | ||
146 | time.h | ||
147 | ttyent.h | ||
148 | ulimit.h | ||
149 | unistd.h | ||
150 | ustat.h | ||
151 | utime.h | ||
152 | utmp.h | ||
153 | utmpx.h | ||
154 | values.h | ||
155 | wchar.h | ||
156 | wctype.h | ||
diff --git a/meta/recipes-core/uclibc/site_config/types b/meta/recipes-core/uclibc/site_config/types deleted file mode 100644 index 178bd85a00..0000000000 --- a/meta/recipes-core/uclibc/site_config/types +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | char | ||
2 | char * | ||
3 | double | ||
4 | float | ||
5 | int | ||
6 | long | ||
7 | long double | ||
8 | long int | ||
9 | long long | ||
10 | long long int | ||
11 | short | ||
12 | short int | ||
13 | signed char | ||
14 | unsigned char | ||
15 | unsigned int | ||
16 | unsigned long | ||
17 | unsigned long int | ||
18 | unsigned long long int | ||
19 | unsigned short | ||
20 | unsigned short int | ||
21 | void * | ||
diff --git a/meta/recipes-core/uclibc/uclibc-config.inc b/meta/recipes-core/uclibc/uclibc-config.inc deleted file mode 100644 index 8b9e41c64d..0000000000 --- a/meta/recipes-core/uclibc/uclibc-config.inc +++ /dev/null | |||
@@ -1,142 +0,0 @@ | |||
1 | DEPENDS += "kern-tools-native" | ||
2 | inherit cml1 | ||
3 | # | ||
4 | # Set the ARCH environment variable for uClibc compilation. | ||
5 | # Return value must match one of the architectures known to uClibc: | ||
6 | # libc/sysdeps/*/* | ||
7 | # | ||
8 | |||
9 | valid_archs = "\ | ||
10 | alpha \ | ||
11 | arm \ | ||
12 | avr32 \ | ||
13 | bfin \ | ||
14 | c6x \ | ||
15 | cris \ | ||
16 | e1 \ | ||
17 | frv \ | ||
18 | h8300 \ | ||
19 | hppa \ | ||
20 | i386 \ | ||
21 | i960 \ | ||
22 | ia64 \ | ||
23 | m68k \ | ||
24 | microblaze \ | ||
25 | mips \ | ||
26 | nios \ | ||
27 | nios2 \ | ||
28 | powerpc \ | ||
29 | sh \ | ||
30 | sh64 \ | ||
31 | sparc \ | ||
32 | v850 \ | ||
33 | vax \ | ||
34 | x86_64 \ | ||
35 | xtensa \ | ||
36 | " | ||
37 | def map_uclibc_arch(a, d): | ||
38 | """Return the uClibc architecture for the given TARGET_ARCH.""" | ||
39 | import re | ||
40 | |||
41 | valid_archs = d.getVar('valid_archs', True).split() | ||
42 | |||
43 | if re.match('^(arm|sa110).*', a): | ||
44 | return 'arm' | ||
45 | elif re.match('^(i.86|athlon)$', a): | ||
46 | return 'i386' | ||
47 | elif re.match('^mips.*', a): | ||
48 | return 'mips' | ||
49 | elif re.match('^parisc.*', a): | ||
50 | return 'hppa' | ||
51 | elif re.match('^ppc.*', a): | ||
52 | return 'powerpc' | ||
53 | elif re.match('^s390.*', a): | ||
54 | return 's390' | ||
55 | elif re.match('^sh.*', a): | ||
56 | return 'sh' | ||
57 | elif re.match('^(sun|sparc).*', a): | ||
58 | return 'sparc' | ||
59 | elif re.match('^xtensa.*', a): | ||
60 | return 'xtensa' | ||
61 | elif a in valid_archs: | ||
62 | return a | ||
63 | else: | ||
64 | bb.error("cannot map '%s' to a uClibc architecture" % a) | ||
65 | |||
66 | export UCLIBC_ARCH = "${@map_uclibc_arch(d.getVar('TARGET_ARCH', True), d)}" | ||
67 | |||
68 | def map_uclibc_abi(o, d): | ||
69 | """Return the uClibc ABI for the given TARGET_OS.""" | ||
70 | import re | ||
71 | |||
72 | arch = d.getVar('TARGET_ARCH', True) | ||
73 | if map_uclibc_arch(d.getVar('TARGET_ARCH', True), d) == "arm": | ||
74 | if re.match('.*eabi$', o): | ||
75 | return 'ARM_EABI' | ||
76 | else: | ||
77 | return 'ARM_OABI' | ||
78 | # FIXME: This is inaccurate! Handle o32, n32, n64 | ||
79 | elif re.match('^mips.*64$', arch): | ||
80 | return 'MIPS_N64_ABI' | ||
81 | elif re.match('^mips.*', arch): | ||
82 | return 'MIPS_O32_ABI' | ||
83 | return "" | ||
84 | |||
85 | export UCLIBC_ABI = "${@map_uclibc_abi(d.getVar('TARGET_OS', True), d)}" | ||
86 | |||
87 | def map_uclibc_endian(a, d): | ||
88 | """Return the uClibc endianess for the given TARGET_ARCH.""" | ||
89 | import re | ||
90 | |||
91 | # Always BE | ||
92 | if re.match('^(avr32|e1|frv|(parisc|hppa)|m68k|microblaze|powerpc.*|(sparc|sun).*)$', a): | ||
93 | return 'BIG' | ||
94 | # Possibly BE | ||
95 | elif re.match('^(((arm|sa110).*eb)|h8300.*eb|(parisc|hppa).*eb|mips|mips64|sh.*eb|xtensa.*eb)$', a): | ||
96 | return 'BIG' | ||
97 | return 'LITTLE' | ||
98 | |||
99 | export UCLIBC_ENDIAN = "${@map_uclibc_endian(d.getVar('TARGET_ARCH', True), d)}" | ||
100 | |||
101 | # internal helper | ||
102 | def uclibc_cfg(feature, features, tokens, cnf, rem): | ||
103 | if type(tokens) == type(""): | ||
104 | tokens = [tokens] | ||
105 | rem.extend(['/^[# ]*' + token + '[ =]/d' for token in tokens]) | ||
106 | if type(features) == type([]) and feature in features: | ||
107 | cnf.extend([token + '=y' for token in tokens]) | ||
108 | else: | ||
109 | cnf.extend(['# ' + token + ' is not set' for token in tokens]) | ||
110 | |||
111 | # Map distro features to config settings | ||
112 | def features_to_uclibc_settings(d): | ||
113 | cnf, rem = ([], []) | ||
114 | distro_features = d.getVar('DISTRO_FEATURES', True).split() | ||
115 | uclibc_cfg('ipv4', distro_features, 'UCLIBC_HAS_IPV4', cnf, rem) | ||
116 | uclibc_cfg('ipv6', distro_features, 'UCLIBC_HAS_IPV6', cnf, rem) | ||
117 | uclibc_cfg('largefile', distro_features, 'UCLIBC_HAS_LFS', cnf, rem) | ||
118 | uclibc_cfg('nls', distro_features, 'UCLIBC_HAS_LOCALE', cnf, rem) | ||
119 | uclibc_cfg('thumb-interwork', distro_features,'USE_BX', cnf, rem) | ||
120 | uclibc_cfg('xattr', distro_features, 'UCLIBC_HAS_XATTR', cnf, rem) | ||
121 | uclibc_cfg('ssp', distro_features, 'UCLIBC_HAS_SSP', cnf, rem) | ||
122 | uclibc_cfg('argp', distro_features, 'UCLIBC_HAS_ARGP', cnf, rem) | ||
123 | uclibc_cfg('libc-posix-clang-wchar', distro_features,'UCLIBC_HAS_WCHAR', cnf, rem) | ||
124 | return "\n".join(cnf), "\n".join(rem) | ||
125 | # X, Y = ${@features_to_uclibc_settings(d)} | ||
126 | # unfortunately doesn't seem to work with bitbake, workaround: | ||
127 | def features_to_uclibc_conf(d): | ||
128 | cnf, rem = features_to_uclibc_settings(d) | ||
129 | return cnf | ||
130 | def features_to_uclibc_del(d): | ||
131 | cnf, rem = features_to_uclibc_settings(d) | ||
132 | return rem | ||
133 | |||
134 | # returns all the elements from the src uri that are .cfg files | ||
135 | def find_cfgs(d): | ||
136 | sources=src_patches(d, True) | ||
137 | sources_list=[] | ||
138 | for s in sources: | ||
139 | if s.endswith('.cfg'): | ||
140 | sources_list.append(s) | ||
141 | |||
142 | return sources_list | ||
diff --git a/meta/recipes-core/uclibc/uclibc-git.inc b/meta/recipes-core/uclibc/uclibc-git.inc deleted file mode 100644 index 718bee9eee..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git.inc +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | SRCREV = "003b266cbeb370a8eae91dc256197f00798c6f93" | ||
2 | |||
3 | PV = "1.0.12+git${SRCPV}" | ||
4 | |||
5 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/uclibc-git:" | ||
6 | |||
7 | SRC_URI = "git://uclibc-ng.org/git/uclibc-ng \ | ||
8 | file://0001-Disable-lrount_tes-function.patch \ | ||
9 | file://0001-Provide-an-alias-to-_obstack_free.patch \ | ||
10 | file://uClibc.machine \ | ||
11 | file://uClibc.distro \ | ||
12 | file://obstack.cfg \ | ||
13 | file://locale.cfg \ | ||
14 | " | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)" | ||
18 | |||
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-Disable-lrount_tes-function.patch b/meta/recipes-core/uclibc/uclibc-git/0001-Disable-lrount_tes-function.patch deleted file mode 100644 index 506f146a79..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/0001-Disable-lrount_tes-function.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 14b865b3438d0df29b4969148678d8fa8943e1ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 16 Aug 2015 20:49:33 -0700 | ||
4 | Subject: [PATCH 1/7] Disable lrount_tes() function | ||
5 | |||
6 | Its not used anyway, avoids some strict compiler warnings | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | test/math/libm-test.inc | 2 -- | ||
13 | 1 file changed, 2 deletions(-) | ||
14 | |||
15 | diff --git a/test/math/libm-test.inc b/test/math/libm-test.inc | ||
16 | index f50b48b..6d70a95 100644 | ||
17 | --- a/test/math/libm-test.inc | ||
18 | +++ b/test/math/libm-test.inc | ||
19 | @@ -3470,7 +3470,6 @@ logb_test (void) | ||
20 | } | ||
21 | |||
22 | |||
23 | -#if 0 | ||
24 | static void | ||
25 | lround_test (void) | ||
26 | { | ||
27 | @@ -3605,7 +3604,6 @@ llround_test (void) | ||
28 | |||
29 | END (llround); | ||
30 | } | ||
31 | -#endif | ||
32 | |||
33 | static void | ||
34 | modf_test (void) | ||
35 | -- | ||
36 | 2.1.4 | ||
37 | |||
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-Provide-an-alias-to-_obstack_free.patch b/meta/recipes-core/uclibc/uclibc-git/0001-Provide-an-alias-to-_obstack_free.patch deleted file mode 100644 index 30b443f592..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/0001-Provide-an-alias-to-_obstack_free.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 06e4fe64bbd01f16ee84da161b8e1a61e73b4cdb Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexey Neyman <aneyman@lynx.com> | ||
3 | Date: Thu, 31 Mar 2016 13:02:47 -0700 | ||
4 | Subject: [PATCH] Provide an alias to _obstack_free | ||
5 | |||
6 | GDB 7.11 does not build if compiled against uclibc-ng (1.0.12 was used, | ||
7 | but the problematic code exists in 1.0.13 as well). The reason is that | ||
8 | GDB release includes its own obstack implementation, but elides the code | ||
9 | if <gnu-versions.h> declares a compatible obstack implementation in | ||
10 | libc. uclibc-ng does claim compatible obstack interface (GDB expects | ||
11 | version 2, but accepts version 1 if sizeof(int) == sizeof(size_t)), | ||
12 | however, uclibc-ng does not provide the _obstack_free symbol that is a | ||
13 | part of the interface (glibc does provide this symbol). This later | ||
14 | causes a link failure. | ||
15 | |||
16 | The attached patch makes uclibc-ng enables an alias _obstack_free -> | ||
17 | obstack_free. | ||
18 | |||
19 | Signed-off-by: Alexey Neyman <stilor@att.net> | ||
20 | --- | ||
21 | Upstream-Status: Backport | ||
22 | |||
23 | libc/misc/gnu/obstack.c | 2 -- | ||
24 | 1 file changed, 2 deletions(-) | ||
25 | |||
26 | diff --git a/libc/misc/gnu/obstack.c b/libc/misc/gnu/obstack.c | ||
27 | index 38cfd83..6acc567 100644 | ||
28 | --- a/libc/misc/gnu/obstack.c | ||
29 | +++ b/libc/misc/gnu/obstack.c | ||
30 | @@ -385,11 +385,9 @@ obstack_free (struct obstack *h, void *obj) | ||
31 | abort (); | ||
32 | } | ||
33 | |||
34 | -# if 0 | ||
35 | /* Older versions of libc used a function _obstack_free intended to be | ||
36 | called by non-GCC compilers. */ | ||
37 | strong_alias (obstack_free, _obstack_free) | ||
38 | -# endif | ||
39 | |||
40 | int | ||
41 | _obstack_memory_used (struct obstack *h) | ||
42 | -- | ||
43 | 2.8.1 | ||
44 | |||
diff --git a/meta/recipes-core/uclibc/uclibc-git/locale.cfg b/meta/recipes-core/uclibc/uclibc-git/locale.cfg deleted file mode 100644 index fc66435163..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/locale.cfg +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | UCLIBC_HAS_LOCALE=y | ||
2 | UCLIBC_HAS_XLOCALE=y | ||
3 | UCLIBC_BUILD_MINIMAL_LOCALE=y | ||
diff --git a/meta/recipes-core/uclibc/uclibc-git/obstack.cfg b/meta/recipes-core/uclibc/uclibc-git/obstack.cfg deleted file mode 100644 index 36bf9d6e4a..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/obstack.cfg +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | UCLIBC_HAS_OBSTACK=y | ||
diff --git a/meta/recipes-core/uclibc/uclibc-git/uClibc.distro b/meta/recipes-core/uclibc/uclibc-git/uClibc.distro deleted file mode 100644 index 7785ce8bfc..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/uClibc.distro +++ /dev/null | |||
@@ -1,195 +0,0 @@ | |||
1 | # | ||
2 | # General Library Settings | ||
3 | # | ||
4 | # HAVE_NO_PIC is not set | ||
5 | # DOPIC is not set | ||
6 | # HAVE_NO_SHARED is not set | ||
7 | # ARCH_HAS_NO_LDSO is not set | ||
8 | HAVE_SHARED=y | ||
9 | # FORCE_SHAREABLE_TEXT_SEGMENTS is not set | ||
10 | LDSO_LDD_SUPPORT=y | ||
11 | LDSO_CACHE_SUPPORT=y | ||
12 | # LDSO_PRELOAD_FILE_SUPPORT is not set | ||
13 | LDSO_BASE_FILENAME="ld.so" | ||
14 | # UCLIBC_STATIC_LDCONFIG is not set | ||
15 | LDSO_RUNPATH=y | ||
16 | UCLIBC_CTOR_DTOR=y | ||
17 | LDSO_GNU_HASH_SUPPORT=y | ||
18 | # HAS_NO_THREADS is not set | ||
19 | UCLIBC_HAS_THREADS=y | ||
20 | UCLIBC_HAS_THREADS_NATIVE=y | ||
21 | PTHREADS_DEBUG_SUPPORT=y | ||
22 | # LINUXTHREADS_OLD is not set | ||
23 | UCLIBC_HAS_LFS=y | ||
24 | # MALLOC is not set | ||
25 | # MALLOC_SIMPLE is not set | ||
26 | MALLOC_STANDARD=y | ||
27 | MALLOC_GLIBC_COMPAT=y | ||
28 | UCLIBC_DYNAMIC_ATEXIT=y | ||
29 | COMPAT_ATEXIT=y | ||
30 | UCLIBC_SUSV3_LEGACY=y | ||
31 | UCLIBC_SUSV3_LEGACY_MACROS=y | ||
32 | UCLIBC_SUSV4_LEGACY=y | ||
33 | UCLIBC_HAS_SHADOW=y | ||
34 | UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y | ||
35 | UCLIBC_HAS___PROGNAME=y | ||
36 | UNIX98PTY_ONLY=y | ||
37 | ASSUME_DEVPTS=y | ||
38 | UCLIBC_HAS_LIBUTIL=y | ||
39 | UCLIBC_HAS_TM_EXTENSIONS=y | ||
40 | UCLIBC_HAS_TZ_CACHING=y | ||
41 | UCLIBC_HAS_TZ_FILE=y | ||
42 | UCLIBC_HAS_TZ_FILE_READ_MANY=y | ||
43 | UCLIBC_TZ_FILE_PATH="/etc/TZ" | ||
44 | |||
45 | # | ||
46 | # Advanced Library Settings | ||
47 | # | ||
48 | UCLIBC_PWD_BUFFER_SIZE=256 | ||
49 | UCLIBC_GRP_BUFFER_SIZE=256 | ||
50 | |||
51 | # | ||
52 | # Networking Support | ||
53 | # | ||
54 | UCLIBC_HAS_IPV6=y | ||
55 | UCLIBC_HAS_RPC=y | ||
56 | UCLIBC_HAS_FULL_RPC=y | ||
57 | UCLIBC_HAS_REENTRANT_RPC=y | ||
58 | UCLIBC_USE_NETLINK=y | ||
59 | UCLIBC_SUPPORT_AI_ADDRCONFIG=y | ||
60 | |||
61 | UCLIBC_HAS_BSD_RES_CLOSE=y | ||
62 | UCLIBC_HAS_LIBRESOLV_STUB=y | ||
63 | UCLIBC_HAS_LIBNSL_STUB=y | ||
64 | |||
65 | # | ||
66 | # String and Stdio Support | ||
67 | # | ||
68 | UCLIBC_HAS_STRING_GENERIC_OPT=y | ||
69 | UCLIBC_HAS_STRING_ARCH_OPT=y | ||
70 | UCLIBC_HAS_CTYPE_TABLES=y | ||
71 | UCLIBC_HAS_CTYPE_SIGNED=y | ||
72 | # UCLIBC_HAS_CTYPE_UNSAFE is not set | ||
73 | UCLIBC_HAS_CTYPE_CHECKED=y | ||
74 | # UCLIBC_HAS_CTYPE_ENFORCED is not set | ||
75 | UCLIBC_HAS_WCHAR=y | ||
76 | # UCLIBC_HAS_LOCALE is not set | ||
77 | UCLIBC_HAS_HEXADECIMAL_FLOATS=y | ||
78 | UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y | ||
79 | UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 | ||
80 | UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y | ||
81 | # UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set | ||
82 | # UCLIBC_HAS_STDIO_BUFSIZ_256 is not set | ||
83 | # UCLIBC_HAS_STDIO_BUFSIZ_512 is not set | ||
84 | # UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set | ||
85 | # UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set | ||
86 | UCLIBC_HAS_STDIO_BUFSIZ_4096=y | ||
87 | # UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set | ||
88 | UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y | ||
89 | # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set | ||
90 | # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set | ||
91 | # UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set | ||
92 | UCLIBC_HAS_STDIO_GETC_MACRO=y | ||
93 | UCLIBC_HAS_STDIO_PUTC_MACRO=y | ||
94 | UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y | ||
95 | # UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set | ||
96 | UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y | ||
97 | UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y | ||
98 | UCLIBC_HAS_PRINTF_M_SPEC=y | ||
99 | UCLIBC_HAS_ERRNO_MESSAGES=y | ||
100 | # UCLIBC_HAS_SYS_ERRLIST is not set | ||
101 | UCLIBC_HAS_SIGNUM_MESSAGES=y | ||
102 | # UCLIBC_HAS_SYS_SIGLIST is not set | ||
103 | UCLIBC_HAS_GNU_GETOPT=y | ||
104 | UCLIBC_HAS_GNU_GETSUBOPT=y | ||
105 | |||
106 | # | ||
107 | # Big and Tall | ||
108 | # | ||
109 | UCLIBC_HAS_REGEX=y | ||
110 | # UCLIBC_HAS_REGEX_OLD is not set | ||
111 | UCLIBC_HAS_FNMATCH=y | ||
112 | # UCLIBC_HAS_FNMATCH_OLD is not set | ||
113 | UCLIBC_HAS_WORDEXP=y | ||
114 | UCLIBC_HAS_NFTW=y | ||
115 | UCLIBC_HAS_FTW=y | ||
116 | UCLIBC_HAS_FTS=y | ||
117 | UCLIBC_HAS_GLOB=y | ||
118 | UCLIBC_HAS_GNU_GLOB=y | ||
119 | |||
120 | # | ||
121 | # Library Installation Options | ||
122 | # | ||
123 | SHARED_LIB_LOADER_PREFIX="/lib" | ||
124 | RUNTIME_PREFIX="/" | ||
125 | DEVEL_PREFIX="//usr" | ||
126 | MULTILIB_DIR="lib" | ||
127 | |||
128 | # | ||
129 | # Security options | ||
130 | # | ||
131 | # UCLIBC_BUILD_PIE is not set | ||
132 | # UCLIBC_HAS_ARC4RANDOM is not set | ||
133 | # HAVE_NO_SSP is not set | ||
134 | # UCLIBC_HAS_SSP is not set | ||
135 | UCLIBC_BUILD_RELRO=y | ||
136 | UCLIBC_BUILD_NOW=y | ||
137 | UCLIBC_BUILD_NOEXECSTACK=y | ||
138 | |||
139 | # | ||
140 | # uClibc development/debugging options | ||
141 | # | ||
142 | CROSS_COMPILER_PREFIX="" | ||
143 | UCLIBC_EXTRA_CFLAGS="" | ||
144 | # DODEBUG is not set | ||
145 | # DODEBUG_PT is not set | ||
146 | # DOSTRIP is not set | ||
147 | # DOASSERTS is not set | ||
148 | # SUPPORT_LD_DEBUG is not set | ||
149 | # SUPPORT_LD_DEBUG_EARLY is not set | ||
150 | # UCLIBC_MALLOC_DEBUGGING is not set | ||
151 | UCLIBC_HAS_BACKTRACE=y | ||
152 | WARNINGS="-Wall" | ||
153 | # EXTRA_WARNINGS is not set | ||
154 | # DOMULTI is not set | ||
155 | # UCLIBC_MJN3_ONLY is not set | ||
156 | |||
157 | # math stuff for perl | ||
158 | DO_C99_MATH=y | ||
159 | UCLIBC_HAS_LONG_DOUBLE_MATH=y | ||
160 | UCLIBC_HAS_FENV=y | ||
161 | UCLIBC_LINUX_MODULE_26=y | ||
162 | # UCLIBC_LINUX_MODULE_24 is not set | ||
163 | UCLIBC_LINUX_SPECIFIC=y | ||
164 | UCLIBC_HAS_REALTIME=y | ||
165 | UCLIBC_HAS_ADVANCED_REALTIME=y | ||
166 | UCLIBC_HAS_NETWORK_SUPPORT=y | ||
167 | UCLIBC_HAS_SOCKET=y | ||
168 | UCLIBC_HAS_BSD_ERR=y | ||
169 | UCLIBC_HAS_SYSLOG=y | ||
170 | UCLIBC_HAS_CRYPT=y | ||
171 | UCLIBC_HAS_CRYPT_IMPL=y | ||
172 | UCLIBC_HAS_GNU_ERROR=y | ||
173 | UCLIBC_HAS_PTY=y | ||
174 | UCLIBC_BSD_SPECIFIC=y | ||
175 | UCLIBC_HAS_EPOLL=y | ||
176 | UCLIBC_HAS_FLOATS=y | ||
177 | |||
178 | # The below option is needed for ARM since depending | ||
179 | # upong what intruction set is chosen this will be | ||
180 | # enabled. As such it is harmless and will be punted | ||
181 | # by menuconfig for other arches. | ||
182 | |||
183 | # COMPILE_IN_THUMB_MODE is not set | ||
184 | |||
185 | # needed by shadow | ||
186 | UCLIBC_HAS_UTMP=y | ||
187 | # needed by systemd | ||
188 | UCLIBC_HAS_UTMPX=y | ||
189 | UCLIBC_LINUX_MODULE_26=y | ||
190 | UCLIBC_HAS_RESOLVER_SUPPORT=y | ||
191 | # needed for LTP | ||
192 | UCLIBC_SUSV4_LEGACY=y | ||
193 | UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y | ||
194 | DO_XSI_MATH=y | ||
195 | UCLIBC_SV4_DEPRECATED=y | ||
diff --git a/meta/recipes-core/uclibc/uclibc-git/uClibc.machine b/meta/recipes-core/uclibc/uclibc-git/uClibc.machine deleted file mode 100644 index 595f444dac..0000000000 --- a/meta/recipes-core/uclibc/uclibc-git/uClibc.machine +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Version: 0.9.32-git | ||
4 | # Mon Jul 19 01:34:29 2010 | ||
5 | # | ||
6 | # | ||
7 | # Using ELF file format | ||
8 | # | ||
9 | FORCE_OPTIONS_FOR_ARCH=y | ||
10 | ARCH_HAS_MMU=y | ||
11 | ARCH_USE_MMU=y | ||
12 | KERNEL_HEADERS="/usr/include" | ||
13 | HAVE_DOT_CONFIG=y | ||
14 | |||
diff --git a/meta/recipes-core/uclibc/uclibc-initial_git.bb b/meta/recipes-core/uclibc/uclibc-initial_git.bb deleted file mode 100644 index c937ccb108..0000000000 --- a/meta/recipes-core/uclibc/uclibc-initial_git.bb +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | SECTION = "base" | ||
2 | require uclibc.inc | ||
3 | require uclibc-git.inc | ||
4 | |||
5 | DEPENDS = "linux-libc-headers ncurses-native virtual/${TARGET_PREFIX}gcc-initial libgcc-initial kern-tools-native" | ||
6 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | ||
7 | |||
8 | PACKAGES = "" | ||
9 | PACKAGES_DYNAMIC = "" | ||
10 | |||
11 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" | ||
12 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" | ||
13 | |||
14 | do_install() { | ||
15 | # Install initial headers into the cross dir | ||
16 | make PREFIX=${D} DEVEL_PREFIX=${prefix}/ RUNTIME_PREFIX=/ \ | ||
17 | install_headers install_startfiles | ||
18 | |||
19 | # add links to linux-libc-headers: final uclibc build need this. | ||
20 | for t in linux asm asm-generic; do | ||
21 | if [ -d ${D}${includedir}/$t ]; then | ||
22 | rm -rf ${D}${includedir}/$t | ||
23 | fi | ||
24 | ln -sf ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/ | ||
25 | done | ||
26 | |||
27 | } | ||
28 | do_compile() { | ||
29 | : | ||
30 | } | ||
31 | |||
32 | do_siteconfig () { | ||
33 | : | ||
34 | } | ||
35 | |||
36 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/" | ||
diff --git a/meta/recipes-core/uclibc/uclibc-package.inc b/meta/recipes-core/uclibc/uclibc-package.inc deleted file mode 100644 index 439f84e4f9..0000000000 --- a/meta/recipes-core/uclibc/uclibc-package.inc +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | # Ensure the uclibc-dev package is processed before uclibc-staticdev to allow | ||
2 | # *_nonshared.a libraries to be packaged in the uclibc-dev package. | ||
3 | PACKAGES = "ldd uclibc-utils uclibc-gconv uclibc-thread-db uclibc-argp uclibc-backtrace uclibc-libcrypt uclibc-libintl uclibc-libnsl uclibc-libresolv uclibc-libm uclibc-libdl uclibc-libutil uclibc-libpthread uclibc-librt ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | ||
4 | |||
5 | FILES_uclibc-libcrypt = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so" | ||
6 | FILES_uclibc-libintl = "${base_libdir}/libintl*.so.* ${base_libdir}/libintl-*.so" | ||
7 | FILES_uclibc-libnsl = "${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so" | ||
8 | FILES_uclibc-libresolv = "${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so" | ||
9 | FILES_uclibc-libm = "${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so" | ||
10 | FILES_uclibc-libdl = "${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so" | ||
11 | FILES_uclibc-libutil = "${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so" | ||
12 | FILES_uclibc-libpthread = "${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so" | ||
13 | FILES_uclibc-librt = "${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so" | ||
14 | |||
15 | FILES_ldd = "${bindir}/ldd" | ||
16 | FILES_uclibc-utils = "${bindir} ${sbindir}" | ||
17 | FILES_uclibc-gconv = "${libdir}/gconv" | ||
18 | FILES_uclibc-thread-db = "${base_libdir}/libthread_db*" | ||
19 | FILES_uclibc-argp = "${base_libdir}/libuargp-*.so ${base_libdir}/libuargp*.so.*" | ||
20 | FILES_uclibc-backtrace = "${base_libdir}/libubacktrace-*.so ${base_libdir}/libubacktrace*.so.*" | ||
21 | |||
22 | # The last line (gdb and lib1) is for uclinux-uclibc builds | ||
23 | uclibc_baselibs = "${base_libdir}/ld*.so.* ${base_libdir}/ld*.so \ | ||
24 | ${base_libdir}/libc*.so.* ${base_libdir}/libuClibc-*.so \ | ||
25 | ${libdir}/libc.gdb ${libdir}/libc ${base_libdir}/lib1.so \ | ||
26 | " | ||
27 | FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" | ||
28 | FILES_${PN}-dev += "\ | ||
29 | ${libdir}/lib*.so \ | ||
30 | ${libdir}/*_nonshared.a \ | ||
31 | ${libdir}/[S]*crt[1in].o \ | ||
32 | ${libdir}/crtreloc*.o \ | ||
33 | ${includedir}/*.h ${includedir}/*/*.h \ | ||
34 | " | ||
35 | FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \ | ||
36 | ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale" | ||
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc deleted file mode 100644 index 02cd8d1ae5..0000000000 --- a/meta/recipes-core/uclibc/uclibc.inc +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | SUMMARY = "C library for embedded systems" | ||
2 | DESCRIPTION = "The name uClibc is an abbreviation for 'the \ | ||
3 | microcontroller C library'. For simplicity, uClibc is pronounced \ | ||
4 | 'yew-see-lib-see'. The goal of uClibc is to provide as much \ | ||
5 | functionality as possible in a small amount of space, and it is intended \ | ||
6 | primarily for embedded use. It is also highly configurable in supported \ | ||
7 | features, at the cost of ABI differences for different configurations. \ | ||
8 | uClibc has been designed from the ground up to be a C library for \ | ||
9 | embedded Linux. It is NOT compatible with binaries linked against glibc." | ||
10 | |||
11 | LICENSE = "LGPLv2.1+" | ||
12 | SECTION = "libs" | ||
13 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
14 | file://COPYING.LIB.boilerplate;md5=aaddeadcddeb918297e0e4afc52ce46f \ | ||
15 | file://${S}/test/regex/testregex.c;beginline=1;endline=31;md5=234efb227d0a40677f895e4a1e26e960" | ||
16 | |||
17 | require uclibc-config.inc | ||
18 | |||
19 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" | ||
20 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" | ||
21 | |||
22 | # siteconfig.bbclass runs configure which needs a working compiler | ||
23 | # For the compiler to work we need a working libc yet libc isn't | ||
24 | # in the sysroots directory at this point. This means the libc.so | ||
25 | # linker script won't work as the --sysroot setting isn't correct. | ||
26 | # Here we create a hacked up libc linker script and pass in the right | ||
27 | # flags to let configure work. Ugly. | ||
28 | EXTRASITECONFIG = "CFLAGS='${CFLAGS} -Wl,-L${WORKDIR}/site_config_libc -L${WORKDIR}/site_config_libc -L${SYSROOT_DESTDIR}${libdir} -L${SYSROOT_DESTDIR}${base_libdir} -Wl,-L${SYSROOT_DESTDIR}${libdir} -Wl,-L${SYSROOT_DESTDIR}${base_libdir}'" | ||
29 | siteconfig_do_siteconfig_gencache_prepend = " \ | ||
30 | mkdir -p ${WORKDIR}/site_config_libc; \ | ||
31 | cp ${SYSROOT_DESTDIR}${libdir}/libc.so ${WORKDIR}/site_config_libc; \ | ||
32 | sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \ | ||
33 | " | ||
34 | |||
35 | # For now, we will skip building of a gcc package if it is a uclibc one | ||
36 | # and our build is not a uclibc one, and we skip a glibc one if our build | ||
37 | # is a uclibc build. | ||
38 | COMPATIBLE_HOST = ".*-uclibc.*" | ||
39 | |||
40 | INHIBIT_DEFAULT_DEPS = "1" | ||
41 | |||
42 | # There appears to be a parallel race in uclibc: | ||
43 | # GEN /extra/locale/locale_collate.h | ||
44 | # xargs: ../..//extra/locale/gen_collate: Text file busy | ||
45 | # make[1]: *** [../..//extra/locale/locale_collate.h] Error 126 | ||
46 | PARALLEL_MAKE = "" | ||
47 | |||
48 | # do_stage barfs on a CC with whitespace, therefore put the 'HOST_CC_ARCH' in | ||
49 | # the CFLAGS (when building the utils). | ||
50 | OEMAKE_NO_CC = "'STRIPTOOL=true' 'LD=${LD}'" | ||
51 | EXTRA_OEMAKE = "${OEMAKE_NO_CC} \ | ||
52 | 'HOSTCC=${BUILD_CC}' \ | ||
53 | 'HOST_CFLAGS=${BUILD_CFLAGS}' \ | ||
54 | 'CC=${CC}' \ | ||
55 | ARCH=${UCLIBC_ARCH} \ | ||
56 | V=1" | ||
57 | |||
58 | EXTRA_OEMAKE_task_do_package = "${OEMAKE_NO_CC}" | ||
59 | |||
60 | # -O<n> -fno-omit-frame-pointer ends up with GCC ICE on thumb as reported | ||
61 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44860 | ||
62 | # | ||
63 | CFLAGS_remove_arm = "-fno-omit-frame-pointer" | ||
64 | UCLIBC_EXTRA_CFLAGS = "${@oe_filter_out('(-I\S+|-i\S+)', '${CFLAGS}', d)}" | ||
65 | |||
66 | # Doesn't compile in MIPS16e mode due to use of hand-written | ||
67 | # assembly | ||
68 | MIPS_INSTRUCTION_SET_pn-uclibc = "mips" | ||
69 | |||
70 | configmangle = '/^KERNEL_HEADERS/d; \ | ||
71 | /^RUNTIME_PREFIX/d; \ | ||
72 | /^DEVEL_PREFIX/d; \ | ||
73 | /^SHARED_LIB_LOADER_PREFIX/d; \ | ||
74 | /^UCLIBC_EXTRA_CFLAGS/d; \ | ||
75 | s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \ | ||
76 | ${@["","s,.*COMPILE_IN_THUMB_MODE.*,COMPILE_IN_THUMB_MODE=y,;"][d.getVar("ARM_INSTRUCTION_SET", True) == "thumb"]} \ | ||
77 | ${@["","s,.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y,;"][d.getVar("USE_NLS", True) == "yes"]} \ | ||
78 | ${@["","s,.*LDSO_GNU_HASH_SUPPORT.*,# LDSO_GNU_HASH_SUPPORT is not set,;"][d.getVar("TARGET_ARCH", True) in ['mips', 'mipsel', 'mips64', 'mips64el', 'avr32']]} \ | ||
79 | /^CROSS/d; \ | ||
80 | /^TARGET_ARCH=/d; \ | ||
81 | /^TARGET_/s,^\([^=]*\).*,# \1 is not set,g; \ | ||
82 | s,^DOSTRIP.*,# DOSTRIP is not set,g; \ | ||
83 | /_[EO]*ABI/d; \ | ||
84 | /HAS_FPU/d; \ | ||
85 | ${@["","s,.*MULTILIB_DIR.*,MULTILIB_DIR=\"${baselib}\",;"][d.getVar("baselib", True) != "lib"]} \ | ||
86 | ' | ||
87 | OE_FEATURES = "${@features_to_uclibc_conf(d)}" | ||
88 | OE_DEL = "${@features_to_uclibc_del(d)}" | ||
89 | python () { | ||
90 | if "${OE_DEL}": | ||
91 | d.setVar('configmangle_append', "${OE_DEL}" + "\n") | ||
92 | |||
93 | if "${OE_FEATURES}": | ||
94 | d.setVar('configmangle_append', | ||
95 | "/^### DISTRO FEATURES$/a\\\n%s\n\n" % | ||
96 | ("\\n".join((d.expand("${OE_FEATURES}").split("\n"))))) | ||
97 | d.setVar('configmangle_append', | ||
98 | "/^### CROSS$/a\\\n%s\n" % | ||
99 | ("\\n".join(["CROSS_COMPILER_PREFIX=\"${TARGET_PREFIX}\"", | ||
100 | "UCLIBC_EXTRA_CFLAGS=\"${UCLIBC_EXTRA_CFLAGS}\"", | ||
101 | "KERNEL_HEADERS=\"${STAGING_INCDIR}\"", | ||
102 | "RUNTIME_PREFIX=\"/\"", | ||
103 | "DEVEL_PREFIX=\"/${prefix}\"", | ||
104 | "SHARED_LIB_LOADER_PREFIX=\"/lib\"", | ||
105 | ]) | ||
106 | )) | ||
107 | d.setVar('configmangle_append', | ||
108 | "/^### TGT$/a\\\nTARGET_ARCH=\"%s\"\\nTARGET_%s=y\n" % | ||
109 | ("${UCLIBC_ARCH}", "${UCLIBC_ARCH}")) | ||
110 | d.setVar('configmangle_append', | ||
111 | "/^### FPU$/a\\\n%s\n\n" % (["UCLIBC_HAS_FPU=y","# UCLIBC_HAS_FPU is not set"][d.getVar('TARGET_FPU', True) in [ 'soft' ]])) | ||
112 | if "${UCLIBC_ENDIAN}": | ||
113 | d.setVar('configmangle_append', | ||
114 | "/^### ABI$/a\\\nARCH_WANTS_%s_ENDIAN=y\n\n" % ("${UCLIBC_ENDIAN}")) | ||
115 | if "${UCLIBC_ABI}": | ||
116 | d.setVar('configmangle_append', | ||
117 | "/^### ABI$/a\\\nCONFIG_%s=y\n\n" % ("${UCLIBC_ABI}")) | ||
118 | } | ||
119 | |||
120 | python do_patch_append() { | ||
121 | import subprocess | ||
122 | subprocess.call("ln -sf ${STAGING_INCDIR}/linux ${S}/include/linux", shell=True) | ||
123 | subprocess.call("ln -sf ${STAGING_INCDIR}/asm ${S}/include/asm", shell=True) | ||
124 | } | ||
125 | |||
126 | do_configure() { | ||
127 | rm -f ${S}/.config | ||
128 | |||
129 | # OpenEmbedded splits the uClibc.config in two parts: | ||
130 | # uClibc.machine, uClibc.distro | ||
131 | echo "### uClibc.machine ###" >${S}/merged.config | ||
132 | cat ${WORKDIR}/uClibc.machine >>${S}/merged.config | ||
133 | echo "### uClibc.distro ###" >>${S}/merged.config | ||
134 | cat ${WORKDIR}/uClibc.distro >>${S}/merged.config | ||
135 | echo "### CROSS" >>${S}/merged.config | ||
136 | echo "### TGT" >>${S}/merged.config | ||
137 | echo "### MMU" >>${S}/merged.config | ||
138 | echo "### FPU" >>${S}/merged.config | ||
139 | echo "### ABI" >>${S}/merged.config | ||
140 | echo "### DISTRO FEATURES" >>${S}/merged.config | ||
141 | |||
142 | # Mangle the resulting .config depending on OE variables | ||
143 | sed -i -e '${configmangle}' ${S}/merged.config | ||
144 | cp ${S}/merged.config .config | ||
145 | merge_config.sh -r -n -m .config ${@" ".join(find_cfgs(d))} | ||
146 | cml1_do_configure | ||
147 | |||
148 | } | ||
149 | |||
150 | do_install() { | ||
151 | oe_runmake PREFIX=${D} install | ||
152 | rm -rf ${D}${includedir}/iconv.h | ||
153 | } | ||
154 | |||
155 | # build ldd, ldconfig and friends but only for full uclibc | ||
156 | do_install_append_pn-uclibc () { | ||
157 | oe_runmake PREFIX=${D} "SSP_ALL_CFLAGS=${TARGET_LINK_HASH_STYLE}" -C utils utils_install | ||
158 | } | ||
159 | |||
diff --git a/meta/recipes-core/uclibc/uclibc_git.bb b/meta/recipes-core/uclibc/uclibc_git.bb deleted file mode 100644 index fd02b3d612..0000000000 --- a/meta/recipes-core/uclibc/uclibc_git.bb +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | require uclibc.inc | ||
2 | require uclibc-package.inc | ||
3 | require uclibc-git.inc | ||
4 | |||
5 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" | ||
6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" | ||
7 | |||
8 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" | ||
9 | |||
10 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | ||
11 | virtual/${TARGET_PREFIX}gcc-initial \ | ||
12 | virtual/${TARGET_PREFIX}libc-initial \ | ||
13 | linux-libc-headers ncurses-native \ | ||
14 | libgcc-initial kern-tools-native" | ||
15 | |||
16 | RDEPENDS_${PN}-dev = "linux-libc-headers-dev" | ||
17 | RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev" | ||
18 | # uclibc does not really have libsegfault but then using the one from glibc is also not | ||
19 | # going to work. So we pretend that we have it to make bitbake not pull other recipes | ||
20 | # to satisfy this dependency for the images/tasks | ||
21 | |||
22 | RPROVIDES_${PN} += "libsegfault rtld(GNU_HASH)" | ||