summaryrefslogtreecommitdiff
path: root/sys/Makefile
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-19 20:50:10 -0400
committerstefan <stefan@s00.xyz>2023-04-19 20:50:10 -0400
commit83e17e29456ec9b6d45f4d9f2634eb280c6f414f (patch)
tree004a9b2a7cd3f0c7bb4224b59204680bd5d79681 /sys/Makefile
parentaf1ce4b2e637ceb418ea72d51c49a3eee276a938 (diff)
downloadsv-83e17e29456ec9b6d45f4d9f2634eb280c6f414f.tar.gz
ticket locks
Diffstat (limited to 'sys/Makefile')
-rw-r--r--sys/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/Makefile b/sys/Makefile
index 02ee0df..a766174 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -8,11 +8,11 @@ TARGETDIR=../mainboard/${TARGET}
.endif
SRC=\
- kern/entry.S\
- kern/init.c\
- kern/printf.c\
- kern/mm/kalloc.c\
- kern/spinlock.c\
+ sys/entry.S\
+ sys/init.c\
+ sys/printf.c\
+ sys/mm/kalloc.c\
+ sys/smp/spinlock.c\
dev/fdt/fdt.c
@@ -25,8 +25,9 @@ ${BUILDDIR}/kernel.elf: ${SRC}
-DLOAD_ADDR=${LOAD_ADDR}\
-DNPROC=${NPROC}\
-DPAGE_SIZE=${PAGE_SIZE}\
+ -I ../include\
-I ./include\
- ${CFLAGS} -T kern/kernel.lds ${LDFLAGS}\
+ ${CFLAGS} -T sys/kernel.lds ${LDFLAGS}\
-L../lib/${BUILDDIR}/\
-l:libc.a\
-o $@