Build simulator on Windows (Visual Studio)

UFFS (>1.2.0) source code tree structure:

.
|-- doc
`-- src
|-- emu ---> NAND flash simulation, helper codes.
|-- example ---> Example codes
|-- inc
| `-- uffs
|-- uffs ---> UFFS core sources
`-- utils ---> simulator utility



From v1.2.0, UFFS use 'cmake' to generate Makefiles or project files for compile the simulator.

'cmake' can be downloaded from here: http://www.cmake.org/cmake/resources/software.html

When installing 'cmake', choose "Add cmake to System PATH".

Check out UFFS source codes from SF.net:

  svn co https://uffs.svn.sourceforge.net/svnroot/uffs/trunk uffs-trunk


Create a 'build' dir along with uffs-trunk:


Enter 'build' dir, and run "cmake ..\uffs-trunk" to create project files:


(Make sure that your cl.exe is in PATH).

Cmake will generate project files for you:



Now, you can open "uffs.dsw" with Visual Studio:



Set "mkuffs" project as active project, then compile/run it.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章