mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
gem5: prefix woktree branch with wt/
This commit is contained in:
@@ -6537,13 +6537,15 @@ Since we control the gem5 build however, unlike Linux which uses Buildroot, we m
|
||||
It works like this:
|
||||
|
||||
* when you don't pass the `-M` option, which is the same as the `-M default` variant, we use the source code from under the `gem5/gem5` submodule for the build
|
||||
* otherwise, if you pass `-M some-branch`, we generate a git worktree checkout under `data/gem5/some-branch`.
|
||||
* otherwise, if you pass `-M some-branch`, we generate a git worktree checkout under `data/gem5/some-branch`, with branch name `wt/some-branch`.
|
||||
+
|
||||
The initial revision for that worktree is whatever `gem5/gem5` is currently points to.
|
||||
+
|
||||
However, if the worktree already exists, we leave it untouched.
|
||||
+
|
||||
Therefore, you can safely go to that directory and edit the source there without fear that it will get deleted.
|
||||
+
|
||||
The `wt/` branch name prefix stands for `WorkTree`, and is done to allow us to checkout to a test `some-branch` branch under `gem5/gem5` and still use `-M some-branch`, without a conflict for the worktree branch.
|
||||
|
||||
All build outputs end up at: `out/common/gem5/<variant>` regardless.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user