2 include $(TOP)/config/make.cfg
4 # Allow to override include files by placing them in arch-specific directories
5 # Note that kernel_#?.h files must be included using #include <name>, not #include "name"
7 USER_CFLAGS := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel \
8 -I$(SRCDIR)/arch/all-$(ARCH)/kernel
10 USER_CFLAGS += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
12 USER_CFLAGS += -I$(SRCDIR)/arch/$(CPU)-all/kernel -I$(SRCDIR)/rom/kernel \
13 -I$(SRCDIR)/rom/exec \
14 -DAROS_ARCHITECTURE="\"$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU)\"" \
15 -D__AROS_EXEC_LIBRARY__
17 # Allow to add architecture-specific options
18 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel/make.opts
19 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/kernel/make.opts
21 FUNCS := addexceptionhandler addirqhandler bug cause cli createcontext deletecontext \
22 displayalert dispatch getbootinfo getscheduler issuper mapglobal \
23 remexceptionhandler remirqhandler schedule setprotection setscheduler sti \
24 switch unmapglobal virtualtophysical obtaininput releaseinput \
25 putchar maygetchar allocpages freepages getsystemattr setsystemattr \
27 FILES := kernel_init cpu_init kernel_cpu kernel_debug kernel_intr \
28 kernel_memory kernel_romtags kernel_scheduler kernel_timer
29 MMU_FILES := kernel_mm
30 # You can replace this with own algorithm
31 ALLOCATOR := mm_linear
34 FILES += $(MMU_FILES) $(ALLOCATOR)
37 %build_module mmake=kernel-kernel \
38 modname=kernel modtype=resource \
39 files="$(FILES) $(FUNCS)" uselibs="rom $(USER_LIBS)" nostartup=no