How to build OpenWrt code (I want to create image file)

1.I installed openwrt in VirtualBox, then i access the openwrt code using WinSCP(ssh)
2. then i update the code

image

i copied all the code through winscp above image is file structure of my code which is copied through wincp

now i want to convert this into image file for installation in router

that's not going to happen ...

or use

Follow the links @frollic suggested and type all commands inside virtual box. Clone/download the source code there, using WinScp you will run into trouble regarding permissions.
The only time to use WinScp is to pull the final image to your host operating system.

EDIT: Please realize that your screenshot shows the file structure of an operating system, not the code. Where did you get this from? Did you pull it off a device!?

"i copied all the code through winscp above image is file structure of my code which is copied through wincp"

yes i pull it from virtual box through WinSCP

for what platform are you building ?

for platform x86

are you adding some software, that isn't already in openwrt ?

if not, why not simply use the existing images, or use the image builder (2nd link, online or offline)
and add any extra packages you require?

I added new luci-app-ipsec package i want to make new image out of it i just added code in Model/view /controller