Partager via


Editing the Boot Loader Sources File (Windows CE 5.0)

Send Feedback

In the process of developing a boot loader, you first create a boot loader sources file, and then you edit the sources file to add any new source files, such as Main.c and Flash.c, to the SOURCES line in the sources file.

You also add a TARGETLIBS line in the sources file to resolve any link dependencies, such as the link dependency on the BootloaderMain call in the main routine, as well as for C library references.

To add new source files to the sources file

  1. Edit the sources file you created for your boot loader.

    For information about creating a boot loader sources file, see Creating the Boot Loader Sources and Makefile Files.

  2. Add Main.c and Flash.c to the SOURCES list.

To resolve link dependencies

  1. Edit the sources file.

  2. Add a TARGETLIBS line to the sources file, which defines the libraries to be linked.

    The following code example shows the lines you need to add to the sources file to resolve the link dependency on the BootloaderMain call in the main routine:

    TARGETLIBS=$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\blcommon.lib \
               $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\fulllibc.lib
    

For more information about the sources file and the macro variables you can use, see Sources File.

See Also

How to Develop a Boot Loader

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.