From 811903d10c81779cda38dd594a4215e9585d8c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 19 May 2004 23:59:41 +0000 Subject: [PATCH] Added a rule that builds a kernel add-on which links against our kernel. That makes it possible to use functions not available in the original R5 kernel. Might be a hack, but it seems to work. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7620 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jamrules b/Jamrules index 5190245f0d..c17bc38f94 100644 --- a/Jamrules +++ b/Jamrules @@ -1704,6 +1704,22 @@ actions KernelLd $(LINK) $(LINKFLAGS) -o "$(1)" "$(2)" $(LINKLIBS) ; } +rule KernelAddon +{ + # KernelAddon : : ; + + local sources = $(3) ; + + SetupKernel $(3) ; + Addon $(1) : $(2) : $(3) ; + ObjectCcFlags $(sources) : -D_KERNEL_MODE=1 -no-fpic ; + ObjectC++Flags $(sources) : -D_KERNEL_MODE=1 -no-fpic + -fno-exceptions -fno-rtti ; + LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib ; + LinkSharedOSLibs $(1) : $(OBOS_TOP)/objects/$(OBOS_ARCH).$(OBOS_VERSION)/kernel/kernel.so ; + # ToDo this has to be changed! +} + rule KernelMergeObject { # KernelMergeObject : : : ;