Platform Builder: Building Cloned Code from Multiple OS Versions

Posted by Bruce Eitman on Geeks with Blogs See other posts from Geeks with Blogs or by Bruce Eitman
Published on Mon, 22 Mar 2010 19:44:36 GMT Indexed on 2010/03/23 1:51 UTC
Read the original article Hit count: 621

Filed under:
My career goal is to delete more code than I write, and so far I have been fairly successful. But of course once in a while I need to clone code from the public tree which is contrary to my goal. Usually what follows is a new OS release.
To help reach my goal, my team uses the same BSP code for multiple versions of the OS. That means that we need to handle the cloned code so that the correct code builds for the OS version that we are working on. To handle this we could use SKIPBUILD in the sources file, but that gets messy if the cloned code contains multiple folders.
The solution that we use is to have a parent folder with subfolders that contain the OS version number. Example:
PM
|-PM500
|-PM600
|-PM700
The version number corresponds to the environment variable _WINCEOSVER. Then we have a simple DIRS file in the parent folder:
DIRS=PM$( _WINCEOSVER)
Which automatically selects the folder that goes with the OS version that we are building.
 
Copyright © 2010 – Bruce Eitman
All Rights Reserved

© Geeks with Blogs or respective owner