DevBuildMrProper

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-04-06 16:14:35
Size: 796
Editor: cpe-75-180-27-10
Comment:
Revision 3 as of 2010-07-06 18:34:40
Size: 777
Editor: 85-210-145-82
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<Include(KernelTeamHeader)>> == When I try to build the kernel I get an error telling me to run "make mrproper" what should I do? ==
Line 3: Line 3:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents>>|| This implies there are left over files in your tree which are not meant to be in a clean tree. A clean source tree is required for an ''out of tree'' (make O=<directory> style) build, which is what the Ubuntu packaging uses. The most common cause is the creation of the {{{include/config}}} directory. You can try removing this:
Line 5: Line 5:
This page provides help for commonly asked questions and issues encountered when maintaining the kernel.     {{{
rmdir include/config
}}}
Line 7: Line 9:
== 1. When I try to build the kernel I get an error telling me to run "make mrproper" ==
Generally, running "git clean -f -d" to delete all files not in the git repository is good enough to start a new build. However, this command does not clean files ignored by the git repository. Some of these files conflict with the linux build scripts. The best way to resolve this situation is to run "make mrproper", then check "git status" to ensure everything looks right, and then finally being the build again.
If that does not work it is normally safest to clean all extraneous file out of your tree as below. Note that this removes each and every file which is not committed to git, it __will__ remove any patches etc you have lying around within the build directory:

    {{{
git clean -x -f -d
}}}

When I try to build the kernel I get an error telling me to run "make mrproper" what should I do?

This implies there are left over files in your tree which are not meant to be in a clean tree. A clean source tree is required for an out of tree (make O=<directory> style) build, which is what the Ubuntu packaging uses. The most common cause is the creation of the include/config directory. You can try removing this:

  • rmdir include/config

If that does not work it is normally safest to clean all extraneous file out of your tree as below. Note that this removes each and every file which is not committed to git, it will remove any patches etc you have lying around within the build directory:

  • git clean -x -f -d

Kernel/FAQ/DevBuildMrProper (last edited 2010-07-06 18:34:40 by 85-210-145-82)