Skip to content
Snippets Groups Projects
Commit 654dd7a2 authored by Jean-Philippe Brucker's avatar Jean-Philippe Brucker
Browse files

Add post-build script


Modify a couple of /etc/ files in the buildroot images to help boot and
attest a realm.

Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
parent a7cb6f76
No related branches found
No related tags found
No related merge requests found
......@@ -25,3 +25,4 @@ BR2_PACKAGE_QEMU_TARGET_AARCH64=y
BR2_PACKAGE_REALM_TOKEN=y
BR2_PACKAGE_CCA_WORKLOAD_ATTESTATION=y
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_LINARO_CCA_PATH)/scripts/post-build.sh"
#!/bin/bash
#
# Modify the buildroot target files before they are packed into the final
# images
#
# Add config and 9p mounts used for CCA demos
if ! grep -q "shr0" $TARGET_DIR/etc/fstab; then
cat << EOF >> $TARGET_DIR/etc/fstab
configfs /sys/kernel/config configfs defaults 0 0
shr0 /mnt/ 9p nofail 0 0
FM /mnt/ 9p nofail 0 0
EOF
fi
# Add address for Linaro veraison verifier
if ! grep -q "veraison" $TARGET_DIR/etc/hosts; then
cat << EOF >> $TARGET_DIR/etc/hosts
# This service is provided for development purposes only as detailed here:
# http://veraison.test.linaro.org/disclaimer.html
213.146.141.101 veraison.example
EOF
fi
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