Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit
Chapter Review
The Windows Embedded CE build process includes several phases and relies on a variety of build and run-time image configuration files to compile the source code and create the run-time image. It includes a compile phase to generate .exe files, static libraries, DLLs, and binary resource (.res) files for the BSP and subprojects; a Sysgen phase to filter and copy source code based on SYSGEN variables from the Public folder for catalog items selected in the OS design, and create a set of run-time image configuration files; a Release Copy phase to copy the files from the BSP and subprojects required to build the run-time image into the release directory; and finally a Make Run-time Image phase to create the run-time image from the content in the release directory according to the setting specified in .bib, .reg, .db, and .dat files.
You can examine the build process if you analyze the information that Platform Builder generates and tracks in Build.log, Build.wrn, and Build.err files. The Build.log file contains detailed information about every build command issued in each build phase. Build.wrn and Build.err contain the same information, but filtered for warnings and errors encountered during the build process. You do not need to open these text files directly in Notepad. It is more convenient to work with build status information and error messages in Visual Studio. The Output window and the Error List window provide convenient access.
Build errors can occur for a variety of reasons. The most common causes are compiler and linker errors. For example, running build commands in an incorrectly initialized build environment will lead to linker errors when environment variables that identify library directories in the Sources file point to invalid locations. Other important build configuration files, such as Dirs files and Makefile.def, can also rely on SYSGEN variables and environment variables in conditional statements and in directory paths.
Having successfully generated a run-time image, you can deploy Windows Embedded CE on a target device. This requires you to configure a device connection based on the Core Connectivity infrastructure. The final deployment step is simply to click the Attach Device command that you can find on the Target menu in Visual Studio with Platform Builder for Windows Embedded CE 6.0 R2.
It is important that you are familiar with the following configuration files, which control the Windows Embedded CE build process:
? Binary image builder (.bib) files Configure the memory layout and determine the files included in the run-time image.
? Registry (.reg) files Initialize the system registry on the target device.
? Database (.db) files Set up the default object store.
? File system (.dat) files Initialize the RAM file system layout at start time.
? Dirs files Determine which directories to include in the build process.
? Sources files Define preprocessing directives, commands, macros, and other processing instructions for the compiler and linker. Take the place of Makefile files in the Visual Studio with Platform Builder IDE.
? Makefile files Reference the default Makefile.def file and should not be edited.
- Chapter 2 Building and Deploying a Run-Time Image
- CHAPTER 18 Administering Database Services
- A Brief Review of Database Basics
- Analyzing, reviewing, and applying security templates
- Chapter 16 Developing Windows Applications
- Chapter 4 Debugging and Testing the System
- Chapter 5 Customizing a Board Support Package