Comtrol eCos User Manual

Page 336

Advertising
background image

Chapter 11. Porting Guide

interrupt stack when exceptions are generated."

}

The latter option is accompanied by a special build rule that extends the generic ROM monitor build rule in the
common HAL:

cdl_option CYGBLD_BUILD_GDB_STUBS {

display "Build GDB stub ROM image"

default_value 0

requires { CYG_HAL_STARTUP == "ROM" }

requires CYGSEM_HAL_ROM_MONITOR

requires CYGBLD_BUILD_COMMON_GDB_STUBS

requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS

requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT

requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT

requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT

requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM

no_define

description "

This option enables the building of the GDB stubs for the

board. The common HAL controls takes care of most of the

build process, but the final conversion from ELF image to

binary data is handled by the platform CDL, allowing

relocation of the data if necessary."

make -priority 320 {

<

PREFIX

>

/bin/gdb_module.bin :

<

PREFIX

>

/bin/gdb_module.img

$(OBJCOPY) -O binary $< $@

}

}

Most platforms support RedBoot, and some options are needed to configure for RedBoot.

cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {

display

"Redboot HAL options"

flavor

none

no_define

parent

CYGPKG_REDBOOT

active_if

CYGPKG_REDBOOT

description

"

This option lists the target’s requirements for a valid Redboot

configuration."

cdl_option CYGBLD_BUILD_REDBOOT_BIN {

display

"Build Redboot ROM binary image"

active_if

CYGBLD_BUILD_REDBOOT

default_value 1

no_define

description "This option enables the conversion of the Redboot ELF

image to a binary image suitable for ROM programming."

make -priority 325 {

<

PREFIX

>

/bin/redboot.bin :

<

PREFIX

>

/bin/redboot.elf

$(OBJCOPY) --strip-debug $< $(@:.bin=.img)

232

Advertising