How to compile kernel in user's own folders?

I want to compile the kernel under my own folders to go onto build a custom-compiled kernel rpm.That rpm will go into my susestudio appliance.

I tried with -o=“my_folder” option.That did not work.How to do this?Can anybody point out what I am missing?

Thanks in advance

Hi
Just download your linux flavor from kernel.org and extract to your own
folder in your home directory, then follow user lwfingers nice simple
method;
http://forums.opensuse.org/pre-release-beta/421320-questions-help-regarding-kernel-2-6-31-a.html#post2036276

Note only the install is done with sudo.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 6 days 12:24, 7 users, load average: 0.38, 0.61, 0.61
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Hi,
I do not want to install in the running system at all.I want to put everything under a folder and then create SPEC file which will take that and build an RPM.I will use the RPM to install kernel in my appliance.
I wanted to take kernel-source-X-X-X.rpm or kernel-source-X-X-X.src.rpm.(I do not know the difference between them),install them with --root-directory option in my home folder and then do recompile and the rest.Of course,this is all new to me.I need to try.

Hi
Just grab one of the kernel src rpm’s off the OBS and use that as a
template? If you install the src rpm it will place everything down
in /usr/src/packages as a user your can build here without any system
impact. Or you can always use OBS to build…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 1:07, 4 users, load average: 0.49, 0.23, 0.14
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53