build(tools): Enable target board selection
This commit is contained in:
parent
5a304557a7
commit
503f43d983
|
@ -17,6 +17,9 @@ DEFAULT_TARGET = "aarch64-vesper-metta"
|
||||||
# Pass TARGET env var if it does not match the default target above.
|
# Pass TARGET env var if it does not match the default target above.
|
||||||
TARGET = { value = "${DEFAULT_TARGET}", condition = { env_not_set = ["TARGET"] } }
|
TARGET = { value = "${DEFAULT_TARGET}", condition = { env_not_set = ["TARGET"] } }
|
||||||
|
|
||||||
|
# Name of the target board "rpi3" or "rpi4"
|
||||||
|
TARGET_BOARD = { value = "rpi4", condition = { env_not_set = ["TARGET_BOARD"] } }
|
||||||
|
|
||||||
# AArch64 QEMU binary
|
# AArch64 QEMU binary
|
||||||
QEMU = { value = "qemu-system-aarch64", condition = { env_not_set = ["QEMU"] } }
|
QEMU = { value = "qemu-system-aarch64", condition = { env_not_set = ["QEMU"] } }
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ env = { "QEMU_RUNNER_OPTS" = "${QEMU_SERIAL_OPTS} ${QEMU_GDB_OPTS}" }
|
||||||
[tasks.openocd]
|
[tasks.openocd]
|
||||||
dependencies = ["build", "kernel-binary"]
|
dependencies = ["build", "kernel-binary"]
|
||||||
script = [
|
script = [
|
||||||
"${OPENOCD} -f interface/jlink.cfg -f ../ocd/rpi4_target.cfg"
|
"${OPENOCD} -f interface/jlink.cfg -f ../ocd/${TARGET_BOARD}_target.cfg"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.gdb-config]
|
[tasks.gdb-config]
|
||||||
|
|
Loading…
Reference in New Issue