guix: Print build params inside/outside of container
This commit is contained in:
1 parent
2f9d1fdde6
commit
570e43fe72
2 files changed
+22
-3
No files matched your search
@@ -172,6 +172,19 @@ for host in $HOSTS; do
|
|||||||
# for the particular $HOST we're building for
|
# for the particular $HOST we're building for
|
||||||
export HOST="$host"
|
export HOST="$host"
|
||||||
|
|
||||||
|
# shellcheck disable=SC2030
|
||||||
|
cat << EOF
|
||||||
|
INFO: Building commit ${GIT_COMMIT:?not set} for platform triple ${HOST:?not set}:
|
||||||
|
...using reference timestamp: ${SOURCE_DATE_EPOCH:?not set}
|
||||||
|
...running at most ${MAX_JOBS:?not set} jobs
|
||||||
|
...from worktree directory: '${PWD}'
|
||||||
|
...bind-mounted in container to: '/bitcoin'
|
||||||
|
...in build directory: '$(distsrc_for_host "$HOST")'
|
||||||
|
...bind-mounted in container to: '$(DISTSRC_BASE=/distsrc-base && distsrc_for_host "$HOST")'
|
||||||
|
...outputting in: '${OUTDIR:?not set}'
|
||||||
|
...bind-mounted in container to: '/outdir'
|
||||||
|
EOF
|
||||||
|
|
||||||
# Run the build script 'contrib/guix/libexec/build.sh' in the build
|
# Run the build script 'contrib/guix/libexec/build.sh' in the build
|
||||||
# container specified by 'contrib/guix/manifest.scm'.
|
# container specified by 'contrib/guix/manifest.scm'.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -11,9 +11,15 @@ if [ -n "$V" ]; then
|
|||||||
export VERBOSE="$V"
|
export VERBOSE="$V"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that environment variables assumed to be set by the environment are set
|
# Check that required environment variables are set
|
||||||
echo "Building for platform triple ${HOST:?not set} with reference timestamp ${SOURCE_DATE_EPOCH:?not set}..."
|
cat << EOF
|
||||||
echo "At most ${MAX_JOBS:?not set} jobs will run at once..."
|
Required environment variables as seen inside the container:
|
||||||
|
HOST: ${HOST:?not set}
|
||||||
|
SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH:?not set}
|
||||||
|
MAX_JOBS: ${MAX_JOBS:?not set}
|
||||||
|
DISTSRC: ${DISTSRC:?not set}
|
||||||
|
OUTDIR: ${OUTDIR:?not set}
|
||||||
|
EOF
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
# Environment Setup #
|
# Environment Setup #
|
||||||
|
|||||||
Reference in new issue
Block a user