WKern
Loading...
Searching...
No Matches
toolsflags.py
Go to the documentation of this file.
1# Tools
2CC = "i686-elf-gcc"
3LD = "i686-elf-ld"
4AS = "nasm"
5GRUB = "i686-elf-grub-mkrescue"
6QEMU = "qemu-system-i386"
7
8# Flags
9CCFLAGS = ["-ffreestanding", "-I./src", "-DARCH_X86", "-DVMQEMU", "-fno-pie", "-nostdlib",
10 "-m32", "-O2", "-g", "-fno-omit-frame-pointer", "-std=c99", "-Wall", "-Wextra"]
11
12LDFLAGS = ["-melf_i386", "-n", "--oformat=elf32-i386"]
13
14ASFLAGS = ["-felf32", "-g", "-Fdwarf"]
15
16QEMUFLAGS = ["-machine", "pc,accel=tcg",
17 "-drive", "file=mykern.iso,format=raw,media=cdrom,if=ide,index=2",
18 "-drive", "file=fat16.img,format=raw,if=ide,index=0",
19 "-boot", "d", "-gdb", "tcp::1234", "-monitor", "stdio",
20 "-qmp", "tcp:localhost:4444,server,nowait",
21 "-netdev", "user,id=n1", "-device", "virtio-net-pci,netdev=n1"]