RE: making custom kernels easier to build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

 

From: devel-bounces@xxxxxxxxxxxxxxxxxxxxxxx [mailto:devel-bounces@xxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Przemek Klosowski
Sent: Tuesday, August 12, 2014 12:02 PM
To: devel@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: making custom kernels easier to build

 

On Tue, Aug 12, 2014 at 4:29 AM, ottos <ottohaliburton@xxxxxxxxx> wrote:

Since this topic is here.  There is an error in Makefile when you do a make modules_install.  It attempts to delete a directory with a delete file command.  This occurs in two places.  If you are fixing fix this problem.

Typically, something like that might happen if you are compiling in a pre-existing environment, where either an old compilation or someone manually created a directory with the same name as a file from the current compilation. Such error tends not to self-correct.  The kernel build system builds from scratch so it doesn't see the problem---I bet if you rm -rf the entire build tree before rebuilding it'll work for you as well.

NB, when you report errors, please provide more context: what exactly are you comparing (version/release numbers, where you got them from) and what errors are you seeing (the exact copy of the error message); otherwise all others can offer is guesses.

 

The following code is the defective code from Makefile.  The lines with the ** besides them is the lines in particular that are defective.

 

modules_install: _modinst_ _modinst_post

 

PHONY += _modinst_

_modinst_:

        @rm -rf $(MODLIB)/kernel

  **      @rm -f $(MODLIB)/source

        @mkdir -p $(MODLIB)/kernel

        @ln -s $(srctree) $(MODLIB)/source

        @if [ ! $(objtree) -ef  $(MODLIB)/build ]; then \

**               rm -f $(MODLIB)/build ; \

                ln -s $(objtree) $(MODLIB)/build ; \

        fi

 

if you execute a “make modules_install”   notice that you are trying delete a directive with a file delete.  I edit this file each time I build a custom kernel and put a “r” in front of the “f” making it –rf.  Is this enough.

 

The commands I use are make bzImage;make modules;make modules_install;make install

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux