Linux Container Development
 help / color / mirror / Atom feed
From: Mike Waychison <mikew-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
To: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: [PATCH] Make kernel source path configurable
Date: Wed, 28 Jan 2009 18:15:28 -0800	[thread overview]
Message-ID: <20090129021528.22655.32316.stgit@crlf.corp.google.com> (raw)

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

             reply	other threads:[~2009-01-29  2:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29  2:15 Mike Waychison [this message]
     [not found] ` <20090129021528.22655.32316.stgit-KRTu2lV406v8o+N1Ual6GVaTQe2KTcn/@public.gmane.org>
2009-01-29  6:09   ` [PATCH] Make kernel source path configurable Oren Laadan

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=20090129021528.22655.32316.stgit@crlf.corp.google.com \
    --to=mikew-hpiqsd4aklfqt0dzr+alfa@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org \
    /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