[Feature][MD310EU][task-view-1009] Create MD310EU project code directory
Change-Id: I57cd3c474efe4493ae8a242d7e2fa643ad8ecbde
diff --git a/lynq/MD310EU/ap/lib/libcurl/makefile b/lynq/MD310EU/ap/lib/libcurl/makefile
new file mode 100755
index 0000000..f683860
--- /dev/null
+++ b/lynq/MD310EU/ap/lib/libcurl/makefile
@@ -0,0 +1,44 @@
+
+include $(COMMON_BASE_MK)
+
+NAME=libcurl
+SRC_DIR=curl-7.54.1
+INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
+BUILD_DIR=build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = --target=arm-linux --host=arm-linux
+CONFIG_OPTS += --enable-static
+ifeq ($(CONFIG_LIBCURL_SHARE_LIB), y)
+CONFIG_OPTS += --enable-shared
+else
+CONFIG_OPTS += --disable-shared
+endif
+CONFIG_OPTS += --enable-threaded-resolver
+CONFIG_OPTS += --without-libidn --without-ssl --without-librtmp --without-gnutls --without-nss --without-libssh2 \
+ --without-zlib --without-winidn --disable-telnet --disable-tftp --disable-smtp \
+ --disable-imap --disable-pop3 --disable-rtsp --disable-ldap --disable-ldaps --disable-ipv6
+
+all: $(GEN_MAKEFILE)
+ make -C build all
+ make -C build install
+ cp -v $(SRC_DIR)/lib/curl_md5.h $(INSTALL_DIR)/include/curl/
+ cp -v $(SRC_DIR)/lib/curl_hmac.h $(INSTALL_DIR)/include/curl/
+
+$(GEN_MAKEFILE):
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
+
+clean:
+ -rm -fr $(BUILD_DIR) $(INSTALL_DIR)
+
+romfs:
+ cd $(INSTALL_DIR)/lib; \
+ for i in *.so*; do \
+ if [ -L $$i ]; then \
+ $(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \
+ elif [ -f $$i ]; then \
+ $(ROMFSINST) /lib/$$i; \
+ fi; \
+ done
+