Added partitioning and file systems to the build.
Removed the boot loader heap - it now uses standard malloc()/free() in order to cause less confusion. The boot heap does have its own test app anyway. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4633 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,42 +4,73 @@ UsePrivateHeaders [ FDirName kernel ] ;
|
|||||||
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
||||||
UsePrivateHeaders [ FDirName storage ] ;
|
UsePrivateHeaders [ FDirName storage ] ;
|
||||||
SubDirHdrs $(OBOS_TOP) headers private kernel arch $(OBOS_ARCH) ;
|
SubDirHdrs $(OBOS_TOP) headers private kernel arch $(OBOS_ARCH) ;
|
||||||
|
SubDirHdrs $(OBOS_TOP) src add-ons kernel file_systems bfs ;
|
||||||
|
|
||||||
ObjectsDefines
|
ObjectsDefines
|
||||||
heap.cpp
|
# boot loader
|
||||||
main.cpp
|
main.cpp
|
||||||
vfs.cpp
|
vfs.cpp
|
||||||
partitions.cpp
|
partitions.cpp
|
||||||
stdio.cpp
|
stdio.cpp
|
||||||
RootFileSystem.cpp
|
RootFileSystem.cpp
|
||||||
|
|
||||||
|
# partitions
|
||||||
|
amiga_rdb.cpp
|
||||||
|
apple.cpp
|
||||||
|
intel.cpp
|
||||||
|
PartitionMap.cpp
|
||||||
|
|
||||||
|
# file systems
|
||||||
|
bfs.cpp
|
||||||
|
Directory.cpp
|
||||||
:
|
:
|
||||||
malloc=boot_malloc free=boot_free read_pos=boot_read_pos close=boot_close
|
read_pos=boot_read_pos fstat=boot_fstat open=boot_open close=boot_close
|
||||||
;
|
;
|
||||||
|
|
||||||
# This lets the correct stdio.h header be available
|
{
|
||||||
# on the build platform.
|
local defines =
|
||||||
# This will be fixed with the move to GNU's stdio header
|
_BOOT_MODE
|
||||||
|
BOOT_SUPPORT_PARTITION_AMIGA
|
||||||
|
BOOT_SUPPORT_PARTITION_APPLE
|
||||||
|
BOOT_SUPPORT_PARTITION_INTEL
|
||||||
|
|
||||||
|
BOOT_SUPPORT_FILE_SYSTEM_BFS
|
||||||
|
;
|
||||||
|
|
||||||
|
defines = [ FDefines $(defines) ] ;
|
||||||
|
|
||||||
if $(OS) = "LINUX" {
|
if $(OS) = "LINUX" {
|
||||||
# SubDirC++Flags -include /usr/include/stdio.h ;
|
# SubDirC++Flags -include /usr/include/stdio.h ;
|
||||||
} else {
|
} else {
|
||||||
# SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ;
|
# SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ;
|
||||||
SubDirC++Flags -DHAVE_READ_POS=1 ;
|
SubDirC++Flags $(defines) -DHAVE_READ_POS=1 -fno-builtins -fcheck-memory-usage -D_NO_INLINE_ASM ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleTest BootLoaderTest :
|
SimpleTest BootLoaderTest :
|
||||||
|
# userland bindings
|
||||||
platform_start.cpp
|
platform_start.cpp
|
||||||
#platform_console.cpp
|
|
||||||
platform_debug.cpp
|
platform_debug.cpp
|
||||||
platform_devices.cpp
|
platform_devices.cpp
|
||||||
platform_heap.cpp
|
platform_heap.cpp
|
||||||
Handle.cpp
|
Handle.cpp
|
||||||
|
|
||||||
|
# boot loader
|
||||||
main.cpp
|
main.cpp
|
||||||
vfs.cpp
|
vfs.cpp
|
||||||
partitions.cpp
|
partitions.cpp
|
||||||
heap.cpp
|
|
||||||
RootFileSystem.cpp
|
RootFileSystem.cpp
|
||||||
|
|
||||||
|
# partitioning systems
|
||||||
|
amiga_rdb.cpp
|
||||||
|
apple.cpp
|
||||||
|
intel.cpp
|
||||||
|
PartitionMap.cpp
|
||||||
|
|
||||||
|
# file systems
|
||||||
|
bfs.cpp
|
||||||
|
Directory.cpp
|
||||||
|
|
||||||
list.c
|
list.c
|
||||||
:
|
:
|
||||||
: -fno-builtin
|
: -fno-builtin
|
||||||
@@ -54,3 +85,14 @@ SEARCH on [ FGristFiles
|
|||||||
heap.cpp RootFileSystem.cpp
|
heap.cpp RootFileSystem.cpp
|
||||||
] = [ FDirName $(OBOS_TOP) src kernel boot loader ] ;
|
] = [ FDirName $(OBOS_TOP) src kernel boot loader ] ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles amiga_rdb.cpp ]
|
||||||
|
= [ FDirName $(OBOS_TOP) src add-ons kernel partitioning_systems amiga ] ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles apple.cpp ]
|
||||||
|
= [ FDirName $(OBOS_TOP) src add-ons kernel partitioning_systems apple ] ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles intel.cpp PartitionMap.cpp ]
|
||||||
|
= [ FDirName $(OBOS_TOP) src add-ons kernel partitioning_systems intel ] ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles bfs.cpp Directory.cpp ]
|
||||||
|
= [ FDirName $(OBOS_TOP) src kernel boot loader file_systems bfs ] ;
|
||||||
|
|||||||
Reference in New Issue
Block a user