mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 00:41:08 +00:00
2f9d430c00
This patch adds support for running Genode/Linux on the AARCH64 architecture. - The kernel-agnostic startup code (crt0) had to be extended to capture the initial stack pointer, which the Linux kernel uses to pass the process environment. This is in line with the existing startup code for x86_32 and x86_64. - The link order of the host libraries linked to lx_hybrid programs had to be adjusted such that libgcc appears at last because the other libraries depend on symbols provided by libgcc. - When using AARCH64 Linux as host, one can execute run scripts via 'make run/<script> KERNEL=linux BOARD=linux' now. Issue #4136
28 lines
734 B
Plaintext
28 lines
734 B
Plaintext
# local variable for run-tool arguments used for running scenarios in Qemu
|
|
QEMU_RUN_OPT := --include power_on/qemu --include log/qemu
|
|
|
|
# kernel to use (hw, foc, or sel4)
|
|
#KERNEL ?= hw
|
|
|
|
# board to use (rpi3, imx8q_evk, virt_qemu)
|
|
#BOARD ?= rpi3
|
|
|
|
# local variable for run-tool arguments that depend on the used board
|
|
BOARD_RUN_OPT(linux) := --include power_on/linux --include log/linux
|
|
BOARD_RUN_OPT(rpi3) := $(QEMU_RUN_OPT)
|
|
BOARD_RUN_OPT(virt_qemu) := $(QEMU_RUN_OPT)
|
|
|
|
##
|
|
## Qemu arguments, effective when using the run tool's 'power_on/qemu' back end
|
|
##
|
|
|
|
# enable GDB stub
|
|
#QEMU_OPT += -s
|
|
|
|
# use time-tested graphics backend
|
|
QEMU_OPT += -display sdl
|
|
|
|
# add kernel-specific Qemu arguments
|
|
QEMU_OPT += $(QEMU_OPT(${KERNEL}))
|
|
|