mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
Bootstrap Haiku image: add source for more required packages
* Introduce build variable HAIKU_IMAGE_ADDITIONAL_PACKAGES which can be set to add additional packages to the image. * Use HAIKU_IMAGE_ADDITIONAL_PACKAGES to support specifying a list of additional packages via the build-package-list build profile action. * Add htmldoc and texi2html when building the list of the packages for which we need source packages when building the bootstrap Haiku image. We don't want them on the regular image, but they are needed to build some packages that are on it.
This commit is contained in:
parent
13f2fbbd9e
commit
24796718b9
3
Jamfile
3
Jamfile
@ -40,6 +40,9 @@ if [ FIsBuildFeatureEnabled openssl ] {
|
||||
AddHaikuImagePackages openssl ;
|
||||
}
|
||||
|
||||
# add additionally requested packages
|
||||
AddHaikuImagePackages $(HAIKU_IMAGE_ADDITIONAL_PACKAGES) ;
|
||||
|
||||
# Optionally we allow not to include the "src" subdirectory.
|
||||
if $(HAIKU_DONT_INCLUDE_SRC) {
|
||||
# Don't include "src", but at least include the stuff needed for the
|
||||
|
@ -425,7 +425,9 @@ rule DefineBuildProfile name : type : path {
|
||||
|
||||
case "build-package-list" : {
|
||||
HAIKU_IMAGE_LIST_PACKAGES_TARGET
|
||||
= $(HAIKU_BUILD_PROFILE_PARAMETERS) ;
|
||||
= $(HAIKU_BUILD_PROFILE_PARAMETERS[1]) ;
|
||||
HAIKU_IMAGE_ADDITIONAL_PACKAGES
|
||||
= $(HAIKU_BUILD_PROFILE_PARAMETERS[2-]) ;
|
||||
JAM_TARGETS = $(HAIKU_IMAGE_LIST_PACKAGES_TARGET) ;
|
||||
}
|
||||
|
||||
|
@ -507,6 +507,13 @@ rule BuildHaikuPortsSourcePackageDirectory
|
||||
Depends $(packageList) :
|
||||
[ FDirName $(HAIKU_BUILD_RULES_DIR) repositories HaikuPorts
|
||||
$(architecture) ] ;
|
||||
# Note: Those are packages we need for building on the bootstrap Haiku. They
|
||||
# are build-pre-requires and as such won't be detected by haikuporter as
|
||||
# required dependencies when building the source packages.
|
||||
HAIKU_REPOSITORY_BUILD_ADDITIONAL_PACKAGES on $(packageList) =
|
||||
htmldoc
|
||||
texi2html
|
||||
;
|
||||
BuildHaikuPortsPackageList $(packageList) ;
|
||||
|
||||
# prepare the config file for the HaikuPorts build
|
||||
@ -539,7 +546,8 @@ rule BuildHaikuPortsSourcePackageDirectory
|
||||
|
||||
actions BuildHaikuPortsPackageList
|
||||
{
|
||||
HAIKU_BOOTSTRAP_BUILD= $(JAM:E=jam) @alpha-raw build-package-list $(1)
|
||||
HAIKU_BOOTSTRAP_BUILD= $(JAM:E=jam) @alpha-raw build-package-list $(1) \
|
||||
$(HAIKU_REPOSITORY_BUILD_ADDITIONAL_PACKAGES)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user