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 ;