zte's code,first commit

Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/build/uClibc/libresolv/Makefile b/ap/build/uClibc/libresolv/Makefile
new file mode 100644
index 0000000..c8dc9b4
--- /dev/null
+++ b/ap/build/uClibc/libresolv/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/libresolv/Makefile.in b/ap/build/uClibc/libresolv/Makefile.in
new file mode 100644
index 0000000..fa3c341
--- /dev/null
+++ b/ap/build/uClibc/libresolv/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 += libresolv
+
+CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS)
+
+LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libresolv.so := -Wl,--dsbt-index=7
+LDFLAGS-libresolv.so := $(LDFLAGS) $(call link.asneeded,-lc)
+
+LIBS-libresolv.so := $(LIBS)
+
+libresolv_FULL_NAME := libresolv-$(VERSION).so
+
+libresolv_DIR := $(top_srcdir)libresolv
+libresolv_OUT := $(top_builddir)libresolv
+
+libresolv_SRC := $(libresolv_DIR)/resolv.c
+libresolv_OBJ := $(patsubst $(libresolv_DIR)/%.c,$(libresolv_OUT)/%.o,$(libresolv_SRC))
+
+ifeq ($(DOPIC),y)
+libresolv-a-y := $(libresolv_OBJ:.o=.os)
+else
+libresolv-a-y := $(libresolv_OBJ)
+endif
+libresolv-so-y := $(libresolv_OBJ:.o=.os)
+
+lib-a-$(UCLIBC_HAS_LIBRESOLV_STUB)  += $(top_builddir)lib/libresolv.a
+lib-so-$(UCLIBC_HAS_LIBRESOLV_STUB) += $(top_builddir)lib/libresolv.so
+objclean-y += CLEAN_libresolv
+
+ifeq ($(DOPIC),y)
+$(top_builddir)lib/libresolv.so: $(top_builddir)lib/libresolv.a $(libc.depend)
+else
+$(top_builddir)lib/libresolv.so: $(libresolv_OUT)/libresolv_so.a $(libc.depend)
+endif
+	$(call link.so,$(libresolv_FULL_NAME),$(ABI_VERSION))
+
+$(libresolv_OUT)/libresolv_so.a: $(libresolv-so-y)
+	$(Q)$(RM) $@
+	$(do_ar)
+
+$(top_builddir)lib/libresolv.a: $(libresolv-a-y)
+	$(Q)$(INSTALL) -d $(dir $@)
+	$(Q)$(RM) $@
+	$(do_ar)
+
+CLEAN_libresolv:
+	$(do_rm) $(addprefix $(libresolv_OUT)/*., o os a)
diff --git a/ap/build/uClibc/libresolv/resolv.c b/ap/build/uClibc/libresolv/resolv.c
new file mode 100644
index 0000000..38b10ff
--- /dev/null
+++ b/ap/build/uClibc/libresolv/resolv.c
@@ -0,0 +1,18 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * libresolv 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 __stub1(void);
+void __stub1(void)
+{
+	return;
+}
+link_warning (__stub1, "the `libresolv' library is a stub.  Do you really need it?")
+