Messages in this thread |  | | Date | Wed, 15 Nov 2000 16:30:12 -0700 | From | Erik Andersen <> | Subject | Re: Q: Linux rebooting directly into linux. |
| |
On Tue Nov 14, 2000 at 07:59:18AM -0700, Eric W. Biederman wrote: > > All mkelfImage does is the pasting of initrd's, command lines, > and just a touch of argument conversion code.
You can link in an initrd using linker magic, i.e. $(OBJCOPY) --add-section=image=kernel --add-section=initrd=initrd.gz
This is done in ppc/boot/Makefile for example. It might be a nice thing to add a .config option to optionally specify an initrd to link into the kernel image. Similarly, several architectures have a CONFIG_CMDLINE which could also do the job (see arch/ppc/config.in for example).
Presumably, by doing such things you could avoid needing to use mkelfImage.
-Erik
-- Erik B. Andersen email: andersee@debian.org --This message was written using 73% post-consumer electrons-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |