Export (0) Print
Expand All

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.

  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.

Community Additions

ADD
Show:
© 2014 Microsoft