Friday, January 25, 2013

Keep your WINCE (WINCEROOT) tree clean!


Hi folks,

are you all too familiar with following scenario:

You work on multiple Windows Embedded Compact projects, sometimes for multiple customers at the same time. Each project requires a different BSP and OSDesign; sometimes 3rdParty or Platform\Common components are affected as well. It only gets more complicated when you need to work with different QFEs

How do you keep your WINCE tree clean? Do you have multiple virtual machines – one for each customer/project?

Here is a different solution:

Instead of installing the BSPs, OSDesigns, etc. directly in your WINCE tree, try linking them instead:
1.       Keep all your BSP files together in one folder (e.g. C:\BSP\<BSP_name>) NOTE: As in the WINCE tree no spaces are allowed in the path.
2.       Write a batch file (same location as 1.) to link all BSP related folders to you WINCE tree:
mklink /J C:\WINCE700\OSDesigns %~dp0OSDesigns
mklink /J C:\WINCE700\OSDesigns\<MyOSDesign> %~dp0OSDesigns\<MyOSDesign>
mklink /J C:\WINCE700\PLATFORM\<MyBPS> %~dp0PLATFORM\<MyBSP>
3.       Write a batch file (same location as 1. and 2.) to unlink all BSP related folder from your WINCE tree:
rmdir C:\WINCE700\OSDesigns\<MyOSDesign>
rmdir C:\WINCE700\OSDesigns
rmdir C:\WINCE700\PLATFORM\<MyBPS>

Now you can work on any BSP you like while keeping your WINCE tree clean!

Have fun!

No comments:

Post a Comment