[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/openvpn/makefile b/ap/app/openvpn/makefile
new file mode 100755
index 0000000..30cb7fd
--- /dev/null
+++ b/ap/app/openvpn/makefile
@@ -0,0 +1,36 @@
+
+include $(COMMON_BASE_MK)
+
+NAME=openvpn
+SRC_DIR=openvpn-2.4.4
+INSTALL_DIR=$(APP_DIR)/$(NAME)/install
+BUILD_DIR=build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = --host=arm-linux
+CONFIG_OPTS += --with-sysroot=$(CROSS_COMPILE_SYSROOT)
+CONFIG_OPTS += --enable-lzo 
+CONFIG_OPTS += --disable-plugin-auth-pam
+CONFIG_OPTS += --disable-plugin-down-root
+CONFIG_OPTS += --with-crypto-library=openssl
+
+CFLAGS += -I$(LIB_DIR)/liblzo/install/include
+CFLAGS += -I$(LIB_DIR)/libssl/install/include
+
+LDFLAGS += -L$(LIB_DIR)/liblzo/install/lib
+LDFLAGS += -L$(LIB_DIR)/libssl/install/lib
+LDFLAGS += -ldl
+
+all: $(GEN_MAKEFILE)
+	make -C build all
+	make -C build install
+
+$(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:
+	$(ROMFSINST) $(INSTALL_DIR)/sbin/openvpn /sbin/openvpn