mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
uclibc: add microblaze support
Latest uClibc-ng 1.0.15 release fixed open issues with microblaze shared library and linuxthreads support. gcc 4.9.3 and gcc 5.3.0 require a small patch. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
c3af591edc
commit
843fc19259
21
package/gcc/4.9.3/901-microblaze-uclibc.patch
Normal file
21
package/gcc/4.9.3/901-microblaze-uclibc.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Add dynamic linker support for uClibc
|
||||||
|
|
||||||
|
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||||
|
|
||||||
|
diff -Nur gcc-4.9.3.orig/gcc/config/microblaze/linux.h gcc-4.9.3/gcc/config/microblaze/linux.h
|
||||||
|
--- gcc-4.9.3.orig/gcc/config/microblaze/linux.h 2016-06-04 21:21:09.430646655 +0200
|
||||||
|
+++ gcc-4.9.3/gcc/config/microblaze/linux.h 2016-06-04 21:21:44.596003509 +0200
|
||||||
|
@@ -36,10 +36,13 @@
|
||||||
|
|
||||||
|
#undef MUSL_DYNAMIC_LINKER
|
||||||
|
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-microblaze" MUSL_DYNAMIC_LINKER_E ".so.1"
|
||||||
|
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
|
||||||
|
#if DEFAULT_LIBC == LIBC_MUSL
|
||||||
|
#define DYNAMIC_LINKER MUSL_DYNAMIC_LINKER
|
||||||
|
+#elif DEFAULT_LIBC == LIBC_UCLIBC
|
||||||
|
+#define DYNAMIC_LINKER UCLIBC_DYNAMIC_LINKER
|
||||||
|
#else
|
||||||
|
#define DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
|
||||||
|
#endif
|
24
package/gcc/5.3.0/892-microblaze-uclibc.patch
Normal file
24
package/gcc/5.3.0/892-microblaze-uclibc.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Add dynamic linker support for uClibc
|
||||||
|
|
||||||
|
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||||
|
|
||||||
|
diff -Nur gcc-5.3.0.orig/gcc/config/microblaze/linux.h gcc-5.3.0/gcc/config/microblaze/linux.h
|
||||||
|
--- gcc-5.3.0.orig/gcc/config/microblaze/linux.h 2015-05-28 16:08:19.000000000 +0200
|
||||||
|
+++ gcc-5.3.0/gcc/config/microblaze/linux.h 2016-05-13 09:21:01.579262885 +0200
|
||||||
|
@@ -28,7 +28,15 @@
|
||||||
|
#undef TLS_NEEDS_GOT
|
||||||
|
#define TLS_NEEDS_GOT 1
|
||||||
|
|
||||||
|
-#define DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
|
+
|
||||||
|
+#if DEFAULT_LIBC == LIBC_UCLIBC
|
||||||
|
+#define DYNAMIC_LINKER UCLIBC_DYNAMIC_LINKER
|
||||||
|
+#else
|
||||||
|
+#define DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#undef SUBTARGET_EXTRA_SPECS
|
||||||
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
|
{ "dynamic_linker", DYNAMIC_LINKER }
|
@ -59,14 +59,14 @@ choice
|
|||||||
config BR2_PTHREADS
|
config BR2_PTHREADS
|
||||||
bool "linuxthreads"
|
bool "linuxthreads"
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS
|
select BR2_TOOLCHAIN_HAS_THREADS
|
||||||
depends on BR2_m68k || BR2_arm || BR2_armeb || BR2_xtensa
|
depends on BR2_m68k || BR2_microblaze || BR2_arm || BR2_armeb || BR2_xtensa
|
||||||
|
|
||||||
config BR2_PTHREADS_NATIVE
|
config BR2_PTHREADS_NATIVE
|
||||||
bool "Native POSIX Threading (NPTL)"
|
bool "Native POSIX Threading (NPTL)"
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS
|
select BR2_TOOLCHAIN_HAS_THREADS
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
depends on !BR2_m68k
|
depends on !BR2_m68k && !BR2_microblaze
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_PTHREAD_DEBUG
|
config BR2_PTHREAD_DEBUG
|
||||||
@ -121,6 +121,7 @@ config BR2_UCLIBC_TARGET_ARCH
|
|||||||
default "arc" if BR2_arcle || BR2_arceb
|
default "arc" if BR2_arcle || BR2_arceb
|
||||||
default "arm" if BR2_arm || BR2_armeb
|
default "arm" if BR2_arm || BR2_armeb
|
||||||
default "m68k" if BR2_m68k
|
default "m68k" if BR2_m68k
|
||||||
|
default "microblaze" if BR2_microblaze
|
||||||
default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
||||||
default "powerpc" if BR2_powerpc
|
default "powerpc" if BR2_powerpc
|
||||||
default "sh" if BR2_sh
|
default "sh" if BR2_sh
|
||||||
|
@ -24,13 +24,13 @@ choice
|
|||||||
prompt "C library"
|
prompt "C library"
|
||||||
default BR2_TOOLCHAIN_UCLIBC
|
default BR2_TOOLCHAIN_UCLIBC
|
||||||
default BR2_TOOLCHAIN_BUILDROOT_GLIBC if BR2_aarch64 || BR2_aarch64_be \
|
default BR2_TOOLCHAIN_BUILDROOT_GLIBC if BR2_aarch64 || BR2_aarch64_be \
|
||||||
|| BR2_microblaze || BR2_powerpc64
|
|| BR2_powerpc64
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
||||||
bool "uClibc"
|
bool "uClibc"
|
||||||
select BR2_TOOLCHAIN_USES_UCLIBC
|
select BR2_TOOLCHAIN_USES_UCLIBC
|
||||||
depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \
|
depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \
|
||||||
BR2_bfin || BR2_i386 || BR2_m68k || \
|
BR2_bfin || BR2_i386 || BR2_m68k || BR2_microblaze || \
|
||||||
BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
|
BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
|
||||||
BR2_powerpc || BR2_sh2a || BR2_sh4 || BR2_sh4eb || \
|
BR2_powerpc || BR2_sh2a || BR2_sh4 || BR2_sh4eb || \
|
||||||
BR2_sparc || BR2_xtensa || BR2_x86_64
|
BR2_sparc || BR2_xtensa || BR2_x86_64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user