Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/Makefile.riscv
Show All 20 Lines | |||||
# Which version of config(8) is required. | # Which version of config(8) is required. | ||||
%VERSREQ= 600012 | %VERSREQ= 600012 | ||||
.if !defined(S) | .if !defined(S) | ||||
S= ../../.. | S= ../../.. | ||||
.endif | .endif | ||||
.include "$S/conf/kern.pre.mk" | .include "$S/conf/kern.pre.mk" | ||||
INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include | INCLUDES+= -I$S/contrib/device-tree/include | ||||
# Set the ELF LMA to the address that OpenSBI's fw_jump jumps to. This allows | # Set the ELF LMA to the address that OpenSBI's fw_jump jumps to. This allows | ||||
# us to load the kernel with the -kernel flag in QEMU without having to embed | # us to load the kernel with the -kernel flag in QEMU without having to embed | ||||
# it inside BBL or OpenSBI's fw_payload first. | # it inside BBL or OpenSBI's fw_payload first. | ||||
# Note: For rv32 the start address is different (0x80400000). | # Note: For rv32 the start address is different (0x80400000). | ||||
# We set this value using --defsym rather than hardcoding it in ldscript.riscv | # We set this value using --defsym rather than hardcoding it in ldscript.riscv | ||||
# so that different kernel configs can override the load address. | # so that different kernel configs can override the load address. | ||||
KERNEL_LMA?= 0x80200000 | KERNEL_LMA?= 0x80200000 | ||||
Show All 24 Lines |