| 1 | #!/usr/bin/env sh |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | # This script is the entry point for this container and expects two git |
| 8 | # repositories in /data-in, board-status.git and coreboot.git (with the |
| 9 | # content of the repos of the same name found at https://review.coreboot.org/ |
| 10 | # and creates two files, board-status.html and kconfig-options.html in |
| 11 | # /data-out. |
| 12 | |
| 13 | cd /data-in/board-status.git |
| 14 | /opt/tools/board-status.html \ |
| 15 | -board-status-dir /data-in/board-status.git \ |
| 16 | -coreboot-dir /data-in/coreboot.git \ |
| 17 | > /tmp/board-status.html |
| 18 | mv /tmp/board-status.html /data-out/ |
| 19 | |
| 20 | cd /data-in/coreboot.git |
| 21 | /opt/tools/kconfig2html src/Kconfig $(git describe) > /tmp/kconfig-options.html |
| 22 | mv /tmp/kconfig-options.html /data-out/ |