Re: [PATCH] ppc: fix build with O=$(output_dir)

From: Tom Rini (trini_at_kernel.crashing.org)
Date: 10/21/04

  • Next message: Denis Vlasenko: "Re: shutdown -h causes laptop to reboot since kernel 2.6.9"
    Date:	Thu, 21 Oct 2004 13:29:13 -0700
    To: Kernel Mailing List <linux-kernel@vger.kernel.org>, Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
    
    

    On Thu, Oct 21, 2004 at 05:56:14PM +0000, roland@topspin.com wrote:
    > ChangeSet 1.2040, 2004/10/21 10:56:14-07:00, roland@topspin.com
    >
    > [PATCH] ppc: fix build with O=$(output_dir)
    >
    > Recent changes to arch/ppc/boot/lib/Makefile cause
    >
    > CC arch/ppc/boot/lib/../../../../lib/zlib_inflate/infblock.o
    > Assembler messages:
    > FATAL: can't create arch/ppc/boot/lib/../../../../lib/zlib_inflate/infblock.o: No such file or directory
    >
    > when building a ppc kernel using O=$(output_dir) with CONFIG_ZLIB_INFLATE=n,
    > because the $(output_dir)/lib/zlib_inflate directory doesn't get created.
    >
    > This patch, which makes arch/ppc/boot/lib/Makefile create the
    > directory if needed, is one fix for the problem.
    >
    > Signed-off-by: Roland Dreier <roland@topspin.com>
    > Signed-off-by: Andrew Morton <akpm@osdl.org>
    > Signed-off-by: Linus Torvalds <torvalds@osdl.org>

    Can we back this out please? As I noted on lkml once I saw this, it
    still doesn't fix the problem of overwriting files in lib/zlib_inflate/
    if ZLIB_INFLATE!=n, and adding explicit rules for lib/zlib_inflate/foo.c
    -> ./foo.o looks quite bad (it's 2 calls if we want checker to get
    invoked, one if we skip doing that). At the end of the thread, both
    Roland and I were hoping Sam knew of a clever solution to this.

    -- 
    Tom Rini
    http://gate.crashing.org/~trini/
    -
    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: Denis Vlasenko: "Re: shutdown -h causes laptop to reboot since kernel 2.6.9"

    Relevant Pages

    • Re: [PATCH] ppc: fix build with O=$(output_dir)
      ... As I noted on lkml once I saw this, ... still doesn't fix the problem of overwriting files in lib/zlib_inflate/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • sprintf -> strcpy (was: Re: gcc-3.4)
      ... The fix is to do the replacement in the ... I remember seeing a similar discussion on lkml about some other automatic ... Is this the correctway to fix this issue, or is there a better solution? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: The naming wars continue...
      ... > But not everyone reads LKML or the annoucement..a lot of people may just ... or fix release ... Helge Hafting ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc1-mm5
      ... > See my fix on lkml: ... The others seem only to be warnings, and are allegedly no worse than before, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] ppc: fix build with O=$(output_dir)
      ... Tom> Can we back this out please? ... it still doesn't fix the problem of overwriting files ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)