All of lore.kernel.org
 help / color / mirror / Atom feed
From: Coywolf Qi Hunt <coywolf@greatcn.org>
To: sam@ravnborg.org
Cc: kai@tp1.ruhr-uni-bochum.de, akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Remove wildcard on KBUILD_OUTPUT
Date: Fri, 13 Aug 2004 05:28:37 +0800	[thread overview]
Message-ID: <411BE105.4080203@greatcn.org> (raw)
In-Reply-To: <51248.194.237.142.13.1092343524.squirrel@194.237.142.13>

sam@ravnborg.org wrote:

>>You misunderstood me.
>>This patch removes unnecessary wildcard on KBUILD_OUTPUT and unused VPATH.
>>If it looks ok, I'd like to send it to lkml and akpm.
>>    
>>
>
>Try building a kernel where you use O= to specify another output directory.
>Try with an existing and a non-existing directory.
>
>You will see why both are needed.
>
>  
>

I searched VPATH in the manual. I was wrong on removing VPATH.
But I still think wildcard is unnecessary.

I did build kernel with another output directory, both existing and 
non-existing before mailling you.
And even when KBUILD_OUTPUT contains wildcard. Ok, I just saw Kai's 
reply. I Needn't further explain.


Kai Germaschewski wrote:

>>Try building a kernel where you use O= to specify another output directory.
>>Try with an existing and a non-existing directory.
>>    
>>
>
>I suspect that the patch works, if $(shell ...) returns what's written to 
>stdout, KBUILD_OUTPUT would be empty and thus the wildcard unnecessary. Of 
>course I'm too lazy to test it out, too...
>
>--Kai
>
>
>  
>


Signed-off-by: Coywolf Qi Hunt <coywolf@greatcn.org>

--- linux-2.6.8-rc4-mm1/Makefile	2004-08-12 13:59:10.000000000 -0500
+++ linux-2.6.8-rc4-mm1-cy/Makefile	2004-08-12 16:09:08.171039406 -0500
@@ -102,7 +102,7 @@ ifneq ($(KBUILD_OUTPUT),)
 # check that the output directory actually exists
 saved-output := $(KBUILD_OUTPUT)
 KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
-$(if $(wildcard $(KBUILD_OUTPUT)),, \
+$(if $(KBUILD_OUTPUT),, \
      $(error output directory "$(saved-output)" does not exist))
 
 .PHONY: $(MAKECMDGOALS)


-- 

Coywolf Qi Hunt
Homepage http://greatcn.org/~coywolf/
Admin of http://GreatCN.org and http://LoveCN.org


       reply	other threads:[~2004-08-12 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <411B31A5.70508@greatcn.org>
     [not found] ` <20040812172307.GA7365@mars.ravnborg.org>
     [not found]   ` <411BCE4F.1060002@greatcn.org>
     [not found]     ` <51248.194.237.142.13.1092343524.squirrel@194.237.142.13>
2004-08-12 21:28       ` Coywolf Qi Hunt [this message]
2004-08-15 19:14         ` [PATCH] Remove wildcard on KBUILD_OUTPUT Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=411BE105.4080203@greatcn.org \
    --to=coywolf@greatcn.org \
    --cc=akpm@osdl.org \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.