KernelAddon and KernelStaticLibrary don't include kernel, kernel arch, boot platform headers anymore.
Fixed the build of most of targets using these rules. Though the build can be still broken, feel free to fix. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18521 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
83333816a2
commit
44d5675324
@ -1,7 +1,7 @@
|
||||
|
||||
rule SetupKernel
|
||||
{
|
||||
# Usage SetupKernel <sources_or_objects> : <extra_cc_flags>;
|
||||
# Usage SetupKernel <sources_or_objects> : <extra_cc_flags> : <include_private_headers> ;
|
||||
#
|
||||
# <sources_or_objects> - Ideally sources, otherwise HDRSEARCH can not be
|
||||
# set for the sources and the sources some header
|
||||
@ -11,7 +11,9 @@ rule SetupKernel
|
||||
local objects = $(sources:S=$(SUFOBJ)) ;
|
||||
|
||||
# add private kernel headers
|
||||
SourceSysHdrs $(sources) : $(TARGET_PRIVATE_KERNEL_HEADERS) ;
|
||||
if $(3) != false {
|
||||
SourceSysHdrs $(sources) : $(TARGET_PRIVATE_KERNEL_HEADERS) ;
|
||||
}
|
||||
|
||||
local object ;
|
||||
for object in $(objects) {
|
||||
@ -103,7 +105,7 @@ rule KernelAddon
|
||||
Depends $(target) : $(beginGlue) $(endGlue) ;
|
||||
|
||||
# compile and link
|
||||
SetupKernel $(sources) : $(TARGET_KERNEL_PIC_FLAGS) ;
|
||||
SetupKernel $(sources) : $(TARGET_KERNEL_PIC_FLAGS) : false ;
|
||||
local linkFlags = -nostdlib -Xlinker -soname=\"$(target)\" ;
|
||||
LINKFLAGS on $(target) = [ on $(target) return $(LINKFLAGS) ] $(linkFlags) ;
|
||||
Main $(target) : $(sources) ;
|
||||
@ -132,7 +134,7 @@ rule KernelStaticLibrary
|
||||
# This is designed to take a set of sources and libraries and create
|
||||
# a file called lib<name>.a
|
||||
|
||||
SetupKernel $(2) : $(3) ;
|
||||
SetupKernel $(2) : $(3) : false ;
|
||||
Library $(1) : $(2) ;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel bus_managers config_manager ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
|
||||
KernelAddon config_manager : kernel bus_managers :
|
||||
config_manager.c
|
||||
;
|
||||
|
@ -2,6 +2,8 @@ SubDir HAIKU_TOP src add-ons kernel bus_managers pci arch x86 ;
|
||||
|
||||
SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ;
|
||||
|
||||
UsePrivateHeaders kernel [ FDirName kernel arch x86 ] ;
|
||||
|
||||
KernelStaticLibrary pci_arch_bus_manager :
|
||||
pci_bios.c
|
||||
pci_controller.c
|
||||
|
@ -1,6 +1,7 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel console vga_text ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
UsePrivateHeaders kernel [ FDirName kernel arch $(TARGET_ARCH) ]
|
||||
[ FDirName kernel boot platform $(HAIKU_BOOT_PLATFORM) ] ;
|
||||
|
||||
KernelAddon vga_text : kernel console :
|
||||
vga_text.c
|
||||
|
@ -1,6 +1,6 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel cpu x86 ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
UsePrivateHeaders kernel [ FDirName kernel arch $(TARGET_ARCH) ] ;
|
||||
|
||||
KernelAddon generic_x86 : kernel cpu :
|
||||
generic_x86.cpp
|
||||
|
@ -1,5 +1,7 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers bus usb ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
|
||||
KernelAddon usb_raw : kernel drivers bus usb :
|
||||
usb_raw.cpp
|
||||
;
|
||||
|
@ -1,5 +1,7 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers common ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
|
||||
KernelAddon dprintf : kernel drivers dev :
|
||||
dprintf.cpp
|
||||
;
|
||||
|
@ -1,7 +1,6 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers graphics vesa ;
|
||||
|
||||
UsePrivateHeaders graphics ;
|
||||
UsePrivateHeaders [ FDirName graphics vesa ] ;
|
||||
UsePrivateHeaders kernel graphics [ FDirName graphics vesa ] ;
|
||||
|
||||
KernelAddon vesa : kernel drivers bin :
|
||||
device.cpp
|
||||
|
@ -10,7 +10,7 @@ if ( $(TARGET_PLATFORM) != haiku ) {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
# a) Userland stack version:
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers random ;
|
||||
|
||||
UsePrivateHeaders kernel [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
UseArchHeaders $(TARGET_ARCH) ;
|
||||
|
||||
KernelAddon random : kernel drivers dev :
|
||||
driver.c
|
||||
;
|
||||
|
@ -9,6 +9,8 @@ oldOPTIM = $(OPTIM) ;
|
||||
SubDirC++Flags -Wall -Wno-multichar -fno-rtti ;
|
||||
}
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
|
||||
KernelAddon iso9660 : kernel file_systems :
|
||||
iso.c
|
||||
iso9660.cpp
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <Drivers.h>
|
||||
#include <OS.h>
|
||||
#include <lock.h>
|
||||
#include <KernelExport.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
@ -24,6 +23,7 @@
|
||||
#include <ByteOrder.h>
|
||||
#include <fs_cache.h>
|
||||
|
||||
#include "lock.h"
|
||||
#include "rock.h"
|
||||
#include "iso.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <fs_interface.h>
|
||||
#include <lock.h>
|
||||
#include "lock.h"
|
||||
#include <time.h>
|
||||
#include <endian.h>
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <lock.h>
|
||||
#include <malloc.h>
|
||||
|
||||
#include <KernelExport.h>
|
||||
@ -34,6 +33,7 @@
|
||||
|
||||
#include <util/kernel_cpp.h>
|
||||
|
||||
#include "lock.h"
|
||||
#include "iso.h"
|
||||
#include "iso9660.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon <module>arp : kernel haiku_network datalink_protocols :
|
||||
arp.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon ethernet_frame : kernel haiku_network datalink_protocols :
|
||||
ethernet_frame.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon ethernet : kernel haiku_network devices :
|
||||
ethernet.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon icmp : kernel haiku_network protocols :
|
||||
icmp.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon ipv4 : kernel haiku_network protocols :
|
||||
ipv4.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon tcp : kernel haiku_network protocols :
|
||||
tcp.cpp
|
||||
|
@ -10,7 +10,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
# Unfortunately we get more than we want, namely all POSIX headers.
|
||||
}
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon udp : kernel haiku_network protocols :
|
||||
udp.cpp
|
||||
|
@ -11,7 +11,7 @@ if $(TARGET_PLATFORM) != haiku {
|
||||
}
|
||||
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePrivateHeaders kernel net ;
|
||||
|
||||
KernelAddon stack : kernel haiku_network :
|
||||
datalink.cpp
|
||||
|
@ -5,9 +5,8 @@ SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ;
|
||||
SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ;
|
||||
UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
||||
UsePrivateHeaders [ FDirName kernel util ] ;
|
||||
UsePrivateHeaders [ FDirName shared ] ;
|
||||
UsePrivateHeaders [ FDirName storage ] ;
|
||||
UsePrivateHeaders [ FDirName kernel util ] [ FDirName kernel arch $(TARGET_ARCH) ] ;
|
||||
UsePrivateHeaders kernel shared storage ;
|
||||
|
||||
{
|
||||
local defines =
|
||||
|
@ -2,7 +2,7 @@ SubDir HAIKU_TOP src system boot loader file_systems amiga_ffs ;
|
||||
|
||||
UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
||||
UsePrivateHeaders [ FDirName storage ] ;
|
||||
UsePrivateHeaders kernel storage ;
|
||||
|
||||
#SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems amiga_ffs ;
|
||||
|
||||
|
@ -2,7 +2,7 @@ SubDir HAIKU_TOP src system boot loader file_systems bfs ;
|
||||
|
||||
UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
||||
UsePrivateHeaders [ FDirName storage ] ;
|
||||
UsePrivateHeaders kernel storage ;
|
||||
|
||||
SubDirHdrs $(HAIKU_TOP) src add-ons kernel file_systems bfs ;
|
||||
|
||||
|
@ -4,7 +4,7 @@ UseHeaders [ FDirName $(HAIKU_TOP) headers libs zlib ] ;
|
||||
|
||||
UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
|
||||
UsePrivateHeaders shared storage ;
|
||||
UsePrivateHeaders kernel shared storage ;
|
||||
SubDirSysHdrs $(HAIKU_TOP) headers libs zlib ;
|
||||
|
||||
SubDirC++Flags -fno-rtti ;
|
||||
|
@ -1,10 +1,10 @@
|
||||
SubDir HAIKU_TOP src system boot loader net ;
|
||||
|
||||
UsePrivateHeaders kernel ;
|
||||
UsePrivateHeaders kernel [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
|
||||
|
||||
SubDirC++Flags -fno-rtti ;
|
||||
|
||||
KernelStaticLibrary boot_net.a :
|
||||
KernelStaticLibrary boot_net :
|
||||
ARP.cpp
|
||||
ChainBuffer.cpp
|
||||
Ethernet.cpp
|
||||
|
@ -5,6 +5,9 @@ SubDirHdrs [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR) system kernel ] ;
|
||||
SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers ps2 ;
|
||||
SubDirHdrs $(SUBDIR) $(DOTDOT) generic ;
|
||||
|
||||
UsePrivateHeaders kernel [ FDirName kernel arch $(TARGET_ARCH) ]
|
||||
[ FDirName kernel boot platform $(HAIKU_BOOT_PLATFORM) ] ;
|
||||
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
|
||||
|
||||
KernelStaticLibrary libx86 :
|
||||
|
Loading…
Reference in New Issue
Block a user