Skip to content
Snippets Groups Projects
Commit 8012fdba authored by Sam Thursfield's avatar Sam Thursfield
Browse files

source-bundle: Allow installing to somewhere other than /

You can now set BUILDSTREAM_DESTDIR in the environment to cause the
results of the source-bundle build to be collected into that directory,
instead of the default of the root directory (`/`). This makes it
eaiser to collect up the results of a build cleanly.

If elements in the source bundle depend on each other to build, then
they need to be installed to `/`, or else extra care needs to be taken
to set variables such as PATH during the build.
parent 5b995dd1
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -38,4 +38,8 @@ rm -rf '{build_root}' ...@@ -38,4 +38,8 @@ rm -rf '{build_root}'
# Install the module # Install the module
echo 'Installing {name}' echo 'Installing {name}'
(cd '{install_root}'; find . | cpio -umdp /) if [ -z "$BUILDSTREAM_DESTDIR" ]; then
BUILDSTREAM_DESTDIR=/
fi
(cd '{install_root}'; find . | cpio -umdp $BUILDSTREAM_DESTDIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment