Specifications
File Name Function
summary.html Provides summary documentation of the BSP. You can view summary.html
with a hypertext viewer or browser, such as Internet Explorer or Firefox. If
you change the settings.bsp file, the SBT updates the summary.html file the
next time you regenerate the BSP.
Makefile Used to build the BSP. The targets you use most often are all and clean.
The all target (the default) builds the libhal_bsp.a library file. The clean
target removes all files created by a make of the all target.
public.mk A makefile fragment that provides public information about the BSP. The file
is designed to be included in other makefiles that use the BSP, such as
application makefiles. The BSP Makefile also includes public.mk.
mem_init.mk A makefile fragment that defines targets and rules to convert an application
executable file to memory initialization files (.dat, .hex, and .flash) for HDL
simulation, flash programming, and initializable FPGA memories. The mem_
init.mk file is designed to be included by an application makefile. For usage,
refer to any application makefile generated when you run the SBT.
For more information, refer to the “Creating Memory Initialization Files”
chapter.
alt_sys_init.c Used to initialize device driver instances and software packages.
system.h Contains the C declarations describing the BSP memory map and other
system information needed by software applications.
linker.h Contains information about the linker memory layout. system.h includes the
linker.h file.
linker.x Contains a linker script for the GNU linker.
memory.gdb Contains memory region declarations for the GNU debugger.
obj Directory Contains the object code files for all source files in the BSP. The hierarchy of
the BSP source files is preserved in the obj directory.
libhal_bsp.a
Library
Contains the HAL BSP library. All object files are combined in the library
file.
The HAL BSP library file is always named libhal_bsp.a.
Note: For more information about the alt_sys_init.c and system.h files, refer to the Developing Programs
Using the Hardware Abstraction Layer chapter of the Nios II Software Developer’s Handbook.
Related Information
• Creating Memory Initialization Files on page 4-10
• Developing Programs Using the Hardware Abstraction Layer on page 6-1
NII5V2
2015.05.14
HAL BSP After Generating Files
4-23
Nios II Software Build Tools
Altera Corporation
Send Feedback