aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-05-24 13:24:27 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-05-24 18:13:43 +0300
commitbc600ecc3bdf0f189861dfb840f70c2339a7a853 (patch)
treed9840b1dc1b865442a028c03ad7109ac67894f6e
parent6a7073e5f262db9a4578ff00b5b28e34335564ce (diff)
downloadkmi-bc600ecc3bdf0f189861dfb840f70c2339a7a853.tar.gz
kmi-bc600ecc3bdf0f189861dfb840f70c2339a7a853.zip
rename common to src
+ I keep starting to type src and wondering why autocomplete won't work, I guess src is just uncounciously a better name
-rw-r--r--Makefile12
-rw-r--r--docs/doxygen.conf2
-rw-r--r--src/bits.c (renamed from common/bits.c)0
-rw-r--r--src/canary.c (renamed from common/canary.c)0
-rw-r--r--src/debug.c (renamed from common/debug.c)0
-rw-r--r--src/dispatch.c (renamed from common/dispatch.c)0
-rw-r--r--src/dmem.c (renamed from common/dmem.c)0
-rw-r--r--src/elf.c (renamed from common/elf.c)0
-rw-r--r--src/fdt.c (renamed from common/fdt.c)0
-rw-r--r--src/initrd.c (renamed from common/initrd.c)0
-rw-r--r--src/ipi.c (renamed from common/ipi.c)0
-rw-r--r--src/irq.c (renamed from common/irq.c)0
-rw-r--r--src/main.c (renamed from common/main.c)0
-rw-r--r--src/mem.c (renamed from common/mem.c)0
-rw-r--r--src/mem_nodes.c (renamed from common/mem_nodes.c)2
-rw-r--r--src/mem_regions.c (renamed from common/mem_regions.c)0
-rw-r--r--src/nodes.c (renamed from common/nodes.c)0
-rw-r--r--src/panic.c (renamed from common/panic.c)0
-rw-r--r--src/pmem.c (renamed from common/pmem.c)0
-rw-r--r--src/proc.c (renamed from common/proc.c)2
-rw-r--r--src/sp_tree.c (renamed from common/sp_tree.c)0
-rw-r--r--src/string.c (renamed from common/string.c)0
-rw-r--r--src/tcb.c (renamed from common/tcb.c)0
-rw-r--r--src/timer.c (renamed from common/timer.c)0
-rw-r--r--src/uapi/cap.c (renamed from common/uapi/cap.c)0
-rw-r--r--src/uapi/conf.c (renamed from common/uapi/conf.c)0
-rw-r--r--src/uapi/dispatch.c (renamed from common/uapi/dispatch.c)0
-rw-r--r--src/uapi/ipc.c (renamed from common/uapi/ipc.c)0
-rw-r--r--src/uapi/irq.c (renamed from common/uapi/irq.c)0
-rw-r--r--src/uapi/mem.c (renamed from common/uapi/mem.c)0
-rw-r--r--src/uapi/proc.c (renamed from common/uapi/proc.c)0
-rw-r--r--src/uapi/timers.c (renamed from common/uapi/timers.c)0
-rw-r--r--src/vmem.c (renamed from common/vmem.c)0
33 files changed, 8 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 13fd1b5..161290e 100644
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,8 @@ setup:
ARCH ?= riscv64
ARCH_SOURCE = arch/$(ARCH)
-# might consider renaming common, currently it refers to stuff common
-# to all arches but clearly there are bits that are common to init and kernel
-KERNEL_SOURCES != echo common/*.c common/uapi/*.c lib/*.c
-INIT_SOURCES != echo lib/fdt*.c common/fdt.c common/string.c
+KERNEL_SOURCES != echo src/*.c src/uapi/*.c lib/*.c
+INIT_SOURCES != echo lib/fdt*.c src/fdt.c src/string.c
CLEANUP := build deps.mk kernel.* init.* kmi.bin
CLEANUP_CMD :=
@@ -37,17 +35,17 @@ include arch/$(ARCH)/source.mk
.PHONY: format
format:
- find arch lib common include -iname '*.[ch]' |\
+ find arch lib src include -iname '*.[ch]' |\
xargs uncrustify -c uncrustify.conf --no-backup -F -
.PHONY: license
license:
- find arch lib common include -iname '*.[ch]' |\
+ find arch lib src include -iname '*.[ch]' |\
xargs ./scripts/license
.PHONY: docs
docs:
- find arch lib common include -iname '*.[ch]' -not -path */gen/* |\
+ find arch lib src include -iname '*.[ch]' -not -path */gen/* |\
xargs ./scripts/warn-undocumented
doxygen docs/doxygen.conf
diff --git a/docs/doxygen.conf b/docs/doxygen.conf
index 8735a27..af3be32 100644
--- a/docs/doxygen.conf
+++ b/docs/doxygen.conf
@@ -945,7 +945,7 @@ WARN_LOGFILE =
# Note: If this tag is empty the current directory is searched.
INPUT = arch \
- common \
+ src \
include \
lib \
docs \
diff --git a/common/bits.c b/src/bits.c
index 6462d21..6462d21 100644
--- a/common/bits.c
+++ b/src/bits.c
diff --git a/common/canary.c b/src/canary.c
index 4f1f8ba..4f1f8ba 100644
--- a/common/canary.c
+++ b/src/canary.c
diff --git a/common/debug.c b/src/debug.c
index fcec537..fcec537 100644
--- a/common/debug.c
+++ b/src/debug.c
diff --git a/common/dispatch.c b/src/dispatch.c
index 2786678..2786678 100644
--- a/common/dispatch.c
+++ b/src/dispatch.c
diff --git a/common/dmem.c b/src/dmem.c
index bbabe09..bbabe09 100644
--- a/common/dmem.c
+++ b/src/dmem.c
diff --git a/common/elf.c b/src/elf.c
index da47502..da47502 100644
--- a/common/elf.c
+++ b/src/elf.c
diff --git a/common/fdt.c b/src/fdt.c
index 677be7b..677be7b 100644
--- a/common/fdt.c
+++ b/src/fdt.c
diff --git a/common/initrd.c b/src/initrd.c
index caff8b3..caff8b3 100644
--- a/common/initrd.c
+++ b/src/initrd.c
diff --git a/common/ipi.c b/src/ipi.c
index 59f9fd1..59f9fd1 100644
--- a/common/ipi.c
+++ b/src/ipi.c
diff --git a/common/irq.c b/src/irq.c
index db90d34..db90d34 100644
--- a/common/irq.c
+++ b/src/irq.c
diff --git a/common/main.c b/src/main.c
index 4647fed..4647fed 100644
--- a/common/main.c
+++ b/src/main.c
diff --git a/common/mem.c b/src/mem.c
index e3f98e7..e3f98e7 100644
--- a/common/mem.c
+++ b/src/mem.c
diff --git a/common/mem_nodes.c b/src/mem_nodes.c
index 358a68d..625b1a3 100644
--- a/common/mem_nodes.c
+++ b/src/mem_nodes.c
@@ -4,7 +4,7 @@
/**
* @file mem_nodes.c
* Memory node wrapper around the node subsystem, used by \ref
- * common/mem_regions.c.
+ * src/mem_regions.c.
*
* Each region of memory is allocated through a \ref mem_region node, which is
* allocated through the node subsystem.
diff --git a/common/mem_regions.c b/src/mem_regions.c
index 9468774..9468774 100644
--- a/common/mem_regions.c
+++ b/src/mem_regions.c
diff --git a/common/nodes.c b/src/nodes.c
index 5edb783..5edb783 100644
--- a/common/nodes.c
+++ b/src/nodes.c
diff --git a/common/panic.c b/src/panic.c
index 03c0de8..03c0de8 100644
--- a/common/panic.c
+++ b/src/panic.c
diff --git a/common/pmem.c b/src/pmem.c
index 4da3f4c..4da3f4c 100644
--- a/common/pmem.c
+++ b/src/pmem.c
diff --git a/common/proc.c b/src/proc.c
index e6c2769..b91c486 100644
--- a/common/proc.c
+++ b/src/proc.c
@@ -3,7 +3,7 @@
/**
* @file proc.c
- * Process handling, might be merged into \ref common/tcb.c.
+ * Process handling, might be merged into \ref src/tcb.c.
*/
#include <kmi/elf.h>
diff --git a/common/sp_tree.c b/src/sp_tree.c
index 9f69158..9f69158 100644
--- a/common/sp_tree.c
+++ b/src/sp_tree.c
diff --git a/common/string.c b/src/string.c
index 8c88e65..8c88e65 100644
--- a/common/string.c
+++ b/src/string.c
diff --git a/common/tcb.c b/src/tcb.c
index c0f82cc..c0f82cc 100644
--- a/common/tcb.c
+++ b/src/tcb.c
diff --git a/common/timer.c b/src/timer.c
index 272ba02..272ba02 100644
--- a/common/timer.c
+++ b/src/timer.c
diff --git a/common/uapi/cap.c b/src/uapi/cap.c
index 157ef47..157ef47 100644
--- a/common/uapi/cap.c
+++ b/src/uapi/cap.c
diff --git a/common/uapi/conf.c b/src/uapi/conf.c
index 894b98a..894b98a 100644
--- a/common/uapi/conf.c
+++ b/src/uapi/conf.c
diff --git a/common/uapi/dispatch.c b/src/uapi/dispatch.c
index 5b523cc..5b523cc 100644
--- a/common/uapi/dispatch.c
+++ b/src/uapi/dispatch.c
diff --git a/common/uapi/ipc.c b/src/uapi/ipc.c
index cb2ce28..cb2ce28 100644
--- a/common/uapi/ipc.c
+++ b/src/uapi/ipc.c
diff --git a/common/uapi/irq.c b/src/uapi/irq.c
index 6687826..6687826 100644
--- a/common/uapi/irq.c
+++ b/src/uapi/irq.c
diff --git a/common/uapi/mem.c b/src/uapi/mem.c
index d54390a..d54390a 100644
--- a/common/uapi/mem.c
+++ b/src/uapi/mem.c
diff --git a/common/uapi/proc.c b/src/uapi/proc.c
index e7fa49d..e7fa49d 100644
--- a/common/uapi/proc.c
+++ b/src/uapi/proc.c
diff --git a/common/uapi/timers.c b/src/uapi/timers.c
index b119fcc..b119fcc 100644
--- a/common/uapi/timers.c
+++ b/src/uapi/timers.c
diff --git a/common/vmem.c b/src/vmem.c
index f52f43e..f52f43e 100644
--- a/common/vmem.c
+++ b/src/vmem.c