Ticket #5482: 5482-IncreaseImageSizeForSources.patch

File 5482-IncreaseImageSizeForSources.patch, 1.1 KB (added by mmadia, 10 years ago)

untested draft idea.

  • build/jam/HaikuImage

     
    712712HAIKU_IMAGE_SIZE ?= $(HAIKU_DEFAULT_IMAGE_SIZE) ; # 192 MB
    713713HAIKU_IMAGE_LABEL ?= $(HAIKU_DEFAULT_IMAGE_LABEL) ;
    714714MakeLocate $(HAIKU_IMAGE) : $(HAIKU_IMAGE_DIR) ;
     715if $(HAIKU_INCLUDE_SOURCES) = 1 {
     716    HAIKU_IMAGE = [ Expr $(HAIKU_IMAGE) + $(HAIKU_SOURCES_SIZE) ] ;
     717}
    715718
    716719# Set the default installation directory.
    717720HAIKU_INSTALL_DIR ?= $(HAIKU_DEFAULT_INSTALL_DIR) ;
  • build/jam/ImageRules

     
    789789    }
    790790}
    791791
    792 rule InstallSourceArchive file : url
     792rule InstallSourceArchive file : url : sizeMB
    793793{
    794794    if $(HAIKU_INCLUDE_SOURCES) = 1 {
    795795        # download archive file
     
    797797
    798798        # copy directly into image
    799799        AddFilesToHaikuImage develop sources : $(archiveFile) ;
     800       
     801        HAIKU_SOURCES_SIZE = [ Expr $(HAIKU_SOURCES_SIZE) + $(sizeMB) ] ;
    800802    }
    801803}
    802804