Skip to content

Commit 4f31c80

Browse files
committed
ci: add cross-build headers for Linux arm64 kernel builds
Include the common cross-build compatibility headers alongside Clang's resource headers for the Ubuntu aarch64 buildkernel path so genoffset can resolve sys/cdefs.h. AI-Assisted-by: OpenAI Codex (GPT-5) Signed-off-by: Lucas Holt <luke@foolishgames.com>
1 parent 2e4d3e6 commit 4f31c80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cross-bootstrap-tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ jobs:
6969
args+=(TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} KERNCONF=GENERIC NO_MODULES=yes buildkernel -s -j"$NPROC")
7070
if [ "${{ runner.os }}" = "Linux" ] && [ "${{ matrix.target_arch }}" = "aarch64" ]; then
7171
resource_dir=$(/usr/lib/llvm-18/bin/clang -print-resource-dir)
72-
args+=("KERNEL_FLAGS=CFLAGS+=-idirafter ${resource_dir}/include")
72+
args+=("KERNEL_FLAGS=CFLAGS+=-idirafter ${PWD}/tools/build/cross-build/include/common CFLAGS+=-idirafter ${resource_dir}/include")
7373
fi
7474
"${args[@]}"

0 commit comments

Comments
 (0)