From 7a98e998c5cda484611d19854649ab8535f503d4 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Tue, 14 Feb 2023 17:09:59 +0100 Subject: add simplet init system --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d90bcc9..1d26ad3 100644 --- a/Makefile +++ b/Makefile @@ -34,13 +34,20 @@ target: initramfs: target core smash @echo Installing Initramfs - @mkdir -p ${INITRAMFS}/system/config ${INITRAMFS}/system/manual ${INITRAMFS}/system/core ${INITRAMFS}/system/utils ${INITRAMFS}/system/scripts ${INITRAMFS}/system/devices + @mkdir -p ${INITRAMFS}/system/config \ + ${INITRAMFS}/system/manual \ + ${INITRAMFS}/system/core \ + ${INITRAMFS}/system/utils \ + ${INITRAMFS}/system/scripts \ + ${INITRAMFS}/system/devices \ + ${INITRAMFS}/system/info \ + ${INITRAMFS}/system/process @cp core/objects/* ${INITRAMFS}/system/core/ - @cp core/init ${INITRAMFS}/system/core/ + @cp utils/init ${INITRAMFS}/system/core/ @cp smash/smash ${INITRAMFS}/system/core/ @cp utils/* ${INITRAMFS}/system/utils/ @cp man/* ${INITRAMFS}/system/manual/ - @cp config/* ${INITRAMFS}/system/config/ + @cp -r config/* ${INITRAMFS}/system/config/ @echo Building Initramfs @cd ${INITRAMFS} && find . | cpio -o --quiet --format=newc > ../initramfs.img @@ -52,7 +59,7 @@ ${TARGET}/kernel: @mv linux-${KERNEL_VERSION} ${TARGET}/kernel-src @cp build_config/linux.config ${TARGET}/kernel-src/.config @echo Building Kernel - @$(MAKE) -C ${TARGET}/kernel-src + $(MAKE) -C ${TARGET}/kernel-src @cp ${TARGET}/kernel-src/arch/x86_64/boot/bzImage ${TARGET}/kernel ${TARGET}/syslinux: -- cgit v1.2.3-70-g09d2