mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Remove subdir "iso"
This commit is contained in:
parent
00be0457c6
commit
d3674d1b15
4 changed files with 9 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,5 +5,4 @@
|
|||
*.iso
|
||||
|
||||
/config.mk
|
||||
/kernelmq
|
||||
/arch/*/kernelmq
|
||||
|
|
25
Makefile
25
Makefile
|
@ -5,20 +5,26 @@ export AS = $(CCPREFIX)as
|
|||
export CC = $(CCPREFIX)gcc
|
||||
|
||||
export INCLUDE = $(shell pwd)/include
|
||||
export KERNEL = $(shell pwd)/kernelmq
|
||||
export KERNEL = $(shell pwd)/rootfs/boot/kernelmq.multiboot2
|
||||
|
||||
export LIBSRC = $(shell pwd)/src/libsrc.a
|
||||
export LIBK = $(shell pwd)/libk/libk.a
|
||||
|
||||
export CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I $(INCLUDE)
|
||||
|
||||
SUBDIRS = arch iso libk src
|
||||
SUBDIRS = arch libk src
|
||||
|
||||
run: run-iso
|
||||
IMAGE = $(shell pwd)/image.iso
|
||||
|
||||
run: all-kernel
|
||||
grub-file --is-x86-multiboot2 $(KERNEL)
|
||||
grub-mkrescue rootfs -o $(IMAGE)
|
||||
qemu-system-i386 -cdrom $(IMAGE)
|
||||
|
||||
all: all-kernel
|
||||
|
||||
clean: clean-kernel $(addprefix clean-, $(SUBDIRS))
|
||||
rm -f $(IMAGE)
|
||||
|
||||
##########
|
||||
# Kernel #
|
||||
|
@ -50,19 +56,6 @@ all-arch: all-src all-libk
|
|||
clean-arch:
|
||||
make clean -C arch
|
||||
|
||||
#######
|
||||
# ISO #
|
||||
#######
|
||||
|
||||
run-iso: all-iso
|
||||
make run -C iso
|
||||
|
||||
all-iso: all-kernel
|
||||
make all -C iso
|
||||
|
||||
clean-iso:
|
||||
make clean -C iso
|
||||
|
||||
########
|
||||
# libk #
|
||||
########
|
||||
|
|
10
iso/Makefile
10
iso/Makefile
|
@ -1,10 +0,0 @@
|
|||
run: all
|
||||
qemu-system-i386 -cdrom image.iso
|
||||
|
||||
all:
|
||||
grub-file --is-x86-multiboot2 "$(KERNEL)"
|
||||
cp "$(KERNEL)" rootfs/boot/kernelmq.multiboot2
|
||||
grub-mkrescue rootfs -o image.iso
|
||||
|
||||
clean:
|
||||
rm -f image.iso rootfs/boot/kernelmq.multiboot2
|
Loading…
Reference in a new issue