openocd: Use the RISC-V fork

We currently need the RISC-V fork of OpenOCD.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Alistair Francis
2019-11-12 13:32:59 -08:00
committed by Khem Raj
parent 0ba537b927
commit a501ae452a
5 changed files with 22 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ DEFAULTTUNE = "riscv32"
require conf/machine/include/qemu.inc
require conf/machine/include/riscv/tune-riscv.inc
PREFERRED_VERSION_openocd-native = "riscv"
PREFERRED_VERSION_openocd = "riscv"
# qemuboot options
QB_MACHINE = "-machine virt"
QB_DEFAULT_KERNEL = "fw_payload.elf"

View File

@@ -6,6 +6,9 @@ DEFAULTTUNE = "riscv64"
require conf/machine/include/qemu.inc
require conf/machine/include/riscv/tune-riscv.inc
PREFERRED_VERSION_openocd-native = "riscv"
PREFERRED_VERSION_openocd = "riscv"
# qemuboot options
QB_MACHINE = "-machine virt"
QB_DEFAULT_KERNEL = "fw_payload.elf"

View File

@@ -12,6 +12,9 @@ KERNEL_IMAGETYPE = "fitImage"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
PREFERRED_VERSION_openocd-native = "riscv"
PREFERRED_VERSION_openocd = "riscv"
EXTRA_IMAGEDEPENDS += "opensbi"
RISCV_SBI_PLAT = "sifive/fu540"

View File

@@ -6,6 +6,9 @@ require conf/machine/include/riscv/qemuriscv.inc
DEFAULTTUNE = "riscv32"
PREFERRED_VERSION_openocd-native = "riscv"
PREFERRED_VERSION_openocd = "riscv"
# u-boot doesn't compile, error: "can't link hard-float modules with soft-float modules"
# EXTRA_IMAGEDEPENDS += "u-boot"
# UBOOT_MACHINE = "qemu-riscv32_smode_defconfig"

View File

@@ -0,0 +1,10 @@
require recipes-devtools/openocd/openocd_git.bb
SRC_URI = " \
git://github.com/riscv/riscv-openocd.git;protocol=http;branch=riscv;name=openocd \
git://repo.or.cz/r/git2cl.git;protocol=http;destsuffix=tools/git2cl;name=git2cl \
git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \
git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \
"
SRCREV_openocd = "f93ede5401c711e55d9852986aa399c0318efb22"