Added build system and some core boot files
This commit is contained in:
5
tools/make/clang-generic.mk
Normal file
5
tools/make/clang-generic.mk
Normal file
@@ -0,0 +1,5 @@
|
||||
LD := ld.lld
|
||||
CC := clang
|
||||
|
||||
CFLAGS := -fuse-ld=$(LD) -target x86_64-linux-elf -nostdlib -nostdinc -ffreestanding -Wl,-nostdlib -Wno-unused-command-line-argument
|
||||
LDFLAGS := -nostdlib
|
||||
8
tools/make/gcc-cross-compile.mk
Normal file
8
tools/make/gcc-cross-compile.mk
Normal file
@@ -0,0 +1,8 @@
|
||||
LD := $(ARCH)-elf-gcc
|
||||
CC := $(ARCH)-elf-gcc
|
||||
ASM := $(ARCH)-elf-gcc
|
||||
|
||||
CFLAGS := -nostdlib -nostdinc -ffreestanding -Wl,-nostdlib
|
||||
ASMFLAGS := $(CFLAGS)
|
||||
LDFLAGS := -nostdlib
|
||||
|
||||
Reference in New Issue
Block a user