mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
gem5: add --gem5-build-dir for private out of tree builds
This commit is contained in:
12
README.adoc
12
README.adoc
@@ -10674,21 +10674,21 @@ git clone https://my.private.repo.com/my-fork/gem5.git gem5-internal
|
||||
gem5_internal="$(pwd)/gem5-internal"
|
||||
....
|
||||
|
||||
Next, when you want to build with this repository, use the `--gem5-source` argument to point this repository to the private source code:
|
||||
Next, when you want to build with the private repository, use the `--gem5-build-dir` and `--gem5-source-dir` argument to override our default gem5 source and build locations:
|
||||
|
||||
....
|
||||
cd linux-kernel-module-cheat
|
||||
./build-gem5 \
|
||||
--gem5-build-id private/master \
|
||||
--gem5-source "$gem5_internal" \
|
||||
--gem5-build-dir "${gem5_internal}/build" \
|
||||
--gem5-source-dir "$gem5_internal" \
|
||||
;
|
||||
./run-gem5 \
|
||||
--gem5-build-id private/master \
|
||||
--gem5-source "$gem5_internal" \
|
||||
--gem5-build-dir "${gem5_internal}/build" \
|
||||
--gem5-source-dir "$gem5_internal" \
|
||||
;
|
||||
....
|
||||
|
||||
With this setup, only the private gem5 build outputs are stored in this repository, and they are safely gitignored.
|
||||
With this setup, both your private gem5 source and build are safely kept outside of this public repository.
|
||||
|
||||
===== gem5 debug build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user