aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-11-01 15:20:17 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-11-01 15:20:17 +0200
commitf944f887470713b737cfe0bd704fd4c97318754b (patch)
tree90325cefa62dab2a77fdb1e8a1b7fae5f47c56c2 /Makefile.config
parentmakefile: clean target shouldn't depend on OBJS (diff)
downloadkernel-f944f887470713b737cfe0bd704fd4c97318754b.tar.xz
makefile: add Makefile.config
Diffstat (limited to 'Makefile.config')
-rw-r--r--Makefile.config40
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile.config b/Makefile.config
new file mode 100644
index 0000000..8f18c80
--- /dev/null
+++ b/Makefile.config
@@ -0,0 +1,40 @@
+
+#
+# Toolchain
+#
+CONFIG_CCFLAGS=""
+CONFIG_LDFLAGS=""
+# end of Toolchain
+
+#
+# Target
+#
+CONFIG_ARCH_i686=y
+# end of Target
+
+#
+# Devices
+#
+CONFIG_PIC_8259=y
+CONFIG_UART_16550=y
+CONFIG_VGA_TEXT_MODE=y
+CONFIG_KB_PS2=y
+# end of Devices
+
+# toolchain.mk
+ARCH=i686
+
+# define compiler, linker, archiver and strip and their flags
+#
+AS := i686-elf-as
+CC := i686-elf-gcc
+CCFLAGS := -Wall -Wextra -Wpedantic -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only
+CCFLAGS += $(shell echo ${CONFIG_CCFLAGS})
+LD := i686-elf-ld
+LDFLAGS := -static -nostdlib
+LDFLAGS += $(shell echo ${CONFIG_LDFLAGS})
+AR := i686-elf-ar
+ARFLAGS := -crus
+STRIP := i686-elf-strip
+
+