From b0ea42e4a95478197d4d7e73791dae012cda6a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Sabat=C3=A9=20Sol=C3=A0?= Date: Tue, 26 Nov 2024 22:44:45 +0100 Subject: [PATCH] Move initrd.c into lib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- Makefile | 2 +- {kernel => lib}/initrd.c | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {kernel => lib}/initrd.c (100%) 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 similarity index 100% rename from kernel/initrd.c rename to lib/initrd.c