zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/build/uClibc/libnsl/Makefile b/ap/build/uClibc/libnsl/Makefile
new file mode 100644
index 0000000..c8dc9b4
--- /dev/null
+++ b/ap/build/uClibc/libnsl/Makefile
@@ -0,0 +1,13 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+top_srcdir=../
+top_builddir=../
+include $(top_builddir)Rules.mak
+all: libs
+include Makefile.in
+include $(top_srcdir)Makerules
diff --git a/ap/build/uClibc/libnsl/Makefile.in b/ap/build/uClibc/libnsl/Makefile.in
new file mode 100644
index 0000000..333c490
--- /dev/null
+++ b/ap/build/uClibc/libnsl/Makefile.in
@@ -0,0 +1,53 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+subdirs += libnsl
+
+CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
+
+LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libnsl.so := -Wl,--dsbt-index=6
+LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc)
+
+LIBS-libnsl.so := $(LIBS)
+
+libnsl_FULL_NAME := libnsl-$(VERSION).so
+
+libnsl_DIR := $(top_srcdir)libnsl
+libnsl_OUT := $(top_builddir)libnsl
+
+libnsl_SRC := $(libnsl_DIR)/nsl.c
+libnsl_OBJ := $(patsubst $(libnsl_DIR)/%.c,$(libnsl_OUT)/%.o,$(libnsl_SRC))
+
+ifeq ($(DOPIC),y)
+libnsl-a-y := $(libnsl_OBJ:.o=.os)
+else
+libnsl-a-y := $(libnsl_OBJ)
+endif
+libnsl-so-y := $(libnsl_OBJ:.o=.os)
+
+lib-a-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.a
+lib-so-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.so
+objclean-y += CLEAN_libnsl
+
+ifeq ($(DOPIC),y)
+$(top_builddir)lib/libnsl.so: $(top_builddir)lib/libnsl.a $(libc.depend)
+else
+$(top_builddir)lib/libnsl.so: $(libnsl_OUT)/libnsl_so.a $(libc.depend)
+endif
+ $(call link.so,$(libnsl_FULL_NAME),$(ABI_VERSION))
+
+$(libnsl_OUT)/libnsl_so.a: $(libnsl-so-y)
+ $(Q)$(RM) $@
+ $(do_ar)
+
+$(top_builddir)lib/libnsl.a: $(libnsl-a-y)
+ $(Q)$(INSTALL) -d $(dir $@)
+ $(Q)$(RM) $@
+ $(do_ar)
+
+CLEAN_libnsl:
+ $(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)
diff --git a/ap/build/uClibc/libnsl/nsl.c b/ap/build/uClibc/libnsl/nsl.c
new file mode 100644
index 0000000..37d5b93
--- /dev/null
+++ b/ap/build/uClibc/libnsl/nsl.c
@@ -0,0 +1,17 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * libnsl for uClibc
+ *
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <features.h>
+
+void __stub2(void);
+void __stub2(void)
+{
+ return;
+}
+link_warning (__stub2, "the `libnsl' library is a stub. Do you really need it?")