-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMake.conf
56 lines (45 loc) · 1.13 KB
/
Make.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Supported values:
# x86
# armv6
ARCH = x86
# Supported values:
# acpi
# nintendo
BOARD = acpi
# Compilation options
ifeq ($(ARCH), armv6)
CC = @clang
else
CC = @gcc
endif
AR = @ar
LD = @ld.lld
ifeq ($(ARCH), armv6)
AS = @arm-none-eabi-as
else
AS = @nasm
endif
# Directories
LIMINE_DIR = ./meta/limine
ECHFS_DIR = ./meta/echfs
BUILD_DIR = ../meta/build
# Emulation options
EMU = qemu-system-x86_64
EMU_OPTS = \
-M q35 -cpu qemu64 -m 1G \
-debugcon stdio -no-reboot -smp 4 \
-no-shutdown -cdrom $(ISO_NAME)
EMU_OPTS_KVM = -enable-kvm -cpu host
EMU_OPTS_CUTTING_EDGE = -cpu qemu64,+la57 -bios /usr/share/ovmf/OVMF.fd
EMU_DEBUG_OPTS = $(EMU_OPTS) -S -s --no-reboot
ifeq ($(BOARD), nintendo)
PLATFORM_DIR = ./platform/$(BOARD)
SD_MOUNTPOINT = /media/tim/3437-36312/luma/payloads/ # Used to automatically copy the kernel to the SD card
else
PLATFORM_DIR = ./platform/$(BOARD)/$(ARCH)
endif
ISO_NAME = MoonOS.iso
KERNEL_ELF = kernel/kernel.elf
# CHANGE ME! I will be the terminal in which you can debug MoonOS.
DEBUG_TERMINAL = gnome-terminal
DEBUG_TERMINAL_OPTS = --tab "[DEBUG] MoonOS [DEBUG]" --command