From: Markos Chandras <markos.chand...@imgtec.com>

New architectures, which don't define ARCH_HAS_DEPRECATED syscalls, need
to use the new interfaces from libc/sysdeps/linux/common-no-legacy/bits/

Signed-off-by: Markos Chandras <markos.chand...@imgtec.com>
---
 Makefile.in                           | 15 +++++++++++++++
 libc/sysdeps/linux/common/Makefile.in |  4 ++++
 2 files changed, 19 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index f503928..e716f23 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -83,6 +83,12 @@ else
 export header_extra_args = -n
 endif
 HEADERS_BITS_COMMON := $(notdir $(wildcard 
$(top_srcdir)libc/sysdeps/linux/common/bits/*.h))
+ifneq ($(ARCH_HAS_DEPRECATED_SYSCALLS),y)
+HEADERS_BITS_COMMON_NO_LEGACY := $(notdir $(wildcard 
$(top_srcdir)libc/sysdeps/linux/common-no-legacy/bits/*.h))
+HEADERS_BITS_COMMON := $(filter-out 
$(HEADERS_BITS_COMMON_NO_LEGACY),$(HEADERS_BITS_COMMON))
+ALL_HEADERS_BITS_COMMON_NO_LEGACY := $(addprefix 
$(top_builddir)include/bits/,$(HEADERS_BITS_COMMON_NO_LEGACY))
+endif
+
 HEADERS_BITS_ARCH   := $(notdir $(wildcard 
$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h))
 HEADERS_BITS_SUBARCH :=
 ifneq ($(TARGET_SUBARCH),)
@@ -123,6 +129,10 @@ target-headers-sysdep := \
        $(ALL_HEADERS_SYS_ARCH) \
        $(ALL_HEADERS_BITS_PTHREAD)
 
+ifneq ($(ARCH_HAS_DEPRECATED_SYSCALLS),y)
+       target-headers-sysdep += $(ALL_HEADERS_BITS_COMMON_NO_LEGACY)
+endif
+
 $(top_builddir)include/fpu_control.h $(top_builddir)include/jmpbuf-offsets.h 
$(top_builddir)include/jmpbuf-unwind.h:
        @$(disp_ln)
        $(Q)[ -r $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(@F) ] && \
@@ -138,6 +148,11 @@ $(ALL_HEADERS_BITS_COMMON):
 $(ALL_HEADERS_BITS_ARCH):
        $(do_ln) $(call rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(@F) 
$@
 
+ifneq ($(ARCH_HAS_DEPRECATED_SYSCALLS),y)
+$(ALL_HEADERS_BITS_COMMON_NO_LEGACY):
+       $(do_ln) $(call 
rel_srcdir)libc/sysdeps/linux/common-no-legacy/bits/$(@F) $@
+endif
+
 ifneq ($(TARGET_SUBARCH),)
 $(ALL_HEADERS_BITS_SUBARCH):
        $(do_ln) $(call 
rel_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/$(@F) $@
diff --git a/libc/sysdeps/linux/common/Makefile.in 
b/libc/sysdeps/linux/common/Makefile.in
index 566722d..a226d9b 100644
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -70,6 +70,10 @@ CSRC- += $(if $(findstring =arm=,=$(TARGET_ARCH)=),vfork.c)
 CSRC- += $(if $(findstring =x86_64=,=$(TARGET_ARCH)=),vfork.c)
 #CSRC- += $(if $(findstring 
=mips=y=,=$(TARGET_ARCH)=$(CONFIG_MIPS_O32_ABI)=),waitpid.c)
 endif
+ifneq ($(ARCH_HAS_DEPRECATED_SYSCALLS),y)
+# No conversion is needed for new architectures
+CSRC- += xstatconv.c
+endif
 # stubbed out in mman.h
 CSRC-$(ARCH_USE_MMU) += msync.c
 # we need these internally: getdomainname.c
-- 
1.8.1.1


_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to