mirror of
https://github.com/tailix/kernel.git
synced 2024-11-13 11:14:07 -05:00
Add process "procman"
This commit is contained in:
parent
7452fcb177
commit
57c2a09944
6 changed files with 19 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,6 +5,6 @@
|
|||
|
||||
/config.mk
|
||||
/rootfs/boot/kernelmq.multiboot2
|
||||
/rootfs/boot/syscallproc
|
||||
/rootfs/boot/procman
|
||||
/vendor/*
|
||||
!/vendor/.keep
|
||||
|
|
18
Makefile
18
Makefile
|
@ -4,9 +4,9 @@ AR = $(CCPREFIX)ar
|
|||
AS = $(CCPREFIX)as
|
||||
CC = $(CCPREFIX)gcc
|
||||
|
||||
GRUBCFG = rootfs/boot/grub/grub.cfg
|
||||
KERNEL = rootfs/boot/kernelmq.multiboot2
|
||||
SYSCALLPROC = rootfs/boot/syscallproc
|
||||
GRUBCFG = rootfs/boot/grub/grub.cfg
|
||||
KERNEL = rootfs/boot/kernelmq.multiboot2
|
||||
PROCMAN = rootfs/boot/procman
|
||||
|
||||
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
|
||||
|
||||
|
@ -59,17 +59,21 @@ clean:
|
|||
rm -f $(OBJS)
|
||||
rm -f $(IMAGE)
|
||||
rm -f $(KERNEL)
|
||||
rm -f $(SYSCALLPROC)
|
||||
rm -f $(PROCMAN)
|
||||
make -C procman clean
|
||||
|
||||
$(IMAGE): $(GRUBCFG) $(KERNEL) $(SYSCALLPROC)
|
||||
$(IMAGE): $(GRUBCFG) $(KERNEL) $(PROCMAN)
|
||||
grub-mkrescue rootfs -o $@
|
||||
|
||||
$(KERNEL): $(OBJS)
|
||||
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
|
||||
grub-file --is-x86-multiboot2 $@
|
||||
|
||||
$(SYSCALLPROC): syscallproc.asm
|
||||
nasm -f bin syscallproc.asm -o $@
|
||||
$(PROCMAN): procman/procman
|
||||
cp procman/procman $(PROCMAN)
|
||||
|
||||
procman/procman:
|
||||
make -C procman procman
|
||||
|
||||
%.c.o: %.c
|
||||
$(CC) -c $< -o $@ $(CFLAGS)
|
||||
|
|
1
procman/.gitignore
vendored
Normal file
1
procman/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/procman
|
5
procman/Makefile
Normal file
5
procman/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
|||
procman: main.asm
|
||||
nasm -f bin $< -o procman
|
||||
|
||||
clean:
|
||||
rm -f procman
|
|
@ -2,5 +2,5 @@ set timeout=0
|
|||
|
||||
menuentry "KernelMQ" {
|
||||
multiboot2 /boot/kernelmq.multiboot2
|
||||
module2 /boot/syscallproc
|
||||
module2 /boot/procman
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue