From 4e1887c8f496528081214446ea055a10be8e5b86 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 26 Oct 2022 14:54:36 +0200 Subject: Bootstrap: allow setting build configuration When constructing the build configuration for the bootstrap build is just, start with the value of the environment variable JUST_BUILD_CONF, if set, instead of the empty object. While there, also propagate SOURCE_DATE_EPOCH from the environment to the build configuration. --- INSTALL.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md index 552b1f8d..e43d1f44 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -70,6 +70,17 @@ before to be present as well). Additionally, if the environment variable `DEBUG` is set, the second bootstrap phase is carried out sequentially rather than in parallel. +Moreover, when constructing the build configuration, the scripts +starts with the value of the environment variable `JUST_BUILD_CONF` instead +of the empty object, if this variable is set. One configuration parameter +is the build enviroment `ENV` that can be used to set an unusual +value of `PATH`, e.g., +``` sh +env JUST_BUILD_CONF='{"ENV": {"PATH": "/opt/toolchain/bin"}}' python3 ./bin/boostrap.py +``` +Additionally, if `SOURCE_DATE_EPOCH` is set in the build environment, it +is forwarded to the build configuration as well. + In any case, the resulting binary is selfcontained and can be moved to an appropriate location in `PATH`. -- cgit v1.2.3