stubrom.perm

来自「开放源码实时操作系统源码.」· PERM 代码 · 共 27 行

PERM
27
字号
#
# A configuration for building a GDB stub ROM for the STB board.
#
# To build the ROMs:
# 1. Create a build directory and cd into it.
# 2. Run: permtest.tcl --srcdir=<sourcedir> <sourcedir>/hal/mn10300/stb/current/misc/stubrom.perm
#    Where <sourcedir> is the path to your source repository.
# 3. Run: make
# 4. Run: make -C hal/common/current/src/stubrom
#
# The file hal/common/current/src/stubrom/stubrom will be an ELF excutable of the ROM.
# Use objcopy to convert this to the appropriate format for your PROM burner.
# Enjoy!
#
# If you do not have permtest.tcl, then run the pkgconf command by hand and
# then edit pkgconf/hal.h to enable/disable the options as shown.
#

pkgconf --target=mn10300_am33 --platform=stb --startup=rom --disable-kernel --disable-uitron --disable-libc --disable-libm --disable-io --disable-io_serial --disable-wallclock --disable-watchdog

header hal.h {
	enable  CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
	enable  CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
	disable CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
	enable  CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?