aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-26 22:44:45 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-26 22:44:45 +0100
commitb0ea42e4a95478197d4d7e73791dae012cda6a4a (patch)
tree974ff04c0100467bf6ca420bc7d15e015231598d
parent053f93edecf6aa02ec29366621adf2de6522cdf3 (diff)
downloadfbos-b0ea42e4a95478197d4d7e73791dae012cda6a4a.tar.gz
fbos-b0ea42e4a95478197d4d7e73791dae012cda6a4a.zip
Move initrd.c into lib
Even if it's tightly coupled with the kernel (e.g. identifying specific tasks from the kernel), in the end it's a library and so it should be placed accordingly. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--Makefile2
-rw-r--r--lib/initrd.c (renamed from kernel/initrd.c)0
2 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 60feb98..bf27042 100644
--- a/Makefile
+++ b/Makefile
@@ -120,7 +120,7 @@ test: host_lib usr $(TESTS)
host_lib:
$(Q) mkdir -p test/lib
$(Q) $(HOSTCC) $(WARNINGS) -Iinclude/ -g -c lib/dt.c -o test/lib/dt.o
- $(Q) $(HOSTCC) $(WARNINGS) -Iinclude/ -g -c kernel/initrd.c -o test/lib/initrd.o
+ $(Q) $(HOSTCC) $(WARNINGS) -Iinclude/ -g -c lib/initrd.c -o test/lib/initrd.o
test/%.o: test/%.c
$(Q) $(HOSTCC) $(WARNINGS) -g -Iinclude/ -c $< -o $@
diff --git a/kernel/initrd.c b/lib/initrd.c
index 62a4e20..62a4e20 100644
--- a/kernel/initrd.c
+++ b/lib/initrd.c