haiku/src/system/kernel/Jamfile
Ingo Weinhold ef3966e888 Added version scripts for the kernel, libroot, and libbe. ATM each has two
version nodes: *_BASE and *_1_ALPHA1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-22 14:53:31 +00:00

188 lines
4.3 KiB
Plaintext

SubDir HAIKU_TOP src system kernel ;
{
local defines =
HAIKU_ARCH=\\\"$(TARGET_ARCH)\\\"
;
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) ;
SubDirC++Flags $(defines) ;
}
SEARCH_SOURCE += [ FDirName $(SUBDIR) scheduler ] ;
UsePrivateHeaders libroot ;
UsePrivateHeaders shared ;
UsePrivateHeaders runtime_loader ;
AddResources kernel_$(TARGET_ARCH) : kernel.rdef ;
SetVersionScript kernel_$(TARGET_ARCH) : kernel_versions ;
SetVersionScript kernel.so : kernel_versions ;
KernelMergeObject kernel_core.o :
boot_item.cpp
boot_splash.cpp
commpage.cpp
condition_variable.cpp
cpu.c
elf.cpp
heap.cpp
image.cpp
int.c
kernel_daemon.cpp
linkhack.c
listeners.cpp
lock.cpp
low_resource_manager.cpp
main.cpp
module.cpp
Notifications.cpp
port.cpp
real_time_clock.c
sem.cpp
shutdown.c
signal.cpp
system_info.cpp
smp.cpp
syscalls.cpp
team.cpp
thread.cpp
timer.cpp
usergroup.cpp
wait_for_objects.cpp
# scheduler
scheduler.cpp
scheduler_simple.cpp
scheduler_affine.cpp
scheduler_tracing.cpp
scheduling_analysis.cpp
: $(TARGET_KERNEL_PIC_CCFLAGS)
;
# We need to specify the dependency on the generated syscalls files explicitly.
Includes [ FGristFiles syscalls.cpp ]
: <syscalls>syscall_dispatcher.h <syscalls>syscall_table.h
<syscalls>syscall_numbers.h
;
# TODO: fix or update binutils for ppc, in the meantime this should get things going.
local linkHackLdFlags ;
if $(TARGET_ARCH) = ppc {
linkHackLdFlags = -Bdynamic ;
} else {
linkHackLdFlags = -shared -Bdynamic ;
}
KernelLd linkhack.so :
<$(SOURCE_GRIST)>linkhack.o
:
:
$(linkHackLdFlags)
;
KernelLd kernel_$(TARGET_ARCH) :
kernel_cache.o
kernel_core.o
kernel_debug.o
kernel_device_manager.o
kernel_disk_device_manager.o
kernel_fs.o
kernel_messaging.o
kernel_posix.o
kernel_slab.o
kernel_util.o
kernel_vm.o
kernel_arch_$(TARGET_ARCH).o
kernel_platform_$(TARGET_BOOT_PLATFORM).o
linkhack.so
# kernel parts borrowed from libroot and others
kernel_os_main.o
kernel_os_arch_$(TARGET_ARCH).o
kernel_lib_posix.o
kernel_lib_posix_arch_$(TARGET_ARCH).o
kernel_misc.o
$(HAIKU_STATIC_LIBSUPC++)
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/kernel.ld
: -Bdynamic -export-dynamic -dynamic-linker /foo/bar
$(TARGET_KERNEL_PIC_LINKFLAGS)
:
;
KernelLd kernel.so :
kernel_cache.o
kernel_core.o
kernel_debug.o
kernel_device_manager.o
kernel_disk_device_manager.o
kernel_fs.o
kernel_messaging.o
kernel_posix.o
kernel_slab.o
kernel_util.o
kernel_vm.o
kernel_arch_$(TARGET_ARCH).o
kernel_platform_$(TARGET_BOOT_PLATFORM).o
linkhack.so
# kernel libroot parts
kernel_os_main.o
kernel_os_arch_$(TARGET_ARCH).o
kernel_lib_posix.o
kernel_lib_posix_arch_$(TARGET_ARCH).o
kernel_misc.o
$(HAIKU_STATIC_LIBSUPC++)
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/kernel.ld
: -Bdynamic -shared -export-dynamic -dynamic-linker /foo/bar
$(TARGET_KERNEL_PIC_LINKFLAGS)
;
NotFile kernel ;
Depends kernel : kernel_$(TARGET_ARCH) ;
Depends kernel.so : kernel ;
# kernel.so will be rebuilt with the kernel
# propagate HAIKU_INCLUDE_IN_IMAGE variable from kernel to kernel_$(TARGET_ARCH)
HAIKU_INCLUDE_IN_IMAGE on kernel_$(TARGET_ARCH)
= [ on kernel return $(HAIKU_INCLUDE_IN_IMAGE) ] ;
# Copy kernel and update the copy's revision section. We link everything
# against the original, but the copy will end up on the disk image (this way
# we avoid unnecessary dependencies). The copy will be located in a subdirectory.
if $(TARGET_PLATFORM) = haiku {
MakeLocate <revisioned>kernel_$(TARGET_ARCH)
: [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) revisioned ] ;
CopySetHaikuRevision <revisioned>kernel_$(TARGET_ARCH)
: kernel_$(TARGET_ARCH) ;
}
SubInclude HAIKU_TOP src system kernel arch ;
SubInclude HAIKU_TOP src system kernel cache ;
SubInclude HAIKU_TOP src system kernel device_manager ;
SubInclude HAIKU_TOP src system kernel debug ;
SubInclude HAIKU_TOP src system kernel disk_device_manager ;
SubInclude HAIKU_TOP src system kernel fs ;
SubInclude HAIKU_TOP src system kernel lib ;
SubInclude HAIKU_TOP src system kernel messaging ;
SubInclude HAIKU_TOP src system kernel posix ;
SubInclude HAIKU_TOP src system kernel slab ;
SubInclude HAIKU_TOP src system kernel util ;
SubInclude HAIKU_TOP src system kernel vm ;
if $(TARGET_BOOT_PLATFORM) {
SubInclude HAIKU_TOP src system kernel platform $(TARGET_BOOT_PLATFORM) ;
}