Commit Graph

19 Commits

Author SHA1 Message Date
f70a935d3b readme: create linux kernel min config section 2019-02-06 00:00:05 +00:00
240ef1f431 linux: dominate defconfig
build-linux: make it more flexible to better meet the task
2019-02-06 00:00:01 +00:00
da900a579c LKMC v3.0
This is a squash commit, the unsquashed development went through many
unstable phases which would break bisects. The unsquashed branch is:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/v3.0-unsquash

The main improvement of this release was to greatly generalize the testing system.

The key addition was cli_function.py, which allows scripts such as ./run to
be transparently called either from Python or from the command line.

New tests scripts were created using this improved framework: test-baremetal
and test-user-mode.

We were lazy to port some of less important tests to the new setup, TODO's were
added, and we need comes they will be fixed. Getting started is however sacred
as usual and should work.

Other changes include:

-   gem5: update to 7fa4c946386e7207ad5859e8ade0bbfc14000d91

-   run: --tmux-args implies --tmux

-   run: add --userland-args to make userland arguments across QEMU and gem5

    Get rid of --userland-before as a consequence.

-   bring initrd and initramfs back to life

-   build-userland: create --static to make build a bit easier

-   gem5: --gem5-worktree also set --gem5-build-id

-   remove --gem5, use --emulator gem5 everywhere

    Allow passing --emulator multiple times for transparent tests selection
    just like --arch.

-   test-userland: allow selecting just a few tests

-   linux: update to v4.20

-   buildroot: update to 2018.08

    The main motivation for this was to fix the build for Ubuntu 18.10, which
    has glibc 2.28, which broke the 2018.05 build at the m4-host package with:

        #error "Please port gnulib fseeko.c to your platform!

-   getvar --type input

-   failed xen attempt, refactor timer, failed svc attempt, aarch64 use gicv3

-   build-doc: exit 1 on error, add to release testing

-   build: add --apt option to make things easier on other distros

-   build-linux: --no-modules-install
2019-01-22 00:00:00 +00:00
d569854ae1 kernel: add section about /proc/version
Customize user, host and date
2018-12-05 00:00:00 +00:00
f8d9514e79 add --custom-config-file-gem5 option to build gem5 kernels more easily 2018-12-04 15:10:02 +00:00
f03e6ea2eb linux: add --linux-source-dir to have custom linux source dir 2018-12-04 15:10:02 +00:00
fff2a60aa6 build-linux: split merge_config.sh configs line 2018-11-21 00:00:01 +00:00
454af5d03a build-linux: fix --verbose 2018-11-19 22:35:16 +00:00
72167f9f68 bring a minimal buildroot kernel modules example to life
More importantly, to make modules_install on the Linux kernel build.
2018-11-05 00:00:00 +00:00
8fb9db3931 manually encode newlines on all printed commands
This way we group key value arguments: e.g.:

    make \
    -j 8 \
    all

instead of:

    make \
    -j \
    8 \
    all

and reach CLI nirvana, while also subtly breaking several commands due to
lack of testing.
2018-11-04 00:00:01 +00:00
14f201f26d build-buildroot: remove --buildroot- prefix after build-linux split
build-linux: don't automtaically add CONFIG_, e.g. disable is done with comment.
2018-10-28 00:00:07 +00:00
98d2c83317 echo key configs as bash commands 2018-10-25 00:00:00 +00:00
21627ff9d8 Move build-buildroot linux configs to build-linux.
Needs a lot of testing, and need to cleanup readme, but seems to work.
2018-10-24 00:00:01 +00:00
3980974e91 common: factor -j --nproc to all builds 2018-10-23 00:00:02 +00:00
4b99e522dd common.run_cmd: assert result == 0 by default 2018-10-23 09:58:30 +01:00
4cd9c533b8 move all builds to components 2018-10-23 09:58:30 +01:00
2a77df690c common: create a Component class to factor out builds
Not yet finished factoring, but half way there, do for all build-
2018-10-18 00:00:00 +00:00
cb3d8929ba dry run for all common 2018-10-18 00:00:00 +00:00
bc73cebff1 Build the Linux kernel independently from Buildroot
This will allow for other types of root filesystems that don't rely on Buildroot
to be added and used in the future.

Propagate --verbose on all build scripts to see full GCC commands.

build-all: allow for neat subsets

also 9p share rootfs_overlay. TODO document.
2018-10-12 09:30:33 +01:00