diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
| commit | 7a98e998c5cda484611d19854649ab8535f503d4 (patch) | |
| tree | 43f7dae6921ced5ee9001f1d31c662351678a718 /Makefile | |
| parent | c0178363472e162a7cb21e381c512979130dfdb0 (diff) | |
add simplet init system
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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: |