mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
build: Add HAIKU_ABSOLUTE_TOP and use it to root BootArchive.
Strictly POSIX-compliant shells (like dash) do not allow sourcing files in the present directory without "./". The script really should not know or care about what directory the passed files are in, so now we add a jam grist to make the passed paths absolute. Fixes the build on all systems where /bin/sh is dash or a similarly POSIX-compliant-no-extensions shell (i.e. virtually all Linux.)
This commit is contained in:
parent
8b4ab45439
commit
68191643b8
4
Jamrules
4
Jamrules
@ -31,6 +31,10 @@ HAIKU_DOWNLOAD_DIR ?= [ FDirName $(HAIKU_OUTPUT_DIR)
|
||||
HAIKU_OPTIONAL_BUILD_PACKAGES_DIR ?= [ FDirName $(HAIKU_OUTPUT_DIR)
|
||||
build_packages ] ;
|
||||
|
||||
# Absolutely rooted versions of some of the main directories
|
||||
HAIKU_ABSOLUTE_TOP ?= [ FDirName $(PWD) $(HAIKU_TOP) ] ;
|
||||
HAIKU_ABSOLUTE_OUTPUT_DIR ?= [ FDirName $(HAIKU_ABSOLUTE_TOP) generated ] ;
|
||||
|
||||
# Cache files for header scanning and jamfile caching
|
||||
HCACHEFILE = header_cache ;
|
||||
JCACHEFILE = jamfile_cache ;
|
||||
|
@ -1383,7 +1383,8 @@ rule BuildNetBootArchive archive : scripts
|
||||
SEARCH on $(mainScript) = [ FDirName $(HAIKU_TOP) build scripts ] ;
|
||||
|
||||
Depends $(archive) : $(mainScript) $(scripts) ;
|
||||
BuildNetBootArchive1 $(archive) : $(mainScript) $(scripts) ;
|
||||
BuildNetBootArchive1 $(archive) : $(mainScript)
|
||||
$(scripts:R=$(HAIKU_ABSOLUTE_OUTPUT_DIR)) ;
|
||||
}
|
||||
|
||||
actions BuildNetBootArchive1
|
||||
@ -1474,7 +1475,8 @@ rule BuildFloppyBootArchive archive : scripts
|
||||
SEARCH on $(mainScript) = [ FDirName $(HAIKU_TOP) build scripts ] ;
|
||||
|
||||
Depends $(archive) : $(mainScript) $(scripts) ;
|
||||
BuildFloppyBootArchive1 $(archive) : $(mainScript) $(scripts) ;
|
||||
BuildFloppyBootArchive1 $(archive) : $(mainScript)
|
||||
$(scripts:R=$(HAIKU_ABSOLUTE_OUTPUT_DIR)) ;
|
||||
}
|
||||
|
||||
actions BuildFloppyBootArchive1
|
||||
|
Loading…
Reference in New Issue
Block a user