mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-27 23:15:00 +00:00
This commit adds riscv build skeleton and adds some dummy files that
prints out hello world.
To build riscv acrn.out/acrn.bin, simply:
make hypervisor \
BOARD=<any existing board> \
SCENARIO=<any existing scenario> \
ARCH=riscv
We still need to specify board and scenario as those were required by
project level makefile.
Tracked-On: #8782
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
39 lines
558 B
Plaintext
39 lines
558 B
Plaintext
ENTRY(_start)
|
|
|
|
MEMORY {
|
|
RAM : ORIGIN = 0x81000000, LENGTH = 64K
|
|
}
|
|
|
|
SECTIONS {
|
|
/* TODO: Replace hardcodes with macros defined in config header */
|
|
. = 0x81000000;
|
|
|
|
.text : {
|
|
*(.text)
|
|
*(.text.*)
|
|
*(.note.gnu.build-id)
|
|
} > RAM
|
|
|
|
.rodata : {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
} > RAM
|
|
|
|
.data : {
|
|
*(.data)
|
|
*(.data.*)
|
|
} > RAM
|
|
|
|
.bss (NOLOAD) : {
|
|
*(.bss)
|
|
*(.bss.*)
|
|
*(COMMON)
|
|
} > RAM
|
|
|
|
. = ALIGN(8);
|
|
_end = .;
|
|
|
|
. = 0x81010000;
|
|
_stack_top = .;
|
|
}
|