[ci] Add LICENSE and README to build
Addresses #704
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 80bf053..7f5f148 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -256,6 +256,11 @@
OT_VERSION=$(git describe --always)
cd "$(Build.ArtifactStagingDirectory)"
find "$(Build.ArtifactStagingDirectory)/dist-partial-download" -iname '*.tar' -exec tar --overwrite -xf {} \;
+
+ cp $(Build.SourcesDirectory)/ci/README.snapshot dist/README
+ echo -e "\nVersion $OT_VERSION, built at $(date -u)" >> dist/README
+ cp $(Build.SourcesDirectory)/LICENSE dist/LICENSE
+
mv dist opentitan-$OT_VERSION
mkdir -p dist-final
tar -cJf dist-final/opentitan-$OT_VERSION.tar.xz opentitan-$OT_VERSION
diff --git a/ci/README.snapshot b/ci/README.snapshot
new file mode 100644
index 0000000..4b00cb7
--- /dev/null
+++ b/ci/README.snapshot
@@ -0,0 +1,13 @@
+OpenTitan Snapshot Binary Release
+=================================
+
+This directory contains pre-built material produced from a development snapshot
+of the OpenTitan codebase. It includes content that is Copyright lowRISC
+contributors and licensed under the Apache License, Version 2.0. See the
+LICENSE file for details.
+
+Refer to the Quickstart Guide at https://docs.opentitan.org for information on
+how to get started in simulation and on an FPGA.
+
+For more information about the OpenTitan project please head over to
+https://www.opentitan.org.