LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [patch] kbuild: create KBUILD_OUTPUT
@ 2007-01-24  0:53 Oleg Verych
  0 siblings, 0 replies; only message in thread
From: Oleg Verych @ 2007-01-24  0:53 UTC (permalink / raw)
  To: Linus Torvalds, Sam Ravnborg; +Cc: kbuild, LKML

kbuild: create KBUILD_OUTPUT

 When requesting build to another directory, try to create it first.

Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Oleg Verych <olecom@flower.upol.cz>
---

,-*- bash -*-
|olecom@deen:~/kernel.org/_work/src/linux-2.6.20-rc5$
|olecom@deen:~/kernel.org/_work/src/linux-2.6.20-rc5$ make O=/tmp/build
|cd: 1: can't cd to /tmp/build
|Makefile:116: *** output directory "/tmp/build" does not exist.  Stop.
|olecom@deen:~/kernel.org/_work/src/linux-2.6.20-rc5$ patch -p1 <../../va-patch/
|kbuild-create-output-dir.patch
|patching file Makefile
|olecom@deen:~/kernel.org/_work/src/linux-2.6.20-rc5$ make O=/tmp/build
|HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc make[3]: ***
|[scripts/basic/docproc] Interrupt make[2]: *** [scripts_basic] Interrupt
|make: *** [_all] Interrupt
|
|olecom@deen:~/kernel.org/_work/src/linux-2.6.20-rc5$
`-*-

--- linux-2.6.20-rc5/Makefile~orig	2007-01-12 19:54:26.000000000 +0100
+++ linux-2.6.20-rc5/Makefile	2007-01-24 00:59:55.926951750 +0100
@@ -113,5 +113,5 @@
 # check that the output directory actually exists
 saved-output := $(KBUILD_OUTPUT)
-KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
+KBUILD_OUTPUT := $(shell d=$(KBUILD_OUTPUT) ; mkdir -p $$d && cd $$d && pwd)
 $(if $(KBUILD_OUTPUT),, \
      $(error output directory "$(saved-output)" does not exist))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-24  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-24  0:53 [patch] kbuild: create KBUILD_OUTPUT Oleg Verych

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).