Creating and Building Oal.exe (Windows Embedded CE 6.0)
1/5/2010
If you are following the Microsoft-recommended migration path for Windows Embedded CE 6.0, Oal.exe now contains the startup code and the OEM adaptation layer (OAL) implementation.
OEMs no longer need to build Kern.exe because the kernel has been moved into Kernel.dll. Instead, OEMs need to rename their target to Oal.exe.
To create and build Oal.exe
Modify the sources file in the Oal\OalExe folder.
To do this, do the following tasks:
Change TARGETNAME from kern to oal.
Add the following TARGETLIBS:
$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\NkLdr.lib $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\OEMMain.lib
Replace Nk.lib with NkStub.lib.
Replace the call to OalKitlStart in OEMInit with the following function call:
KITLIoctl(IOCTL_KITL_STARTUP, NULL, 0, NULL, 0, NULL);
Replace all calls to EdbgOutputDebugString with KITLOutputDebugString.
Rename SC_GetTickCount to OEMGetTickCount.
Run the
blddemo -q
command.Run the
build
command and verify that Oal.exe builds without any errors.
See Also
Tasks
How to Separate the Kernel, OAL, and KITL