All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make kernel source path configurable
@ 2009-01-29  2:15 Mike Waychison
       [not found] ` <20090129021528.22655.32316.stgit-KRTu2lV406v8o+N1Ual6GVaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Waychison @ 2009-01-29  2:15 UTC (permalink / raw)
  To: Oren Laadan; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

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 <mikew-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---

 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Make kernel source path configurable
       [not found] ` <20090129021528.22655.32316.stgit-KRTu2lV406v8o+N1Ual6GVaTQe2KTcn/@public.gmane.org>
@ 2009-01-29  6:09   ` Oren Laadan
  0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2009-01-29  6:09 UTC (permalink / raw)
  To: Mike Waychison; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA


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 <mikew-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
> ---
> 
>  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
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-29  6:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29  2:15 [PATCH] Make kernel source path configurable Mike Waychison
     [not found] ` <20090129021528.22655.32316.stgit-KRTu2lV406v8o+N1Ual6GVaTQe2KTcn/@public.gmane.org>
2009-01-29  6:09   ` Oren Laadan

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.