forked from Mirrors/opensbi
platform/qemu/virt: Dynamically calculate xlen
The QEMU virt machine can be either 32 or 66 bit. Don't hard code the CPU bit length and instead let the compiler determine it. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:

committed by
Anup Patel

parent
b4c72deba9
commit
5a91fec1a8
3
Makefile
3
Makefile
@@ -116,6 +116,9 @@ endif
|
||||
AS = $(CC)
|
||||
DTC = dtc
|
||||
|
||||
# Guess the compillers xlen
|
||||
OPENSBI_CC_XLEN = `expr substr \`$(CC) -dumpmachine\` 6 2`
|
||||
|
||||
# Setup compilation commands flags
|
||||
CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2
|
||||
CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
|
||||
|
Reference in New Issue
Block a user