1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00
This commit is contained in:
Adrien Bourmault 2018-12-21 13:44:39 +01:00
parent 74f4463efc
commit 0dda3ec5d9
5 changed files with 0 additions and 144 deletions

View File

@ -1,17 +0,0 @@
//----------------------------------------------------------------------------//
// GNU GPL OS/K //
// //
// Authors: spectral` //
// NeoX //
// //
// Desc: ChangeLog #1 //
// From: 2018/12/06 //
// UpTo: current //
//----------------------------------------------------------------------------//
2018/10/?? - Started talking about making our own OS
2018/11/?? - Name decided & creation of gnu-os-k.eu
2018/12/06 - Actually started project, began MBR, decided directories organization, created this file and others
2018/12/08 - MBR actually supports Long Mode Compatibility Verification
- Added A20 line Enabling to MBR

View File

@ -1,109 +0,0 @@
#----------------------------------------------------------------------------#
# GNU GPL OS/K #
# #
# Authors: spectral` #
# NeoX #
# #
# Desc: Project Makefile #
#----------------------------------------------------------------------------#
CC_NAME="../toolchains/x86_64-elf-7.3.0-Linux-x86_64/bin/x86_64-elf-gcc"
CWARNS=-Wall -Wextra -Werr
CFLAGS=-nostdlib -ffreestanding -mcmodel=large -mno-red-zone -mno-mmx -mno-sse -mno-sse2
CDEFINES=-DNDEBUG
CINCLUDES=-I./kaleid
CC=$(CC_NAME) $(CWARNS) $(CFLAGS) $(CDEFINES) $(CINCLUDES)
ASM=nasm
ASMFLAGS=
BOOTFLAGS=-f bin
BINDIR=../bin
OBJDIR=../obj
BOOTDIR=boot
COMMDIR=kaleid/common
KERNDIR=kaleid/kernel
SYSTDIR=kaleid/system
all: bootloader
boot.mbr.s: $(BOOTDIR)/mbr.s
$(ASM) $(BOOTFLAGS) $(BOOTDIR)/mbr.s -o $(OBJDIR)/boot/mbr.bin
boot.loader.s: $(BOOTDIR)/loader.s
$(ASM) $(BOOTFLAGS) $(BOOTDIR)/loader.s -o $(OBJDIR)/boot/loader.bin
bootloader: boot.mbr.s boot.loader.s
dd if=/dev/zero of=$(BINDIR)/disk.img bs=1024 count=0 seek=1048576
su -c "mkfs.vfat $(BINDIR)/disk.img -F 32 -r 112 -S 512 -v"
dd if=$(OBJDIR)/boot/mbr.bin of=$(BINDIR)/disk.img count=1
su -c "mkdir /mnt/disk && mount -o loop $(BINDIR)/disk.img /mnt/disk"
cp $(OBJDIR)/boot/loader.bin /mnt/disk/loader.bin
#----------------------------------------------------------------------------#
# TESTING MAKEFILE
pseudo_kern:
$(ASM) $(BOOTFLAGS) $(BOOTDIR)/pseudo_kernel.s -o $(OBJDIR)/boot/pkernel.bin
testing: bootloader pseudo_kern
cat $(BINDIR)/bootloader.bin $(OBJDIR)/boot/pkernel.bin > $(BINDIR)/boot.bin
#----------------------------------------------------------------------------#
# COMMON MAKEFILE
COMM_DEPS=$(COMMDIR)/common.h $(COMMDIR)/assert.h $(COMMDIR)/atomic.h $(COMMDIR)/config.h \
$(COMMDIR)/status.h $(COMMDIR)/string.h $(COMMDIR)/types.h
common.lib.string.c: $(COMMDIR)/lib/string.c $(COMM_DEPS)
$(CC) -c $(COMMDIR)/lib/string.c -o ../obj/$(COMMDIR)/lib/string.o
#----------------------------------------------------------------------------#
# KERNEL MAKEFILE
KERN_DEPS=$(COMM_DEPS)

View File

@ -1,2 +0,0 @@
make
dd if=/dev/zero of=../bin/disk.img bs=1024 count=0 seek=$[1024*1024]

View File

@ -1,12 +0,0 @@
src = $PWD
scp -Rv ./src/ "/home/neox/Documents/GNU OSK"
cd "/home/neox/Documents/GNU OSK/src/"
make
cd $src
scp -Rv "/home/neox/Documents/GNU OSK/obj" ..
scp -Rv "/home/neox/Documents/GNU OSK/bin" ..
qemu-system-x86_64 -drive file="/home/neox/Documents/GNU OSK/bin/bootloader.bin",index=0,media=disk,format=raw -boot a -d cpu_reset
qemu-system-i386 -drive file="/home/neox/Documents/GNU OSK/bin/bootloader.bin",index=0,media=disk,format=raw -boot a -no-reboot -no-shutdown -d cpu_reset

View File

@ -1,4 +0,0 @@
make && cp ../bin/bootloader.bin "~/Documents/GNU OSK/bin/bootloader.bin"
qemu-system-x86_64 -hda "~/Documents/GNU OSK/bin/bootloader.bin"
qemu-system-i386 -hda "~/Documents/GNU OSK/bin/bootloader.bin"