Skip to content

Commit 0c44329

Browse files
committed
readme: multiple versions of a package in gem5
1 parent 350a4c4 commit 0c44329

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5191,6 +5191,26 @@ If none of those methods are flexible enough for you, create a new package as fo
51915191
+
51925192
if you make any changes to that package after the initial build: <<rebuild>>
51935193

5194+
=== Build multiple versions of the same package
5195+
5196+
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.
5197+
5198+
One simple approach is to simply use two checkouts of this repository.
5199+
5200+
While <<ccache>> does help with this, it still does not necessarily make compilation instantaneous due to configuration file reading.
5201+
5202+
One alternative is to do:
5203+
5204+
....
5205+
./build KERNEL_MODULE_VERSION=mybranch
5206+
....
5207+
5208+
and now you can see that a new version of `kernel_module` was built and put inside the image:
5209+
5210+
....
5211+
ls out/x86_64/buildroot/build/kernel_module-mybranch
5212+
....
5213+
51945214
=== BR2_TARGET_ROOTFS_EXT2_SIZE
51955215

51965216
When adding new large package to the Buildroot root filesystem, it may fail with the message:

0 commit comments

Comments
 (0)