Added BFS_REPLACEMENT define that will enable compiling OpenBFS as as full
BFS replacement (will report itself as "bfs" instead of "obfs". Is there a way to change the add-on name based on the same define? git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7403 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,10 +11,18 @@ oldOPTIM = $(OPTIM) ;
|
|||||||
#BFS_BIG_ENDIAN_ONLY
|
#BFS_BIG_ENDIAN_ONLY
|
||||||
;
|
;
|
||||||
|
|
||||||
|
# Force the API version to be the R5 one even when compiling
|
||||||
|
# under Dano/Zeta
|
||||||
if $(COMPILE_FOR_R5) {
|
if $(COMPILE_FOR_R5) {
|
||||||
defines += COMPILE_FOR_R5 ;
|
defines += COMPILE_FOR_R5 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Enable OpenBFS to be compiled as a full BFS replacement. Will
|
||||||
|
# report itself as "bfs" instead of "obfs"
|
||||||
|
if $(BFS_REPLACEMENT) {
|
||||||
|
defines += BFS_REPLACEMENT
|
||||||
|
}
|
||||||
|
|
||||||
if $(DEBUG) = 0 {
|
if $(DEBUG) = 0 {
|
||||||
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
|
||||||
OPTIM = -O1 ;
|
OPTIM = -O1 ;
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ vnode_ops fs_entry = {
|
|||||||
#define BFS_IO_SIZE 65536
|
#define BFS_IO_SIZE 65536
|
||||||
|
|
||||||
// ToDo: has to change to "bfs" later
|
// ToDo: has to change to "bfs" later
|
||||||
#ifdef COMPILE_FOR_R5
|
#ifdef BFS_REPLACEMENT
|
||||||
# define BFS_NAME "bfs"
|
# define BFS_NAME "bfs"
|
||||||
#else
|
#else
|
||||||
# define BFS_NAME "obfs"
|
# define BFS_NAME "obfs"
|
||||||
|
|||||||
Reference in New Issue
Block a user