Skip to content

Commit

Permalink
Renamed image.elf to ixmage.elf
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 14, 2011
1 parent f01821b commit fdb475d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and sudo, and that you have a loop device. qemu, sudo, and the loop device are
used only in 'make test', so if you just want to build the kernel, you only
need gcc and nasm.

The generated kernel image is called 'image.elf'. It is stored in src/. It
The generated kernel image is called 'ixmage.elf'. It is stored in src/. It
is a multiboot-compatible elf-format executable.

Running 'make install' on a system with sudo will rebuild the image and copy it
Expand Down
8 changes: 4 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: clean src

clean:
rm -f *.o image.elf doc.txt
rm -f *.o ixmage.elf doc.txt

src: clean
nasm -felf start.asm -o 00entry.o
Expand All @@ -19,20 +19,20 @@ src: clean
gcc -Wall -mtune=i386 -mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse -mno-tls-direct-seg-refs -nostdlib -nostdinc -ffreestanding -c -o vga.o -I../include/ vga.c
gcc -Wall -mtune=i386 -mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse -mno-tls-direct-seg-refs -nostdlib -nostdinc -ffreestanding -c -o zz.o -I../include/ zz.c
gcc -Wall -mtune=i386 -mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse -mno-tls-direct-seg-refs -nostdlib -nostdinc -ffreestanding -c -o kaukatcr.o -I../include/ kaukatcr.c
ld -nostdlib -Tlink.ld *.o -o image.elf
ld -nostdlib -Tlink.ld *.o -o ixmage.elf

image: clean src
mkdir -p mnt
sudo mount -o loop fd.img ./mnt/
sudo cp menu.lst ./mnt/boot/menu.cfg
sudo cp image.elf ./mnt/
sudo cp ixmage.elf ./mnt/
sudo umount ./mnt/

test: image
qemu -no-reboot -no-shutdown -fda fd.img

install: src
sudo cp image.elf /boot/
sudo cp ixmage.elf /boot/



Binary file modified src/fd.img
Binary file not shown.
2 changes: 1 addition & 1 deletion src/menu.lst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ timeout 5

title ix
root (fd0)
kernel /image.elf
kernel /ixmage.elf
boot

0 comments on commit fdb475d

Please sign in to comment.