From: Keith Owens <kaos@ocs.com.au>
To: David Howells <dhowells@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kbuild-2.5
Date: Thu, 01 Nov 2001 23:21:07 +1100 [thread overview]
Message-ID: <30762.1004617267@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Thu, 01 Nov 2001 11:19:02 -0000." <22644.1004613542@warthog.cambridge.redhat.com>
On Thu, 01 Nov 2001 11:19:02 +0000,
David Howells <dhowells@redhat.com> wrote:
>Okay... for users of emacs, here's an elisp function that looks to see if it's
>in a subdirectory of a kernel tree (and if so whether it's kbuild or
>traditional), and if so invents an appropriate command line for compiling just
>in that subdir:-) Otherwise it just falls back to the usual compile function.
>(defun kernel-compile ()
>....
> (if (and
> (file-readable-p (concat curdir "/COPYING"))
Won't work with separate source and object trees in kbuild 2.5.
export KBUILD_SRCTREE_000=/build/kaos/2.4.13-kbuild-2.5
export KBUILD_OBJTREE=/build/kaos/object-2.4.13
cd /anywhere/you/like
make -f $KBUILD_SRCTREE_000/Makefile-2.5
If you define the kbuild tree variables then you can be in any
directory when you issue the make command. If you are using shadow
trees then you can be in a sparse source tree which only contains of
the files.
> ;; determine whether using kbuild or not
> (if (file-readable-p (concat curdir "/scripts/shadow.pl"))
grep CONFIG_KBUILD_2_5 .config is better, you can still build using
kbuild 2.4 even after applying the 2.5 patch. The presence of a kbuild
2.5 file is not definitive. Of course the .config is in $KBUILD_OBJTREE
which might not be the current directory.
prev parent reply other threads:[~2001-11-01 12:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <16055.1002748565@ocs3.intra.ocs.com.au>
2001-11-01 11:19 ` kbuild-2.5 David Howells
2001-11-01 12:21 ` Keith Owens [this message]
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=30762.1004617267@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®