All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Ostrowski <mostrows@watson.ibm.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Makefile cleanup.
Date: Tue, 4 Oct 2005 15:35:36 -0400	[thread overview]
Message-ID: <20051004153536.15c33e11@brick.watson.ibm.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2248 bytes --]

changeset:   7197:c092fbcc18c6
user:        mostrows@heater.watson.ibm.com
date:        Tue Oct  4 11:45:05 2005 -0400
summary:     Move setting of configuration variables to Config.mk.
             Allows for partial-tree builds to be invoked from a sub-directory.
	     Allow for users to include a ".config" with additional custom settings.	

Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>

diff -r 73e930d47aff -r c092fbcc18c6 Config.mk
--- a/Config.mk	Tue Oct  4 11:35:49 2005 -0400
+++ b/Config.mk	Tue Oct  4 11:45:05 2005 -0400
@@ -1,4 +1,6 @@
 # -*- mode: Makefile; -*-
+
+-include $(XEN_ROOT)/.config
 
 # Currently supported architectures: x86_32, x86_64
 XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/)
@@ -19,6 +21,16 @@
 STRIP      = $(CROSS_COMPILE)strip
 OBJCOPY    = $(CROSS_COMPILE)objcopy
 OBJDUMP    = $(CROSS_COMPILE)objdump
+
+# Default is to install to local 'dist' directory.
+DISTDIR ?= $(XEN_ROOT)/dist
+DESTDIR ?= $(DISTDIR)/install
+
+INSTALL                := install
+INSTALL_DIR    := $(INSTALL) -d -m0755
+INSTALL_DATA   := $(INSTALL) -m0644
+INSTALL_PROG   := $(INSTALL) -m0755
+
 
 ifeq ($(XEN_TARGET_ARCH),x86_64)
 LIBDIR = lib64
diff -r 73e930d47aff -r c092fbcc18c6 Makefile
--- a/Makefile	Tue Oct  4 11:35:49 2005 -0400
+++ b/Makefile	Tue Oct  4 11:45:05 2005 -0400
@@ -1,23 +1,12 @@
 #
 # Grand Unified Makefile for Xen.
 #
-
-# Default is to install to local 'dist' directory.
-DISTDIR ?= $(CURDIR)/dist
-DESTDIR ?= $(DISTDIR)/install
-
-INSTALL		:= install
-INSTALL_DIR	:= $(INSTALL) -d -m0755
-INSTALL_DATA	:= $(INSTALL) -m0644
-INSTALL_PROG	:= $(INSTALL) -m0755
 
 KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
 # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
 # You may use wildcards in the above e.g. KERNELS=*2.4*
 
 XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
-
-export DESTDIR
 
 # Export target architecture overrides to Xen and Linux sub-trees.
 ifneq ($(XEN_TARGET_ARCH),)
@@ -28,6 +17,7 @@
 # Default target must appear before any include lines
 all: dist
 
+XEN_ROOT=$(CURDIR)
 include Config.mk
 include buildconfigs/Rules.mk
 



[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2005-10-04 19:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 19:35 Michal Ostrowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-28 17:59 [PATCH] Makefile cleanup Martin Langer
2006-08-01 16:01 ` Takashi Iwai
2005-10-04 19:32 Michal Ostrowski
2005-10-05 10:26 ` Keir Fraser

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=20051004153536.15c33e11@brick.watson.ibm.com \
    --to=mostrows@watson.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /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.