Skip to content

Add PolarFire SoC support for M-Mode (HSS replacement) booting from eMMC and QSPI into DDR #2679

Add PolarFire SoC support for M-Mode (HSS replacement) booting from eMMC and QSPI into DDR

Add PolarFire SoC support for M-Mode (HSS replacement) booting from eMMC and QSPI into DDR #2679

name: X86 FSP QEMU test
on:
pull_request:
branches: [ '*' ]
jobs:
fsp_qemu_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Workaround for sources.list
run: |
set -euxo pipefail
apt-cache policy
grep -RInE '^(deb|Types|URIs)' /etc/apt || true
shopt -s nullglob
sudo sed -i \
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
/etc/apt/sources.list || true
for f in /etc/apt/sources.list.d/*.list; do
sudo sed -i \
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
"$f"
done
for f in /etc/apt/sources.list.d/*.sources; do
sudo sed -i \
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
-e "s|https\?://azure\.archive\.ubuntu\.com|https://mirror.arizona.edu|g" \
"$f"
done
if grep -qE '^[[:space:]]*https?://azure\.archive\.ubuntu\.com/ubuntu/?' /etc/apt/apt-mirrors.txt; then
sudo sed -i 's|https\?://azure\.archive\.ubuntu\.com/ubuntu/|https://mirror.arizona.edu/ubuntu/|g' /etc/apt/apt-mirrors.txt
fi
- name: install req
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install --no-install-recommends -y -q -o Acquire::Retries=3 nasm gcc-multilib qemu-system-x86 swtpm uuid-dev
- name: run test
run: |
./tools/scripts/x86_fsp/qemu/test_qemu.sh
# Same target, but wolfBoot reads its image from a file on a read-only
# filesystem instead of from raw offset 0 of a partition. The job above
# is left untouched, so it stays the regression check for the raw path.
fsp_qemu_fs_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install req
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install --no-install-recommends -y -q -o Acquire::Retries=3 nasm gcc-multilib qemu-system-x86 uuid-dev dosfstools mtools e2fsprogs
- name: run test
run: |
./tools/scripts/x86_fsp/qemu/test_qemu.sh -f
# TPM-NV anti-rollback: the floor anchors on a fresh swtpm, survives a TPM
# restart, and a validly signed downgrade boots and is counted.
fsp_qemu_antirollback_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install req
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install --no-install-recommends -y -q -o Acquire::Retries=3 nasm gcc-multilib qemu-system-x86 swtpm uuid-dev
- name: run test
run: |
./tools/scripts/x86_fsp/qemu/test_qemu.sh -r