代码拉取完成,页面将自动刷新
同步操作将从 半斗米/RV-LINK 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
from os.path import isdir, join
Import("env")
board = env.BoardConfig()
PROJ_DIR = "$PROJECT_DIR"
env.Replace(
ASFLAGS = ["-x", "assembler-with-cpp"],
CCFLAGS=[
"-Og",
"-g",
"-Wall",
"-march=%s" % board.get("build.march"),
"-mabi=%s" % board.get("build.mabi"),
#"-mcmodel=%s" % board.get("build.mcmodel"),
"-fshort-wchar",
"-ffunction-sections",
"-fdata-sections",
"-fstack-usage",
"-msmall-data-limit=8",
],
LINKFLAGS=[
"-march=%s" % board.get("build.march"),
"-mabi=%s" % board.get("build.mabi"),
#"-mcmodel=%s" % board.get("build.mcmodel"),
"-msmall-data-limit=8",
"-nostartfiles",
"-Wl,--gc-sections",
#"-specs=nano.specs"
],
LIBS=["c_nano"]
)
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
env.Append(
CPPPATH = [
join(PROJ_DIR, "src", "app", "gdb-server"),
join(PROJ_DIR, "src", "include"),
join(PROJ_DIR, "src", "link"),
join(PROJ_DIR, "src", "target", "family", "gd32vf103"),
join(PROJ_DIR, "src", "target", "arch", "riscv"),
join(PROJ_DIR, "src"),
join(PROJ_DIR, "src", "link", "longan-nano"),
join(PROJ_DIR, "src", "link", "gd32vf103c-start"),
join(PROJ_DIR, "src", "link", "gd32vf103c-start", "GD32VF103_standard_peripheral"),
join(PROJ_DIR, "src", "link", "gd32vf103c-start", "GD32VF103_standard_peripheral", "Include"),
join(PROJ_DIR, "src", "link", "gd32vf103c-start", "GD32VF103_usbfs_driver", "Include"),
join(PROJ_DIR, "src", "link", "gd32vf103c-start", "RISCV", "drivers"),
]
)
env.Replace(
LDSCRIPT_PATH = join(PROJ_DIR, "src", "link", "gd32vf103c-start", "RISCV", "gcc", board.get("build.ldscript"))
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。