X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=how-to-compile;h=c84edb4816ea45d339ca3f2f919bc623f35bc0b7;hb=dad65146188909b9568ed39b3b3fbc5e88e158c3;hp=bcd0b8b626b9301b08ac23d78e98a0083021101a;hpb=c29b9d737fde3b6037aacc95cc6ff4f5fbc63d46;p=nameless-os.git diff --git a/how-to-compile b/how-to-compile index bcd0b8b..c84edb4 100644 --- a/how-to-compile +++ b/how-to-compile @@ -1,10 +1,11 @@ 1. Compile an i686-elf GCC and binutils following the instructions on this page: https://wiki.osdev.org/GCC_Cross-Compiler + Or use some tool to automate it, like I use crossdev on my Gentoo machine. 2. Install yasm, or modify the makefile to use nasm if you prefer it 3. Run make in the source root -4. Run boot.img with some emulator, I use qemu: - qemu-system-i386 boot.img - You can use the x86_64 qemu, Bochs, VirtualBox or something else if you prefer +4. Run the OS: + make run + This will create a disk image (if needed) and run it. Assumes that sfdisk, mtools and dosfstools are installed.