96a321df07
In order to automate the complete bootstrap build process we need a mechanism to control the second phase which builds the final packages on the booted bootstrap Haiku. To avoid additional dependencies (buildbot slave, ssh, rsh,...) we'd have to cross-build, there's now a pair of simple python scripts that allows executing commands on a remote machine. The server script (bootstrap_daemon.py) is added to the bootstrap image and started automatically during the boot.
22 lines
946 B
Plaintext
22 lines
946 B
Plaintext
# This file defines the content of the bootstrap Haiku image.
|
|
|
|
# import everything from the minimum image
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
|
|
|
|
# build and add the source package directory and a haikuports.config file
|
|
CopyDirectoryToHaikuImage home haikuports
|
|
: [ BuildHaikuPortsSourcePackageDirectory ]
|
|
: input-source-packages : -x *_source-*.hpkg : isTarget ;
|
|
AddFilesToHaikuImage home haikuports
|
|
: [ BuildHaikuPortsRepositoryConfig /boot/home/haikuports ] ;
|
|
|
|
# copy the haikuports format versions file
|
|
local formatVersionsFile = <haikuports>FormatVersions ;
|
|
SEARCH on $(formatVersionsFile) = $(HAIKU_PORTS) ;
|
|
AddFilesToHaikuImage home haikuports : $(formatVersionsFile) ;
|
|
|
|
# bootstrap daemon
|
|
local bootstrapDaemon = <haiku-image>bootstrap_daemon.py ;
|
|
SEARCH on $(bootstrapDaemon) = [ FDirName $(HAIKU_TOP) build scripts ] ;
|
|
AddFilesToHaikuImage home config settings boot launch : $(bootstrapDaemon) ;
|