From 0be47d96b52f037d0631df96d563cc03eda85e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 22 Jan 2019 00:00:00 +0000 Subject: [PATCH] prebuilt: fix some things --- README.adoc | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.adoc b/README.adoc index a7e2cd4..dfba995 100644 --- a/README.adoc +++ b/README.adoc @@ -554,9 +554,13 @@ git submodule update --depth 1 --init --recursive "$(./getvar linux_source_dir)" ./run .... -`modules_prepare` does the minimal build procedure required on the kernel for us to be able to compile the kernel modules, and is way faster than doing a full kernel build. A full kernel build would also work however. +TODO: for now the only way to test those modules out without <> is with 9p, since we currently rely on Buildroot to manipulate the root filesystem. -This command automatically falls back to the Ubuntu packaged GCC since you don't have the Buildroot toolchain. +Command explanation: + +* `modules_prepare` does the minimal build procedure required on the kernel for us to be able to compile the kernel modules, and is way faster than doing a full kernel build. A full kernel build would also work however. +* the `./build-modules` command automatically falls back to the Ubuntu packaged GCC since you don't have the Buildroot toolchain +* `--no-modules-install` is required otherwise the `make modules_install` target we run by default fails, since the kernel wasn't built To modify the Linux kernel, build and use it as usual: @@ -12214,7 +12218,7 @@ git push --follow-tags ./release-upload .... -Do an out-of-box testing for the release candidate: +Now let's do an out-of-box testing for the release candidate: .... cd .. @@ -12222,7 +12226,18 @@ git clone https://github.com/cirosantilli/linux-kernel-module-cheat linux-kernel cd linux-kernel-module-cheat-release .... -Test <>, and then through all of the <> section in order. +Test <>. + +Clean up, and re-start from scratch: + +.... +cd .. +rm -rf linux-kernel-module-cheat-release +git clone https://github.com/cirosantilli/linux-kernel-module-cheat linux-kernel-module-cheat-release +cd linux-kernel-module-cheat-release +.... + +Go through all the other <> sections in order. Once everything looks fine, publish the release with: