From 2b89e0b32f14a2d83f656db26abc394051745bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 7 Jun 2004 23:11:17 +0000 Subject: [PATCH] Now builds two file systems: "bfs" is now the file system for the new kernel, while "bfs_r5" or "obfs_r5" is the one for the R5/Zeta kernel. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7826 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Jamfile | 24 +++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Jamfile b/src/add-ons/kernel/file_systems/bfs/Jamfile index e55006af16..d1990522f5 100644 --- a/src/add-ons/kernel/file_systems/bfs/Jamfile +++ b/src/add-ons/kernel/file_systems/bfs/Jamfile @@ -11,16 +11,13 @@ oldOPTIM = $(OPTIM) ; #BFS_BIG_ENDIAN_ONLY ; - # Force the API version to be the R5 one even when compiling - # under Dano/Zeta - if $(COMPILE_FOR_R5) { - defines += COMPILE_FOR_R5 ; - } else if $(COMPILE_FOR_ZETA) { + # By default, the R5 API version is used unless you define this + if $(COMPILE_FOR_ZETA) { defines += COMPILE_FOR_ZETA ; } - + # Enable OpenBFS to be compiled as a full BFS replacement. Will - # report itself as "bfs" instead of "obfs" + # report itself as "bfs" instead of "obfs" (only R5 version) if $(BFS_REPLACEMENT) { defines += BFS_REPLACEMENT ; bfsAddOnName = bfs ; @@ -40,7 +37,7 @@ oldOPTIM = $(OPTIM) ; UsePrivateHeaders [ FDirName kernel ] ; # For kernel_cpp.cpp -R5KernelAddon $(bfsAddOnName) : [ FDirName kernel file_systems ] : +KernelStaticLibrary libbfs : BlockAllocator.cpp BPlusTree.cpp kernel_cpp.cpp @@ -48,13 +45,22 @@ R5KernelAddon $(bfsAddOnName) : [ FDirName kernel file_systems ] : Index.cpp Inode.cpp Journal.cpp - kernel_interface.cpp Query.cpp Utility.cpp Volume.cpp BufferPool.cpp ; +KernelAddon bfs : kernel file_systems : + kernel_interface.cpp + : libbfs.a + ; + +R5KernelAddon $(bfsAddOnName)_r5 : kernel file_systems : + kernel_interface_r5.cpp + : libbfs.a + ; + SEARCH on [ FGristFiles kernel_cpp.cpp ] = [ FDirName $(OBOS_TOP) src kernel core util ] ;