From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oren Laadan Subject: Re: [PATCH] Make kernel source path configurable Date: Thu, 29 Jan 2009 01:09:57 -0500 Message-ID: <49814835.70500@cs.columbia.edu> References: <20090129021528.22655.32316.stgit@crlf.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090129021528.22655.32316.stgit-KRTu2lV406v8o+N1Ual6GVaTQe2KTcn/@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Mike Waychison Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Thanks. Mike Waychison wrote: > Add an optional argument to the user-cs Makefile called KERNELPATH that allows > one to specify the path for kernel sources to use for the build. > > Signed-off-by: Mike Waychison > --- > > Makefile | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Makefile b/Makefile > index 151d006..52cbfee 100644 > --- a/Makefile > +++ b/Makefile > @@ -1,13 +1,13 @@ > - > +KERNELPATH ?= ../linux > # compile with debug ? > DEBUG = -DCHECKPOINT_DEBUG > > # find linux architecure > -KERN_ARCH = $(shell readlink ../linux/include/asm | sed 's/^asm-//') > +KERN_ARCH = $(shell readlink $(KERNELPATH)/include/asm | sed 's/^asm-//') > > # look for includes > -PATHS = -I../linux/include \ > - -I../linux/arch/$(KERN_ARCH)/include > +PATHS = -I$(KERNELPATH)/include \ > + -I$(KERNELPATH)/arch/$(KERN_ARCH)/include > > # extra warnings and fun > WARNS := -Wall -Wstrict-prototypes -Wno-trigraphs > >