mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-07 01:04:40 +02:00
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:
committed by
Khem Raj
parent
0ba537b927
commit
a501ae452a
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
10
recipes-devtools/openocd/openocd_riscv.bb
Normal file
10
recipes-devtools/openocd/openocd_riscv.bb
Normal 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"
|
||||
Reference in New Issue
Block a user