Update Paths in Sources Files (Compact 7)
3/12/2014
The following table shows the paths that you must update in sources files for Windows Embedded Compact 7.
Description | Windows Embedded CE 6.0 path | Windows Embedded Compact 7 path |
---|---|---|
Generated Ddk, Oak, and Sdk folders |
%_TGTPROJ%\Cesysgen |
%_TGTPROJ%\Cesysgen\%_TGTPLAT%_%_TGTCPU% |
Platform Lib and Target folders |
%_TARGETPLATROOT% |
%SG_OUTPUT_ROOT%\Platform\%_TGTPLAT% |
Generated platform files |
%_TARGETPLATROOT%\Cesysgen\Files |
%SG_OUTPUT_ROOT%\Platform\%_TGTPLAT%\Files |
Platform common Lib and Target folders |
%_WINCEROOT%\Platform\Common |
%SG_OUTPUT_ROOT%\Platcomm\%_TGTPLAT% |
To update a BSP based on these new locations, you must update the Sources.cmn file for the platform, as shown in the following example.
_COMMONPUBROOT=$(SG_OUTPUTROOT)
_PLATCOMMONLIB=$(_COMMONPUBROOT)\platcomm\$(_TGTPLAT)\lib
_PLATLIB=$(_COMMONPUBROOT)\platform\$(_TGTPLAT)\lib
_RAWFILETGT=$(SG_OUTPUT_ROOT)\platform\($(_TGTPLAT)\target
If the Sources.cmn file that you are porting sets the values of _COMMONPUBROOT and _PLATCOMMONLIB, you must overwrite these settings with these new values. The _PLATLIB entry is new in Compact 7 and replaces the _TARGETPLATLIB and _TARGETPLATROOT\lib entries in all sources files under the platform directory. Globally search and replace _TARGETPLATLIB with _PLATLIB.
You must update the Makefile.inc files if they copy files to the BSP directories. For example, Eboot\makefile.inc must copy eboot binaries to the flat release directory.