diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 09:53:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-06 09:53:25 +0100 |
commit | 2288ec26df8e47d9b699e46eecd05eb3570f03a0 (patch) | |
tree | 1d204b70e027fd737f6aae1b7308ae959f5bd0b9 /toolchain | |
parent | 45e7808c41c2e66266f738aa5eff70ce18cc04ac (diff) | |
parent | 667bc9e981847a1d117a2fc7110948075a268bdd (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/eglibc/Makefile | 3 | ||||
-rw-r--r-- | toolchain/musl/Makefile | 13 | ||||
-rw-r--r-- | toolchain/musl/Makefile.inc | 4 | ||||
-rw-r--r-- | toolchain/musl/patches/i386-syscall.patch | 27 |
4 files changed, 18 insertions, 29 deletions
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index 12f193c3b..276b468d4 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -8,6 +8,9 @@ include ../rules.mk ifeq ($(ADK_LINUX_SPARC),y) TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS)) endif +ifeq ($(ADK_LINUX_MICROBLAZE),y) +TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS)) +endif # ssp not supported TARGET_CFLAGS_LIBC:= $(filter-out -fstack-protector,$(TARGET_CFLAGS_LIBC)) diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile index 2cce6bebc..44ee75775 100644 --- a/toolchain/musl/Makefile +++ b/toolchain/musl/Makefile @@ -12,6 +12,12 @@ endif ifeq ($(CPU_ARCH),mips64el) REAL_GNU_TARGET_NAME:= $(subst mips64el,mips,$(REAL_GNU_TARGET_NAME)) endif +ifeq ($(CPU_ARCH),mips64) +REAL_GNU_TARGET_NAME:= $(subst mips64,mips,$(REAL_GNU_TARGET_NAME)) +endif +ifeq ($(CPU_ARCH),microblazeel) +REAL_GNU_TARGET_NAME:= $(subst microblazeel,microblaze,$(REAL_GNU_TARGET_NAME)) +endif $(WRKBUILD)/.headers: (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \ @@ -24,6 +30,13 @@ $(WRKBUILD)/.headers: touch $@ $(WRKBUILD)/.compiled: + # reconfigure musl, otherwise linking with libgcc or libgcc_eh is disabled + $(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) clean + (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \ + ./configure --prefix=/usr \ + --target=$(REAL_GNU_TARGET_NAME) \ + --disable-gcc-wrapper \ + ) $(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) all touch $@ diff --git a/toolchain/musl/Makefile.inc b/toolchain/musl/Makefile.inc index 37bd7a981..506280532 100644 --- a/toolchain/musl/Makefile.inc +++ b/toolchain/musl/Makefile.inc @@ -2,8 +2,8 @@ # material, please see the LICENCE file in the top-level directory. PKG_NAME:= musl -PKG_VERSION:= 0.9.14 +PKG_VERSION:= 0.9.15 PKG_RELEASE:= 1 -PKG_MD5SUM:= bfb685695aa942e64c63170589e575b2 +PKG_MD5SUM:= 06f590a38c85722ee9343db2416425f4 PKG_SITES:= http://www.musl-libc.org/releases/ DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/toolchain/musl/patches/i386-syscall.patch b/toolchain/musl/patches/i386-syscall.patch deleted file mode 100644 index d70701983..000000000 --- a/toolchain/musl/patches/i386-syscall.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -Nur musl-0.9.14.orig/arch/i386/bits/syscall.h musl-0.9.14/arch/i386/bits/syscall.h ---- musl-0.9.14.orig/arch/i386/bits/syscall.h 2013-09-23 23:01:11.000000000 +0200 -+++ musl-0.9.14/arch/i386/bits/syscall.h 2013-10-22 10:36:44.000000000 +0200 -@@ -333,6 +333,11 @@ - #define __NR_inotify_init1 332 - #define __NR_preadv 333 - #define __NR_pwritev 334 -+#define __NR_rt_tgsigqueueinfo 335 -+#define __NR_perf_event_open 336 -+#define __NR_recvmmsg 337 -+#define __NR_fanotify_init 338 -+#define __NR_fanotify_mark 339 - #define __NR_prlimit64 340 - #define __NR_name_to_handle_at 341 - #define __NR_open_by_handle_at 342 -@@ -683,6 +688,11 @@ - #define SYS_inotify_init1 332 - #define SYS_preadv 333 - #define SYS_pwritev 334 -+#define SYS_rt_tgsigqueueinfo 335 -+#define SYS_perf_event_open 336 -+#define SYS_recvmmsg 337 -+#define SYS_fanotify_init 338 -+#define SYS_fanotify_mark 339 - #define SYS_prlimit64 340 - #define SYS_name_to_handle_at 341 - #define SYS_open_by_handle_at 342 |