summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2020-01-23 12:04:12 +0800
committerJeremy Kerr <jk@ozlabs.org>2020-01-25 11:54:50 +0800
commit9cf513f905bcc2a62f2d2f62c78bfc21781419af (patch)
treeae11cb5ef02f99802394dbe00900a8c6dd4c5938
parent938365251d8f82601d930a444d74d0b90fc95efc (diff)
downloadtalos-petitboot-9cf513f905bcc2a62f2d2f62c78bfc21781419af.tar.gz
talos-petitboot-9cf513f905bcc2a62f2d2f62c78bfc21781419af.zip
docker: build petitboot outside of the source dir
Ensure that srcdir != builddir builds will keep working. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rwxr-xr-xdocker/build-pb2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/build-pb b/docker/build-pb
index 6229550..e892177 100755
--- a/docker/build-pb
+++ b/docker/build-pb
@@ -137,4 +137,4 @@ cd "${TOP_DIR}"
docker_args="${docker_base_args} ${docker_user_args}"
run_cmd "docker run ${docker_args} ${DOCKER_TAG} /bin/bash \
-e ${bash_debug} \
- -c './bootstrap && ${flags} ./configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'"
+ -c './bootstrap && d=\$(mktemp -d) && cd \$d && ${flags} /opt/pb/configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'"
OpenPOWER on IntegriCloud