bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compile the Example OS code from the "Multiboot Specification


From: OKUJI Yoshinori
Subject: Re: How to compile the Example OS code from the "Multiboot Specification" to test GRUB?
Date: Thu, 11 Jan 2001 12:12:17 +0900

From: Qiling Liu <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]