Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
HermitCore
rusty-loader
Commits
8f2b492b
Commit
8f2b492b
authored
May 15, 2020
by
Stefan Lankes
Browse files
use rustc to find sysroot
afterwards use sysroot to find llvm-objcopy
parent
0d56659e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8f2b492b
...
...
@@ -16,6 +16,8 @@ RM := del
else
RM
:=
rm
-rf
endif
SYSROOT
:=
$(
shell
rustc
--print
sysroot
)
OBJCOPY
:=
$(
shell
find
$(SYSROOT)
-name
llvm-objcopy
)
.PHONY
:
all loader clean docs
...
...
@@ -31,4 +33,4 @@ docs:
loader
:
@
echo
Build loader
cargo build
-Z
build-std
=
core,alloc
$(opt)
--target
$(target)
-loader
.json
@
llvm-objcopy
--strip-debug
-O
elf32-i386 target/
$(target)
-loader
/
$(rdir)
/rusty-loader
$(OBJCOPY)
--strip-debug
-O
elf32-i386 target/
$(target)
-loader
/
$(rdir)
/rusty-loader
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment