3 include $(SRCDIR)/config/aros.cfg
18 USER_AFLAGS := -I$(GENINCDIR) -I$(SRCDIR)/arch/all-pc/kernel
19 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) -I$(SRCDIR)/arch/all-native/kernel \
20 -isystem $(SRCDIR)/arch/all-native/bootconsole/include
22 #MM kernel-kernel-pc-x86_64 : kernel-pc-acpica-includes includes-asm_h-$(CPU) includes kernel-kernel-includes linklibs-bootconsole
23 #MM kernel-kernel-pc-x86_64-kobj : includes-asm_h-$(CPU) includes kernel-kernel-includes linklibs-bootconsole
24 #MM kernel-kernel-pc-x86_64-quick : kernel-kernel-native-quick
25 #MM kernel-kernel-pc-x86_64-kobj-quick : kernel-kernel-native-quick
28 mainmmake=kernel-kernel maindir=$(MAINDIR) \
29 arch=pc-x86_64 files="$(FILES) $(FUNCS)" asmfiles=$(ASMFILES) modname=kernel
31 # This builds SMP bootstrap code
33 OBJDIR := $(GENDIR)/$(CURDIR)
34 ARCHOBJDIR := $(GENDIR)/$(MAINDIR)/kernel/arch
36 kernel-kernel-pc-x86_64 :: $(ARCHOBJDIR)/smpboot.bin.o
37 kernel-kernel-pc-x86_64-quick :: $(ARCHOBJDIR)/smpboot.bin.o
38 kernel-kernel-pc-x86_64-kobj :: $(ARCHOBJDIR)/smpboot.bin.o
39 kernel-kernel-pc-x86_64-kobj-quick :: $(ARCHOBJDIR)/smpboot.bin.o
41 %rule_assemble_multi basenames=smpbootstrap targetdir=$(OBJDIR)
43 # Without -N the linker tries to page-align .text section and produces a huge file (over 2MB)
44 %rule_link_binary file=$(ARCHOBJDIR)/smpboot.bin.o name=smpbootstrap objs=$(OBJDIR)/smpbootstrap.o
46 $(OBJDIR)/smpbootstrap.o : | $(OBJDIR)
48 GLOB_MKDIRS += $(ARCHOBJDIR) $(OBJDIR)