From 5957f07fcefebe4259ad4ad0a8d5004bf4c25118 Mon Sep 17 00:00:00 2001 From: Riyan Dhiman Date: Fri, 17 May 2024 22:38:29 +0530 Subject: [PATCH] Rename iso file name --- iso.sh | 6 +++--- kernel/Makefile | 12 ++++++------ qemu.sh | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/iso.sh b/iso.sh index 6d3166e..6304898 100755 --- a/iso.sh +++ b/iso.sh @@ -7,11 +7,11 @@ mkdir -p isodir mkdir -p isodir/boot mkdir -p isodir/boot/grub -cp sysroot/boot/myos.kernel isodir/boot/myos.kernel +cp sysroot/boot/cheakyos.kernel isodir/boot/cheakyos.kernel cat > isodir/boot/grub/grub.cfg << EOF menuentry "myos" { - multiboot /boot/myos.kernel + multiboot /boot/cheakyos.kernel } EOF -grub-mkrescue -o myos.iso isodir \ No newline at end of file +grub-mkrescue -o cheakyos.iso isodir diff --git a/kernel/Makefile b/kernel/Makefile index 4750bdb..a609b72 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -54,11 +54,11 @@ $(ARCHDIR)/crtn.o \ .PHONY: all clean install install-headers install-kernel .SUFFIXES: .o .c .S -all: myos.kernel +all: cheakyos.kernel -myos.kernel: $(OBJS) $(ARCHDIR)/linker.ld +cheakyos.kernel: $(OBJS) $(ARCHDIR)/linker.ld $(CC) -T $(ARCHDIR)/linker.ld -o $@ $(CFLAGS) $(LINK_LIST) - grub-file --is-x86-multiboot myos.kernel + grub-file --is-x86-multiboot cheakyos.kernel $(ARCHDIR)/crtbegin.o $(ARCHDIR)/crtend.o: OBJ=`$(CC) $(CFLAGS) $(LDFLAGS) -print-file-name=$(@F)` && cp "$$OBJ" $@ @@ -74,7 +74,7 @@ $(ARCHDIR)/crtbegin.o $(ARCHDIR)/crtend.o: clean: - rm -f myos.kernel + rm -f cheakyos.kernel rm -f $(OBJS) *.o */*.o */*/*.o rm -f $(OBJS:.o=.d) *.d */*.d */*/*.d rm -f ${ARCHDIR} *.o */*.o */*/*/*.o @@ -85,8 +85,8 @@ install-headers: mkdir -p $(DESTDIR)$(INCLUDEDIR) cp -R --preserve=timestamps include/. $(DESTDIR)$(INCLUDEDIR)/. -install-kernel: myos.kernel +install-kernel: cheakyos.kernel mkdir -p $(DESTDIR)$(BOOTDIR) - cp myos.kernel $(DESTDIR)$(BOOTDIR) + cp cheakyos.kernel $(DESTDIR)$(BOOTDIR) -include $(OBJS:.o=.d) diff --git a/qemu.sh b/qemu.sh index cbe431c..da19cf1 100755 --- a/qemu.sh +++ b/qemu.sh @@ -4,4 +4,4 @@ set -e . ./iso.sh -qemu-system-$(./target-triplet-to-arch.sh $HOST) -cdrom myos.iso +qemu-system-$(./target-triplet-to-arch.sh $HOST) -cdrom cheakyos.iso