Skip to content

Commit d9df5f9

Browse files
committed
readme: document ./build -s
1 parent 0c44329 commit d9df5f9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5195,9 +5195,13 @@ if you make any changes to that package after the initial build: <<rebuild>>
51955195

51965196
If you are comparing two versions of have a package that takes considerable time to build, one on each branch, you may want to keep two builds around to make things even faster.
51975197

5198-
One simple approach is to simply use two checkouts of this repository.
5198+
One simple approach is to simply use two checkouts of this repository, or to use the `-s` option:
51995199

5200-
While <<ccache>> does help with this, it still does not necessarily make compilation instantaneous due to configuration file reading.
5200+
....
5201+
./build -s mybranch
5202+
....
5203+
5204+
While <<ccache>> does help to speed up the full rebuild, it still does not necessarily make compilation instantaneous due to configuration file reading.
52015205

52025206
One alternative is to do:
52035207

build-usage.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
|`-p` | |Pass extra arguments to the `rootfs_post_build_script`.
2929
|`-S` | |Don't build QEMU with SDL support.
3030
Graphics such as X11 won't work, only the terminal.
31+
|`-s` | |Add a custom suffix to the build.
32+
E.g., doing `./build -s mysuf` puts all the build output
33+
into `out/x86_64-mysuf`. This allows keep multiple builds around
34+
when you checkout between branches.
3135
|`-v` | |Do a verbose build.
3236
|===
3337

0 commit comments

Comments
 (0)