From 0c44329b0ea3f782f4ab1e6fd83b176c3fec49f1 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 18 May 2018 16:33:16 +0100 Subject: [PATCH] readme: multiple versions of a package in gem5 --- README.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.adoc b/README.adoc index 5aa0b92..eb7283a 100644 --- a/README.adoc +++ b/README.adoc @@ -5191,6 +5191,26 @@ If none of those methods are flexible enough for you, create a new package as fo + if you make any changes to that package after the initial build: <> +=== Build multiple versions of the same package + +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. + +One simple approach is to simply use two checkouts of this repository. + +While <> does help with this, it still does not necessarily make compilation instantaneous due to configuration file reading. + +One alternative is to do: + +.... +./build KERNEL_MODULE_VERSION=mybranch +.... + +and now you can see that a new version of `kernel_module` was built and put inside the image: + +.... +ls out/x86_64/buildroot/build/kernel_module-mybranch +.... + === BR2_TARGET_ROOTFS_EXT2_SIZE When adding new large package to the Buildroot root filesystem, it may fail with the message: