Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
d62d68f7
Commit
d62d68f7
authored
May 24, 2022
by
Antoine Kaufmann
Browse files
sim/external/gem5: add GEM5_VARIANT variable to pick between building opt/fast
parent
60b71633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sims/external/rules.mk
sims/external/rules.mk
+2
-3
No files found.
sims/external/rules.mk
View file @
d62d68f7
...
...
@@ -24,6 +24,7 @@ include mk/subdir_pre.mk
QEMU_IMG
:=
$(d)
qemu/build/qemu-img
QEMU
:=
$(d)
qemu/build/qemu-system-x86_64
GEM5_VARIANT ?=
fast
external
:
$(d)gem5/ready $(d)qemu/ready $(d)ns-3/ready $(d)femu/ready
.PHONY
:
external
...
...
@@ -32,9 +33,7 @@ $(d)gem5:
git clone https://github.com/simbricks/gem5.git
$@
$(d)gem5/ready
:
$(d)gem5
+cd
$<
&&
scons build/X86/gem5.opt
CCFLAGS
=
"-I
$(
abspath
$(lib_dir)
)
"
\
-j
`
nproc
`
+cd
$<
&&
scons build/X86/gem5.fast
CCFLAGS
=
"-I
$(
abspath
$(lib_dir)
)
"
\
+cd
$<
&&
scons build/X86/gem5.
$(GEM5_VARIANT)
CCFLAGS
=
"-I
$(
abspath
$(lib_dir)
)
"
\
-j
`
nproc
`
touch
$@
...
...
Write
Preview
Markdown
is supported
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