From 1dd920800b6a0ffcc54f44d49ff5481d3a0493e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Oct 2003 21:02:27 +0000 Subject: [PATCH] The console driver is now only compiled and linked into the kernel on x86. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5194 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/drivers/Jamfile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/kernel/drivers/Jamfile b/src/kernel/drivers/Jamfile index 5cb50b8e22..a88843457d 100644 --- a/src/kernel/drivers/Jamfile +++ b/src/kernel/drivers/Jamfile @@ -1,12 +1,22 @@ SubDir OBOS_TOP src kernel drivers ; -KernelStaticLibrary libdrivers : - <$(SOURCE_GRIST)>dev.c +{ + local console_src ; - <$(SOURCE_GRIST)>arch/$(OBOS_ARCH)/console/console.c - <$(SOURCE_GRIST)>fb_console/fb_console.c - : - -fno-pic -Wno-unused - ; + # console is currently x86 only + if $(OBOS_ARCH) = x86 { + console_src = <$(SOURCE_GRIST)>arch/$(OBOS_ARCH)/console/console.c ; + } else { + console_src = ; + } + + KernelStaticLibrary libdrivers : + <$(SOURCE_GRIST)>dev.c + $(console_src) + <$(SOURCE_GRIST)>fb_console/fb_console.c + : + -fno-pic -Wno-unused + ; +} SubInclude OBOS_TOP src kernel drivers arch ;