Elvis' master thesis
get linux src untar linux src make mrproper make randconfig ./run.sh linuxdir
$ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.19.tar.xz
$ wget https://www.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.0-rc1.tar.xz
$ wget http://www.busybox.net/downloads/busybox-1.23.1.tar.bz2
- python3 (maybe older versions will work)
- bash (installed on almost all distributions)
- gcc-multilib (or build-tools, or whatever it is called in your distribution)
- IMPORTANT - I got some compile errors, where it stated, that I needed
lgcc
. The interweb told me, I should have usedgcc-multilib
in- stead ofgcc
. So I have now changed it togcc-multilib
- IMPORTANT - I got some compile errors, where it stated, that I needed
- GNU time (not built-in bash-time or zsh-time, but GNU time)
lzop
- I got some compilation errors stating that I neededlzop
(It is a kind of compression format (think zip-zop))
I will probably create a virtual machine with all the dependencies resolved, and post a link here, for everyone to download. But it is not ready yet.
In Arch:
# pacman -Syu --needed base-devel
# pacman -Syu python time gcc-multilib lzop
This script will untar, and compile a tarbal.
saves following files:
- config (the configuration, k)
- analyzer (which analyzer program did the errorcheck)
- buginfo (the results from the analyzer)
- time (a result of running GNU time)
This is a python script, because I had no idea how to use sets, and arrays in
Bash. I have made the script for Python 3.x but it is possible it will work for
earlier versions as well.
This script looks through a specific buginfo
file, and scrapes all the info
into an aggregate, which can easilier be read.
This script only generates the configurations. It does not compile the whole thing. This is handy for getting large amounts of random configurations.
I have tried to make a script, that checks how random make randconfig
has
been. It prints the ratio of ENABLED/DISABLED/MODULE/NOT_SET of some feature
that you specify in the bottom of this file.
GNU time is used in stead of the normal built-in time command. This is mainly to make it easier to get the time into a specific file, and in the format we want.