omarrx024 basically told you what you have to do. I'm a little bit worried about the fact that you have to ask this question - do you have to knowledge you have to have to be able to program such a thing?
omarrx024 wrote:A kernel is not usually linked to a boot loader.
I'd even say that a kernel is never linked against the bootloader.
Typically, for a bootloader (assuming a BIOS environment), the first stage (which is 512 bytes big) gets loaded first. It only reads the second one from the disk and sets ip accordingly. The second stage does all the fancy stuff - like reading the file system, loading the kernel into memory and passing execution to it.
A bootloader is a little OS of its own. Many OSdevers here once wanted to create their own bootloader, but stopped it in order to be able to do the more exciting kernel development instead. Maybe that's something to think about for you - relying on GRUB sounds scary for a lot of newbies (for a reason I haven't understood yet), but it's not as bad as you think it is. Having Linux or a BSD is crucial for that (GRUB doesn't run on Windows).