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:
Axel Dörfler
2003-09-12 01:15:13 +00:00
parent e9117d1507
commit 6b770349d5
+55 -13
View File
@@ -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
:
malloc=boot_malloc free=boot_free read_pos=boot_read_pos close=boot_close # partitions
amiga_rdb.cpp
apple.cpp
intel.cpp
PartitionMap.cpp
# file systems
bfs.cpp
Directory.cpp
:
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
if $(OS) = "LINUX" { BOOT_SUPPORT_PARTITION_AMIGA
# SubDirC++Flags -include /usr/include/stdio.h ; BOOT_SUPPORT_PARTITION_APPLE
} else { BOOT_SUPPORT_PARTITION_INTEL
# SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ;
SubDirC++Flags -DHAVE_READ_POS=1 ; BOOT_SUPPORT_FILE_SYSTEM_BFS
;
defines = [ FDefines $(defines) ] ;
if $(OS) = "LINUX" {
# SubDirC++Flags -include /usr/include/stdio.h ;
} else {
# SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ;
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 ] ;