Skip to content

Commit 66cc28c

Browse files
committed
Build uefi-library via lib-nohw, the only target that sets CFLAGS
1 parent 1f953c9 commit 66cc28c

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,14 @@ jobs:
171171
fail-fast: false
172172
matrix:
173173
include:
174-
# uefi-library's `all:` is run-fallback-nohw, which BOOTS QEMU and
175-
# hangs; both jobs must name a build target explicitly.
174+
# uefi-static clones wolfSSL itself; `all` is wolfcrypt.efi
176175
- example: uefi-static
177-
target: wolfcrypt.efi
176+
target: all
177+
# uefi-library's `all:` is run-fallback-nohw, which BOOTS QEMU. Only
178+
# lib-nohw sets CFLAGS/LDFLAGS (target-specific), so naming test.efi
179+
# directly compiles with empty CFLAGS and cannot find efi.h.
178180
- example: uefi-library
179-
target: test.efi
181+
target: lib-nohw
180182
steps:
181183
- uses: actions/checkout@v5
182184

@@ -187,11 +189,15 @@ jobs:
187189
sudo apt-get install -y --no-install-recommends \
188190
gnu-efi build-essential >/dev/null
189191
192+
# uefi-library defaults WOLFSSL_PATH to a sibling checkout
193+
- name: Clone wolfSSL
194+
run: git clone -q --depth 1 https://github.com/wolfSSL/wolfssl /tmp/wolfssl
195+
190196
- name: Build ${{ matrix.example }} (${{ matrix.target }})
191197
run: |
192198
set -euo pipefail
193199
cd '${{ matrix.example }}'
194-
make '${{ matrix.target }}'
200+
make '${{ matrix.target }}' WOLFSSL_PATH=/tmp/wolfssl
195201
196202
- name: Assert an EFI binary came out
197203
run: |

0 commit comments

Comments
 (0)