Merge branch 'disk' of gitlab.os-k.eu:os-k-team/os-k into disk
This commit is contained in:
commit
d515b38f60
11
Makefile
11
Makefile
|
@ -113,10 +113,11 @@ KernSources = kernel/ke/cpuid.c kernel/mm/paging.c \
|
||||||
kernel/ke/rtc.c kernel/io/keyb.c \
|
kernel/ke/rtc.c kernel/io/keyb.c \
|
||||||
kernel/io/spkr.c kernel/po/shtdwn.c \
|
kernel/io/spkr.c kernel/po/shtdwn.c \
|
||||||
kernel/sh/shell.c kernel/sh/shcmds.c \
|
kernel/sh/shell.c kernel/sh/shcmds.c \
|
||||||
kernel/sh/musage.c kernel/io/ata.c \
|
kernel/sh/musage.c \
|
||||||
kernel/sh/argv.c kernel/ke/pit.c \
|
kernel/sh/argv.c kernel/ke/pit.c \
|
||||||
kernel/sh/testcmds.c kernel/mm/palloc.c \
|
kernel/sh/testcmds.c kernel/mm/palloc.c \
|
||||||
kernel/io/acpi.c kernel/io/pci.c
|
kernel/io/acpi.c kernel/io/pci.c \
|
||||||
|
drivers/ata.c
|
||||||
|
|
||||||
KernObj=$(patsubst %.c,$(KOBJDIR)/%.o,$(KernSources))
|
KernObj=$(patsubst %.c,$(KOBJDIR)/%.o,$(KernSources))
|
||||||
KernDep=$(patsubst %.c,$(KOBJDIR)/%.d,$(KernSources))
|
KernDep=$(patsubst %.c,$(KOBJDIR)/%.d,$(KernSources))
|
||||||
|
@ -219,10 +220,10 @@ $(KOBJDIR)/kernel/mm/gdt.o: $(KALEIDDIR)/kernel/mm/gdt.c \
|
||||||
@rm -f $@.1 $@.2
|
@rm -f $@.1 $@.2
|
||||||
@echo ${CL2}[$@] ${CL}Compiled.${CL3}
|
@echo ${CL2}[$@] ${CL}Compiled.${CL3}
|
||||||
|
|
||||||
$(KOBJDIR)/kernel/io/ata.o: $(KALEIDDIR)/kernel/io/ata.c \
|
$(KOBJDIR)/drivers/ata.o: $(KALEIDDIR)/drivers/ata.c \
|
||||||
$(KALEIDDIR)/kernel/io/ata.asm | $(KOBJDIR)
|
$(KALEIDDIR)/drivers/ata.asm | $(KOBJDIR)
|
||||||
@mkdir -p $(shell dirname $@)
|
@mkdir -p $(shell dirname $@)
|
||||||
@$(ASM) $(ASMFLAGS) $(KALEIDDIR)/kernel/io/ata.asm -o $@.1
|
@$(ASM) $(ASMFLAGS) $(KALEIDDIR)/drivers/ata.asm -o $@.1
|
||||||
@$(KCC) $< -o $@.2
|
@$(KCC) $< -o $@.2
|
||||||
@$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@
|
@$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@
|
||||||
@rm -f $@.1 $@.2
|
@rm -f $@.1 $@.2
|
||||||
|
|
Loading…
Reference in New Issue