diff --git a/Makefile b/Makefile index d22da9561..8a35bfb4c 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SHELL := /bin/sh -OUTPUT_MAKE_DEBUG ?= TRUE +OUTPUT_MAKE_DEBUG ?= FALSE CMD_MSG_ON ?= FALSE ifeq ($(CMD_MSG_ON), TRUE) diff --git a/Readme.md b/Readme.md index 605a7e8e2..2f3e6fa54 100755 --- a/Readme.md +++ b/Readme.md @@ -5,6 +5,7 @@
 .                               安全网关产品源代码主目录
 ├── Common                      产品侧和平台侧公共头文件
+├── docs                        Readme 文档相关资源存放目录
 ├── Platform                    平台侧工程目录
 │   ├── build                   平台侧系统构建 Makefile 目录
 |   ├── common                  平台侧公共代码目录
@@ -113,3 +114,24 @@ _install
   
 sGATE_GIT_TAGS 记录了当前源码在 gitlab 服务器上面的分支信息  
 sGATE_GIT_VERS 记录了当前源码在 gitlab 服务器上面的版本信息  
+
+#### 7. Windows 开发环境搭建
+
++ 解决 git 出错的方法
+
+1. 下载并安装 [cygwin](http://cygwin.com/install.html)  
+2. 运行安装程序 ![安装界面](./docs/img/1.PNG)
+3. 在源选择界面中按图添加163源 ![源设置界面](./docs/img/6.PNG)
+4. 安装包选择界面中选择中 git 等必要命令(如果没有选择上,以后可以运行安装工具继续选择) ![选择软件包](./docs/img/7.PNG)
+5. 点击 下一步 等待安装完成 ![安装完成](./docs/img/10.PNG)
+6. 运行 cygwin,执行以下代码(假设 Windows 目录为 E:\my_projects)拉取服务器代码
+cd /cygdrive/e/my_projects
+git clone [git@git.komect.net:ISG/secogateway.git](http://git.komect.net/ISG/secogateway)
+7. 如果 git clone 报错,请设置 ssh key
+8. git clone 完成后,可以从 E:\my_projects\secogateway 访问文件。警告文件为内核源码,可以忽略 ![](./docs/img/A1.PNG)
+9. 可以将 kernel/linux-4.14.83/ 添加到本地 .gitignore 文件中,但不要将 .gitignore 文件提交到服务器
+
++ 将服务器目录映射到 Windows 驱动器
+1. 安装 [sshfs](https://github.com/billziss-gh/sshfs-win)
+2. 安装 [WinFsp](http://www.secfs.net/winfsp/)
+3. 参照 [WinFsp文档](http://www.secfs.net/winfsp/) 进行配置
diff --git a/docs/img/1.PNG b/docs/img/1.PNG
new file mode 100644
index 000000000..68c657289
Binary files /dev/null and b/docs/img/1.PNG differ
diff --git a/docs/img/10.PNG b/docs/img/10.PNG
new file mode 100644
index 000000000..1429bd1ff
Binary files /dev/null and b/docs/img/10.PNG differ
diff --git a/docs/img/6.PNG b/docs/img/6.PNG
new file mode 100644
index 000000000..feeb63a21
Binary files /dev/null and b/docs/img/6.PNG differ
diff --git a/docs/img/7.PNG b/docs/img/7.PNG
new file mode 100644
index 000000000..b16e3e6c4
Binary files /dev/null and b/docs/img/7.PNG differ
diff --git a/docs/img/A1.PNG b/docs/img/A1.PNG
new file mode 100644
index 000000000..2b7d8eed4
Binary files /dev/null and b/docs/img/A1.PNG differ