feat: publish FreeRTOS C FC09 card

This commit is contained in:
2026-07-19 16:36:03 +02:00
commit 1d44b1c8c6
200 changed files with 60601 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env sh
set -eu
nm=$(printenv RISCV_NM || true)
readelf=$(printenv RISCV_READELF || true)
test -n "$nm" || nm=riscv64-unknown-elf-nm
test -n "$readelf" || readelf=riscv64-unknown-elf-readelf
elf=build/task01_event_groups/prog.elf
if "$nm" --defined-only "$elf" | awk '{print $3}' | grep -Eq '^_Z|^__cxa_|^_Unwind_'; then
echo "unexpected C++ or unwind symbol in FC09" >&2
exit 1
fi
if "$readelf" -S "$elf" | grep -Eq '\.init_array|\.eh_frame|\.gcc_except_table'; then
echo "unexpected C++ initialization or unwind section in FC09" >&2
exit 1
fi
for symbol in fc09_coordinator_entry fc09_worker_a_entry fc09_worker_b_entry \
fc09_verifier_entry fc09_checkpoint_committed xEventGroupCreate \
xEventGroupSetBits xEventGroupWaitBits xEventGroupSync; do
"$nm" --defined-only "$elf" | grep -Eq "[[:space:]]$symbol$" || {
echo "required symbol is missing: $symbol" >&2
exit 1
}
done
echo "PASS ABI: FC09 is freestanding C11 with EventGroup wait and sync"