Files
linux-kernel-module-cheat/gem5
Ciro Santilli 8b5c211c22 gem5: build with ccache
CXX='ccache c++' does not work, CXX=/my/path/to/ccache/wrapper/c++
does not work, the only thing that works it to put it in your PATH.

I would rather put a wrapper that forwards to ccache in this repo to
avoid the external host dependency:

    #!/usr/bin/env bash
    ccache c++ "$@"

but then that script has to remove its directory from PATH or else
infinite recursion, and I have no patience to code that.

I considered using the ccache from Buildroot, but it does not setup the
nice /usr/lib PATH, so I gave up on that as well.
2018-06-11 18:21:11 +01:00
..
2018-03-12 03:56:18 +00:00
2018-06-11 18:21:11 +01:00
2018-02-21 10:19:35 +00:00
2018-06-10 08:57:39 +01:00
2018-03-12 03:56:18 +00:00

= gem5

We Build gem5 as a Buildroot package for the following reasons:

* if we build in tree without Buildroot, we still want to build the `m5` tool through Buildroot. But then Buildroot rsyncs the build for all archs into `output/build`, which takes quite some disk space. There seems to be no way to exclude some packages from the sync.
* it allows us to reuse Buildroot's:
** configuration system, which reduces duplication: set the gem5 package option, everything just gets built
** timestamping system, which could save a few seconds on rebuilds, since we then don't ever run `scons` when gem5 is not modified

What is preventing upstreaming to Buildroot: a minimal kernel config like the ones QEMU has.