From: Qiling Liu <[EMAIL PROTECTED]> Subject: How to compile the Example OS code from the "Multiboot Specification" to test GRUB? Date: Wed, 10 Jan 2001 15:00:48 -0800 (PST) > It seems that there have no introduction how to > compile the Example OS code from the "Multiboot > Specification" (either from GRUB's source code). could > you tell me about it? Sorry, I thought it would be trivial. Here is an example: $ cd docs $ CFLAGS="-fno-builtin -nostdinc -O -I." $ LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000" $ gcc $CFLAGS -c kernel.c $ gcc $CFLAGS -c boot.S $ gcc $LDFLAGS -o kernel.exec boot.o kernel.o $ objcopy -O binary kernel.exec kernel I'll add a new target to compile this example kernel into Makefile. Okuji _______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
