2007-07-11 05:04:35 +04:00
|
|
|
# This file defines what ends up in the network boot archive and it executes the
|
|
|
|
# rules building the archive.
|
|
|
|
|
2009-08-13 15:09:10 +04:00
|
|
|
|
2009-04-03 13:42:58 +04:00
|
|
|
SYSTEM_NETWORK_DEVICES = ethernet loopback ;
|
2010-07-29 00:12:49 +04:00
|
|
|
SYSTEM_NETWORK_DATALINK_PROTOCOLS = ethernet_frame <module>arp loopback_frame ;
|
2009-08-13 15:09:10 +04:00
|
|
|
SYSTEM_NETWORK_PROTOCOLS = ipv4 tcp udp icmp unix ;
|
|
|
|
|
2012-12-09 07:07:29 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_NET = [ FFilterByBuildFeatures
|
|
|
|
x86 @{
|
2021-10-22 00:19:58 +03:00
|
|
|
3com atheros813x atheros81xx
|
2012-12-09 07:07:29 +04:00
|
|
|
broadcom440x broadcom570x ipro1000
|
|
|
|
rtl8139 rtl81xx
|
|
|
|
via_rhine ipro100 nforce
|
2018-12-21 22:22:32 +03:00
|
|
|
marvell_yukon sis900 syskonnect
|
2021-10-22 00:19:58 +03:00
|
|
|
attansic_l2
|
2012-12-09 07:07:29 +04:00
|
|
|
}@ # x86
|
|
|
|
|
2018-12-21 22:22:32 +03:00
|
|
|
etherpci pegasus usb_ecm wb840
|
2012-12-09 07:07:29 +04:00
|
|
|
] ;
|
|
|
|
SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
|
2019-02-26 03:56:07 +03:00
|
|
|
pci isa@x86 ata
|
2022-04-14 22:12:43 +03:00
|
|
|
scsi agp_gart
|
2012-12-09 07:07:29 +04:00
|
|
|
] ;
|
2016-08-06 21:20:35 +03:00
|
|
|
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs packagefs ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
|
|
|
|
# modules
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel bus_managers
|
|
|
|
: $(SYSTEM_ADD_ONS_BUS_MANAGERS) ;
|
|
|
|
AddFilesToNetBootArchive system add-ons kernel busses agp_gart
|
2012-12-09 07:07:29 +04:00
|
|
|
: <agp_gart>intel@x86 ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel busses ide
|
2012-12-09 07:07:29 +04:00
|
|
|
: generic_ide_pci ide_isa@x86 silicon_image_3112 ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel busses scsi
|
2008-11-14 23:34:52 +03:00
|
|
|
: ahci ;
|
2011-06-16 11:00:06 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel console
|
|
|
|
: vga_text ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel file_systems
|
|
|
|
: $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ;
|
|
|
|
AddFilesToNetBootArchive system add-ons kernel generic
|
2019-02-26 03:56:07 +03:00
|
|
|
: ata_adapter locked_pool scsi_periph ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel partitioning_systems
|
2007-07-11 05:04:35 +04:00
|
|
|
: intel session ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel interrupt_controllers
|
2012-12-09 07:07:29 +04:00
|
|
|
: openpic@ppc ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
if $(TARGET_ARCH) = x86 {
|
2011-06-16 11:00:06 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel cpu
|
|
|
|
: generic_x86 ;
|
2007-07-11 05:04:35 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
# drivers
|
2008-11-14 23:34:52 +03:00
|
|
|
AddNewDriversToNetBootArchive disk scsi : scsi_cd scsi_disk ;
|
2008-06-17 13:28:00 +04:00
|
|
|
#AddDriversToNetBootArchive disk virtual : nbd ;
|
2007-07-15 04:15:54 +04:00
|
|
|
AddDriversToNetBootArchive disk virtual : remote_disk ;
|
2009-08-13 15:09:10 +04:00
|
|
|
AddDriversToNetBootArchive net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
# kernel
|
2011-06-16 11:00:06 +04:00
|
|
|
AddFilesToNetBootArchive system
|
|
|
|
: <revisioned>kernel_$(TARGET_ARCH) ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
# scripts and data files
|
|
|
|
|
|
|
|
local driverSettingsFiles = <driver-settings>kernel ;
|
|
|
|
SEARCH on $(driverSettingsFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data settings kernel drivers ] ;
|
|
|
|
AddFilesToNetBootArchive home config settings kernel drivers
|
|
|
|
: $(driverSettingsFiles) ;
|
|
|
|
|
|
|
|
# add-ons
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel network
|
2016-08-06 21:20:35 +03:00
|
|
|
: stack ;
|
2009-04-03 13:42:58 +04:00
|
|
|
AddFilesToNetBootArchive system add-ons kernel network devices
|
|
|
|
: $(SYSTEM_NETWORK_DEVICES) ;
|
2011-06-16 11:00:06 +04:00
|
|
|
AddFilesToNetBootArchive
|
|
|
|
system add-ons kernel network datalink_protocols
|
2009-04-03 13:42:58 +04:00
|
|
|
: $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ;
|
|
|
|
AddFilesToNetBootArchive system add-ons kernel network ppp
|
|
|
|
: $(SYSTEM_NETWORK_PPP) ;
|
2011-06-16 11:00:06 +04:00
|
|
|
AddFilesToNetBootArchive
|
|
|
|
system add-ons kernel network protocols
|
2009-04-03 13:42:58 +04:00
|
|
|
: $(SYSTEM_NETWORK_PROTOCOLS) ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
2007-07-15 04:15:54 +04:00
|
|
|
# boot module links
|
|
|
|
AddBootModuleSymlinksToNetBootArchive
|
2009-04-03 13:42:58 +04:00
|
|
|
$(SYSTEM_ADD_ONS_BUS_MANAGERS)
|
2012-12-09 07:07:29 +04:00
|
|
|
ahci generic_ide_pci ide_isa@x86 silicon_image_3112
|
2009-04-03 13:42:58 +04:00
|
|
|
$(SYSTEM_ADD_ONS_FILE_SYSTEMS)
|
2019-02-26 03:56:07 +03:00
|
|
|
ata_adapter locked_pool scsi_periph
|
2007-07-15 04:15:54 +04:00
|
|
|
intel session
|
2012-12-09 07:07:29 +04:00
|
|
|
openpic@ppc
|
|
|
|
generic_x86@x86
|
2007-07-15 04:15:54 +04:00
|
|
|
# nbd
|
|
|
|
remote_disk
|
2009-04-03 13:42:58 +04:00
|
|
|
$(SYSTEM_ADD_ONS_DRIVERS_NET)
|
2008-04-20 16:42:01 +04:00
|
|
|
stack
|
2009-04-03 13:42:58 +04:00
|
|
|
$(SYSTEM_NETWORK_DEVICES)
|
|
|
|
$(SYSTEM_NETWORK_DATALINK_PROTOCOLS)
|
|
|
|
$(SYSTEM_NETWORK_PPP)
|
|
|
|
$(SYSTEM_NETWORK_PROTOCOLS)
|
2007-07-15 04:15:54 +04:00
|
|
|
;
|
|
|
|
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
#pragma mark - Build The Archive
|
|
|
|
|
|
|
|
# archive target
|
|
|
|
HAIKU_NET_BOOT_ARCHIVE = haiku-netboot.tgz ;
|
2009-08-21 20:22:56 +04:00
|
|
|
MakeLocate $(HAIKU_NET_BOOT_ARCHIVE) : $(HAIKU_OUTPUT_DIR) ;
|
2007-07-11 05:04:35 +04:00
|
|
|
|
|
|
|
# the pseudo target all archive contents is attached to
|
|
|
|
NotFile $(HAIKU_NET_BOOT_ARCHIVE_CONTAINER_NAME) ;
|
|
|
|
|
|
|
|
# prepare the script that initializes the shell variables
|
|
|
|
local initVarsScript = <NetBootArchive>haiku-netboot-init-vars ;
|
|
|
|
local script = $(initVarsScript) ;
|
|
|
|
MakeLocate $(script) : $(HAIKU_OUTPUT_DIR) ;
|
|
|
|
Always $(script) ;
|
|
|
|
|
|
|
|
AddVariableToScript $(script) : tmpDir : $(HAIKU_TMP_DIR) ;
|
|
|
|
AddVariableToScript $(script) : addBuildCompatibilityLibDir
|
2019-08-31 00:11:50 +03:00
|
|
|
: "export $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)" ;
|
2007-07-11 05:04:35 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>copyattr ;
|
|
|
|
|
|
|
|
# create the other scripts
|
|
|
|
local makeDirsScript = <NetBootArchive>haiku-netboot-make-dirs ;
|
|
|
|
local copyFilesScript = <NetBootArchive>haiku-netboot-copy-files ;
|
|
|
|
MakeLocate $(makeDirsScript) $(copyFilesScript) : $(HAIKU_OUTPUT_DIR) ;
|
|
|
|
|
|
|
|
CreateNetBootArchiveMakeDirectoriesScript $(makeDirsScript) ;
|
|
|
|
CreateNetBootArchiveCopyFilesScript $(copyFilesScript) ;
|
|
|
|
|
|
|
|
# build the archive
|
|
|
|
|
|
|
|
BuildNetBootArchive $(HAIKU_NET_BOOT_ARCHIVE) :
|
|
|
|
$(initVarsScript)
|
|
|
|
$(makeDirsScript)
|
|
|
|
$(copyFilesScript)
|
|
|
|
;
|
|
|
|
|
|
|
|
# remove the scripts we have generated
|
|
|
|
RmTemps $(HAIKU_NET_BOOT_ARCHIVE) :
|
|
|
|
$(initVarsScript)
|
|
|
|
$(makeDirsScript)
|
|
|
|
$(copyFilesScript)
|
|
|
|
;
|
|
|
|
|
|
|
|
NotFile haiku-netboot-archive ;
|
|
|
|
Depends haiku-netboot-archive : $(HAIKU_NET_BOOT_ARCHIVE) ;
|