DevBuildMrProper

Differences between revisions 2 and 3
Revision 2 as of 2010-07-06 18:29:01
Size: 854
Editor: apw
Comment: page was renamed from KernelTeam/KernelMaintenanceFAQ
Revision 3 as of 2010-07-06 18:34:40
Size: 777
Editor: apw
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from KernelTeam/KernelMaintenanceFAQ
<<Include(KernelTeamHeader)>>
== When I try to build the kernel I get an error telling me to run "make mrproper" what should I do? ==
Line 4: 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 6: Line 5:
This page provides help for commonly asked questions and issues encountered when maintaining the kernel.     {{{
rmdir include/config
}}}
Line 8: 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 apw)