
2 Overview of a BSP
2.3 Components of a BSP
39
2
2.3.5 Required Macros
BSP macros are defined in either Makefile or config.h, with some macros defined
in both files. The following macros are required for all BSPs unless otherwise
specified:
CPU (Defined in Makefile)
The target CPU, which must be the same as for the reference BSP.
CPU_VARIANT
The target CPU variant (for example, _bcm125x for MIPS Broadcom devices).
This macro is not required for all architectures. For more information, see the
VxWorks Architecture Supplement for your target processor.
TOOL (Defined in Makefile)
The host tool chain (for example, diab), which must be the same as in the
reference BSP. Most BSPs support both the Wind River Compiler (diab) and
the Wind River GNU Compiler (gnu).
TGT_DIR (Defined in Makefile)
The path to the target directory. The default is /target.
TARGET_DIR (Defined in Makefile)
The BSP directory name.
VENDOR (Defined in Makefile)
The name of the target board manufacturer.
BOARD (Defined in Makefile)
The target board name.
ROM_TEXT_ADRS (Defined in Makefile and config.h)
The boot ROM entry address in hexadecimal notation. For most target
systems, this is set to the beginning of the flash address area. However, there
may be some hardware configurations that use an area at the start of flash for
the reset vector. In this case, the address is offset accordingly.
The offset is typically architecture-dependent. Therefore, the low-order bytes
of this macro can be copied from a reference BSP.
ROM_LINK_ADRS (Optional. Defined in Makefile and config.h)
If used, this macro specifies the boot ROM link address in hexidecimal form.
For most boards, it is set to the beginning of the flash address area. If this
address is present, the linker uses it to link the boot ROM image. Otherwise,
ROM_TEXT_ADRS is used as the link address.
Kommentare zu diesen Handbüchern