Re: kbuild: Implicit dependence on the C compiler

From: Sam Ravnborg (sam_at_ravnborg.org)
Date: 01/29/05

  • Next message: John Levon: "Re: [PATCH] OProfile: Fix oops on undetected CPU type"
    Date:	Sat, 29 Jan 2005 22:26:02 +0100
    To: "H. Peter Anvin" <hpa@zytor.com>
    
    

    On Mon, Jan 17, 2005 at 02:03:41PM -0800, H. Peter Anvin wrote:
    > >There is no way to tell kbuild "ignore gcc change"
    >
    > There really needs to be one.

    make KBUILD_NOCMDDEP=1
    will do what you want - at least I have it in my tree now.
    I could not just ignore 'gcc' - but had to ignore the full commandline.

    This is due to more complex commands like:
    rm -f file; $(LD) ...

    Within the Makefile.lib when I check KBUILD_NOCMDDEP there is no
    knowledge of the actual command being executed. And an implmentation
    that just filtered out $(CC) was too ugly.
    And due to the above mentioned command I could not just skip the first
    word on the command line.

    I will push my bk tree soon and it will show up in next -mm.

    It is not perfect in the sense that the last part of the build will get
    redone (GEN .version and onwards). This is fixable but not worth it
    right now.

    So with current implmentation executing:

    make

    make KBUILD_NOCMDDEP=1 CROSS_COMPILE=i586-pc-linux-gnu-

    will result in only a few files being rebuild - and not the whole
    kernel as before.

            Sam
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: John Levon: "Re: [PATCH] OProfile: Fix oops on undetected CPU type"

    Relevant Pages

    • subprocess call acts differently than command line call?
      ... are unix-style line endings on every file in that tree that is a text ... Both the command line "file" and the python libmagic binding give the ... with CRLF line ...
      (comp.lang.python)
    • Re: Backup/Copy tree with alias file
      ... So what does this SEARCH command give us? ... sys$specific 'root ... above and then add the alias to give it something to look for. ... one shouldn't manually delete a system directory tree ...
      (comp.os.vms)
    • Re: Substitute characters command
      ... Anybody who use any word processor to edit a text file needs to be aware ... Thanks to this forum I've learned how to get a directory tree by ... using the command ... Then I got strange characters so I used ASCII instead ...
      (microsoft.public.windowsxp.basics)
    • Re: creating multiple zip arhives?
      ... > I have about 2500 jpeg pictures in a different subfolders (in a same tree). ... (which is run in the tree root and is run straight from the command line) ... Please replace dot invalid with dot uk to email me. ...
      (microsoft.public.scripting.wsh)
    • Re: "proper" way to handle "global" data
      ... value globally (may change during the life of the executable)... ... command line or has a hard coded value if not given on the command ... this to behavioral values like (make a dry run over a tree of tests ... a test set (so I can create a progress bar that actually shows ...
      (comp.lang.java.programmer)