Unverified Commit 3644e330 authored by Jonathan Schwender's avatar Jonathan Schwender
Browse files

Make: Only set HERMIT_APP on aarch64



It's currently only used on aarch64 anyway.
Note: If the default x86 binary is used, rusty-loader will
fail during the assertion of the elf header machine type.
Signed-off-by: default avatarJonathan Schwender <schwenderjonathan@gmail.com>
parent 6b162daf
arch ?= x86_64
target ?= $(arch)-unknown-hermit
release ?= 0
app ?= "$(PWD)/data/hello_world"
opt :=
rdir := debug
......@@ -14,6 +13,7 @@ endif
# Todo - make this feature toggleable
ifeq ($(arch), aarch64)
opt += --features "aarch64-qemu-stdout"
export HERMIT_APP ?= "$(PWD)/data/hello_world"
endif
CONVERT :=
......@@ -42,5 +42,5 @@ docs:
loader:
@echo Build loader
HERMIT_APP=$(app) cargo build $(opt) -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem --target $(target)-loader.json
cargo build $(opt) -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem --target $(target)-loader.json
$(CONVERT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment