Creating and Building Oal.exe

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

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

  1. Modify the sources file in the Oal\OalExe folder.

    To do this, do the following tasks:

    1. Change TARGETNAME from kern to oal.

    2. Add the following TARGETLIBS:

      $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\NkLdr.lib
      $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\OEMMain.lib
      
    3. Replace Nk.lib with NkStub.lib.

  2. Replace the call to OalKitlStart in OEMInit with the following function call:

    KITLIoctl(IOCTL_KITL_STARTUP, NULL, 0, NULL, 0, NULL);
    
  3. Replace all calls to EdbgOutputDebugString with KITLOutputDebugString.

  4. Rename SC_GetTickCount to OEMGetTickCount.

  5. Run the blddemo -q command.

  6. Run the build command and verify that Oal.exe builds without any errors.

See Also

Tasks

How to Separate the Kernel, OAL, and KITL

Concepts

BSP Migration Guide