From 025cbf0168afd0e6d5f0ab6ecb297e2c69f4d857 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 26 Sep 2017 17:25:34 -0700 Subject: kernel-dev: Moved "dirty" kernel procedure up a level This procedure needed to be pulled out of the section that was/is called "Using an Iterative Development Process". The section on how to deal with "dirty" kernel version strings is a procedure in its own right. It is now up a level. (From yocto-docs rev: cd8834fa8d77ac750b06c3367aee577c80dcc64e) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 94 ++++++++++++++------------ 1 file changed, 49 insertions(+), 45 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 310e2236f7..50e420c8d6 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -1848,6 +1848,55 @@ +
+ Working with a "Dirty" Kernel Version String + + + If you build a kernel image and the version string has a + "+" or a "-dirty" at the end, uncommitted modifications exist + in the kernel's source directory. + Follow these steps to clean up the version string: + + + Discover the Uncommitted Changes: + Go to the kernel's locally cloned Git repository + (source directory) and use the following Git command + to list the files that have been changed, added, or + removed: + + $ git status + + + + Commit the Changes: + You should commit those changes to the kernel source + tree regardless of whether or not you will save, + export, or use the changes: + + $ git add + $ git commit -s -a -m "getting rid of -dirty" + + + + Rebuild the Kernel Image: + Once you commit the changes, rebuild the kernel. + + Depending on your particular kernel development + workflow, the commands you use to rebuild the + kernel might differ. + For information on building the kernel image when + using devtool, see the + "Using devtool to Patch the Kernel" + section. + For information on building the kernel image when + using Bitbake, see the + "Using Traditional Kernel Development to Patch the Kernel" + section. + + + +
+
Using an Iterative Development Process @@ -1868,51 +1917,6 @@ "linux-yocto". -
- "-dirty" String - - - - - If kernel images are being built with "-dirty" on the - end of the version string, this simply means that - modifications in the source directory have not been committed. - - $ git status - - - - - You can use the above Git command to report modified, - removed, or added files. - You should commit those changes to the tree regardless of - whether they will be saved, exported, or used. - Once you commit the changes, you need to rebuild the kernel. - - - - To force a pickup and commit of all such pending changes, - enter the following: - - $ git add . - $ git commit -s -a -m "getting rid of -dirty" - - - - - Next, rebuild the kernel. - -
-
Generating Configuration Files -- cgit v1.2.3-54-g00ecf