3 include $(SRCDIR)/config/aros.cfg
5 FILES := kernel_startup platform_init kernel_cpu kernel_debug kernel_memory kernel_bootmem \
6 intr acpi_tables mmu smp
7 FUNCS := getcpucount getcpunumber
8 ASMFILES := core_interrupts
11 USER_AFLAGS := -I$(GENINCDIR)
12 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) -I$(SRCDIR)/arch/all-native/kernel \
13 -isystem $(SRCDIR)/arch/all-native/bootconsole/include
15 #MM kernel-kernel-pc-x86_64 : kernel-pc-acpica-includes includes-asm_h-$(CPU) includes kernel-kernel-includes linklibs-bootconsole
16 #MM kernel-kernel-pc-x86_64-kobj : includes-asm_h-$(CPU) includes kernel-kernel-includes linklibs-bootconsole
17 #MM kernel-kernel-pc-x86_64-quick : kernel-kernel-native-quick
18 #MM kernel-kernel-pc-x86_64-kobj-quick : kernel-kernel-native-quick
21 mainmmake=kernel-kernel maindir=$(MAINDIR) \
22 arch=pc-x86_64 files="$(FILES) $(FUNCS)" asmfiles=$(ASMFILES)
24 # This builds SMP bootstrap code
26 OBJDIR := $(GENDIR)/$(CURDIR)
27 DESTDIR := $(GENDIR)/$(MAINDIR)/arch
30 kernel-kernel-pc-x86_64 :: $(OBJDIR) $(DESTDIR)/smpboot.bin.o
32 kernel-kernel-pc-x86_64-kobj :: $(OBJDIR) $(DESTDIR)/smpboot.bin.o
34 %rule_assemble_multi basenames=smpbootstrap targetdir=$(OBJDIR)
36 # Without -N the linker tries to page-align .text section and produces a huge file (over 2MB)
37 %rule_link_binary file=$(DESTDIR)/smpboot.bin.o name=smpbootstrap objs=$(OBJDIR)/smpbootstrap.o
40 @$(ECHO) Creating $@...