summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2023-03-08 17:11:39 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2023-05-23 10:23:47 +0200
commitd26971bb37743fc7253acad4a4a49806601df040 (patch)
tree264bb5c80df1bcd0ef5410aa83bb547afdce9da7
parent4a1fef87d51621ac00bdebade3ed51f8aaa1a1ca (diff)
qemu_v8: Add auto-mounting of debugfs
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rwxr-xr-xbr-ext/board/qemu/post-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/br-ext/board/qemu/post-build.sh b/br-ext/board/qemu/post-build.sh
index eb0abc0..caef382 100755
--- a/br-ext/board/qemu/post-build.sh
+++ b/br-ext/board/qemu/post-build.sh
@@ -41,3 +41,7 @@ if [[ $PSS_AUTOMOUNT == "y" ]]; then
echo "secure /data/tee 9p trans=virtio,version=9p2000.L,msize=65536,rw 0 0" >> "$TARGET_DIR"/etc/fstab
echo "[+] persistent secure storage mount added to fstab"
fi
+
+# Auto-mount debugfs
+grep debugfs ${TARGET_DIR}/etc/fstab > /dev/null || \
+echo "debugfs /sys/kernel/debug debugfs defaults 0 0" >> ${TARGET_DIR}/etc/fstab