summaryrefslogtreecommitdiff
path: root/kc
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-12-26 17:35:11 +0000
committerAda Christine <adachristine18@gmail.com>2021-12-26 17:35:11 +0000
commit563286b7de047ffa2a2dd27f62c2b33ef03578ab (patch)
treec99d97b5bf4f40a2df527dbe149814278771d490 /kc
parentc33d2dedd7ae7f259179abdc9a6f58847b32db21 (diff)
calls to EFI were in the wrong convention
Diffstat (limited to 'kc')
-rw-r--r--kc/boot/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/kc/boot/Makefile b/kc/boot/Makefile
index e84330f..506c12b 100644
--- a/kc/boot/Makefile
+++ b/kc/boot/Makefile
@@ -1,4 +1,5 @@
include ../../defaults.mk
+include ../../efi.mk
include ../defaults.mk
VPATH := ../../lib ../
@@ -6,17 +7,9 @@ VPATH := ../../lib ../
TARGET := efi.os
.DEFAULT: $(TARGET)
-# EFI API for temporary things
-
-EFIAPIDIR := /usr/local/include/efi
-
-CPPFLAGS += -I../../api -I$(EFIAPIDIR) -I$(EFIAPIDIR)/$(ARCH) -I$(EFIAPIDIR)/protocol
-CFLAGS += -Wno-unused-const-variable -Wno-unused-function -fvisibility=hidden \
- -g -fshort-wchar -mgeneral-regs-only
-
+CPPFLAGS += -I../../api
OBJS := entry_x86_64.o reloc_x86_64.o kc_main.o elf64.o memcmp.o memcpy.o \
memmove.o memset.o
-$(OBJS): CFLAGS += -fPIC
DEPS := $(patsubst %.o,%.d,$(OBJS))