summaryrefslogtreecommitdiff
path: root/kernel/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kernel/arch/x86_64/make.conf (renamed from modules.conf)39
-rw-r--r--kernel/arch/x86_64/make.config14
2 files changed, 13 insertions, 40 deletions
diff --git a/modules.conf b/kernel/arch/x86_64/make.conf
index d850fa0..b41be94 100644
--- a/modules.conf
+++ b/kernel/arch/x86_64/make.conf
@@ -15,29 +15,16 @@
# You should have received a copy of the GNU General Public License along with
# BoxOS; if not, see <https://www.gnu.org/licenses/>.
-##############################
-# Kernel drivers and modules #
-##############################
-
-# Kernel configuration
-DEBUG = YES
-
-# File systems
-FS_FAT = MOD
-FS_UFS = MOD
-
-# Firmware
-EFI = MOD
-
-# Bus
-PCI = MOD
-SATA = MOD
-USB = MOD
-
-# Block
-
-# Network
-
-# Graphics
-
-# Input
+INCLUDE+=-I$(ARCHDIR)/include
+AFLAGS+=-target $(ARCH)-none-elf
+CFLAGS+=-mno-red-zone -mno-mmx -mno-sse -mno-sse2 -target $(ARCH)-none-elf
+LDFLAGS+=--script=$(ARCHDIR)/linker.ld
+
+ARCH_OBJS=$(ARCHDIR)/asm/boot.o \
+ $(ARCHDIR)/asm/isr.o \
+ $(ARCHDIR)/asm/paging.o \
+ $(ARCHDIR)/asm/spinlock.o \
+ $(ARCHDIR)/asm/stack_trace.o \
+ $(ARCHDIR)/asm/switch_thread.o \
+ $(ARCHDIR)/kernel/serial.o \
+ $(ARCHDIR)/kernel/syscall.o \
diff --git a/kernel/arch/x86_64/make.config b/kernel/arch/x86_64/make.config
deleted file mode 100644
index 2347ce2..0000000
--- a/kernel/arch/x86_64/make.config
+++ /dev/null
@@ -1,14 +0,0 @@
-KERNEL_ARCH_INCLUDE=-I$(ARCHDIR)/include
-KERNEL_ARCH_CFLAGS=$(SYS_CFLAGS) -mno-red-zone -mno-mmx -mno-sse -mno-sse2
-KERNEL_ARCH_LDFLAGS=
-KERNEL_ARCH_LIBS=
-
-KERNEL_ARCH_OBJS=$(ARCHDIR)/asm/boot.o \
- $(ARCHDIR)/asm/isr.o \
- $(ARCHDIR)/asm/paging.o \
- $(ARCHDIR)/asm/spinlock.o \
- $(ARCHDIR)/asm/stack_trace.o \
- $(ARCHDIR)/asm/switch_thread.o \
- $(ARCHDIR)/kernel/serial.o \
- $(ARCHDIR)/kernel/syscall.o \
- $(ARCHDIR)/mem/gdt.o \