From: tony@bakeyournoodle.com (Tony Breeds)
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>
Subject: [LGUEST] Look in object dir for .config
Date: Thu, 3 May 2007 14:54:46 +1000 [thread overview]
Message-ID: <20070503045446.GG15955@bakeyournoodle.com> (raw)
From: Tony Breeds <tony@bakeyournoodle.com>
[LGUEST] Look in object dir for .config
If you build with make O=.... then .config isn't in ../../, this patch
goes partway to making sure that you don't dirty the source tree.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
---
Documentation/lguest/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--- Documentation/lguest/Makefile.orig 2007-05-03 14:23:07.000000000 +1000
+++ Documentation/lguest/Makefile 2007-05-03 14:25:27.000000000 +1000
@@ -1,8 +1,15 @@
# This creates the demonstration utility "lguest" which runs a Linux guest.
+# For those people that have a separate object dir, look there for .config
+KBUILD_OUTPUT := ../..
+ifdef O
+ ifeq ("$(origin O)", "command line")
+ KBUILD_OUTPUT := $(O)
+ endif
+endif
# We rely on CONFIG_PAGE_OFFSET to know the highest address we can put
# the lguest binary.
-include ../../.config
+include $(KBUILD_OUTPUT)/.config
LGUEST_GUEST_TOP := ($(CONFIG_PAGE_OFFSET) - 0x08000000)
CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 \
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!
next reply other threads:[~2007-05-03 4:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 4:54 Tony Breeds [this message]
2007-05-03 11:49 ` [LGUEST] Look in object dir for .config Rusty Russell
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=20070503045446.GG15955@bakeyournoodle.com \
--to=tony@bakeyournoodle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox