[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kbuild
Subject:    how to compile the linux kernel in an other directory
From:       Everest <ykai007 () gmail ! com>
Date:       2009-12-23 2:03:18
Message-ID: f895eeee0912221803l7e25f79ck75d1c359a697c9d8 () mail ! gmail ! com
[Download RAW message or body]

I want to compily the Linux kernel 2.6 kernel in an alternate place
and do not use the Makefile in top directory of kernel. (not different
output directory use make O=DIR)

For example: I have my kernel source in /home/everest/kernel, and
I want to compile it in /home/everest/build with the Makefile in it.
Also I need to change some of kernel source to my own directory,
I want to develop my own fs in /home/everest/fs and I don't want to
modify the code in kernel/fs.

So I want to modify a makefile from Linux kernel 2.6 Makefile, but it
seens not so easy to me, becaust many rules in Makefile(in top level
directory or oher directory like /arch/arm/Makefile) use the PATH only
available in CURRENT DIRECTORY. I want to modify only one Makefile and
don't affect others.

I notice that there is a tag in kernel Makefile: KBUILD_SRC, is that
useful for me? But I didn't get how to use this tag and the Makefile
only says:

   # KBUILD_SRC is set on invocation of make in OBJ directory
   # KBUILD_SRC is not intended to be used by the regular user (for now)

Who can tell me how to use it? Thanks very much!
Or is there any other to solve my problem?

Thanks again!


-- 
Best wishes

Everest
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic