Made it easier to switch from R5 compilation to the test "obfs" compilation.
$ COMPILE_FOR_R5=1 jam will compile the "bfs" version, otherwise the "obfs" version is created. Note: the final executable will always be called obfs (for now). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1591 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b010ca6720
commit
7ab95d9da9
@ -6,6 +6,10 @@ SubDir OBOS_TOP src add-ons kernel file_systems bfs ;
|
|||||||
KEEP_WRONG_DIRENT_RECLEN
|
KEEP_WRONG_DIRENT_RECLEN
|
||||||
;
|
;
|
||||||
|
|
||||||
|
if $(COMPILE_FOR_R5) {
|
||||||
|
defines += COMPILE_FOR_R5 ;
|
||||||
|
}
|
||||||
|
|
||||||
if $(DEBUG) {
|
if $(DEBUG) {
|
||||||
defines += DEBUG ;
|
defines += DEBUG ;
|
||||||
} else {
|
} else {
|
||||||
|
@ -60,7 +60,7 @@ typedef ino_t vnode_id;
|
|||||||
// B_CUR_FS_API_VERSION is 2 for R5, but 3 on Dano, because of the
|
// B_CUR_FS_API_VERSION is 2 for R5, but 3 on Dano, because of the
|
||||||
// added calls for power management - so it's set to 3 here because
|
// added calls for power management - so it's set to 3 here because
|
||||||
// that's a requirement to let Dano boot from our fs...
|
// that's a requirement to let Dano boot from our fs...
|
||||||
#ifdef B_BEOS_VERSION_DANO
|
#if defined(B_BEOS_VERSION_DANO) && !defined(COMPILE_FOR_R5)
|
||||||
# define B_CUR_FS_API_VERSION 3
|
# define B_CUR_FS_API_VERSION 3
|
||||||
#else
|
#else
|
||||||
# define B_CUR_FS_API_VERSION 2
|
# define B_CUR_FS_API_VERSION 2
|
||||||
|
@ -213,8 +213,13 @@ vnode_ops fs_entry = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define BFS_IO_SIZE 65536
|
#define BFS_IO_SIZE 65536
|
||||||
#define BFS_NAME "obfs"
|
|
||||||
// ToDo: has to change to "bfs" later
|
// ToDo: has to change to "bfs" later
|
||||||
|
#ifdef COMPILE_FOR_R5
|
||||||
|
# define BFS_NAME "bfs"
|
||||||
|
#else
|
||||||
|
# define BFS_NAME "obfs"
|
||||||
|
#endif
|
||||||
|
|
||||||
int32 api_version = B_CUR_FS_API_VERSION;
|
int32 api_version = B_CUR_FS_API_VERSION;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user