mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
- tests/ccplex: a self-contained BPMP payload (ARM, arm-none-eabi-gcc; the AArch64 side is pre-assembled words) that drives CPU0 through bdk's ccplex_boot_cpu0() register sequence. It checks that an unpowered release is refused with its reason, that a powered one runs at EL3 from the SB vector and writes the mailbox, that CPU0 sees TIMERUS move, that WFE parks the core, and that RST_CPUG_CMPLX_SET stops it. `make test`. - tests/hwtest: build hwtest-rcm from a pinned commit with distro toolchains (an empty base_rules stands in for devkitARM, the CPU0 stub builds with gcc-aarch64-linux-gnu) and run its whole sweep headless, checking the CPU0-driven Wi-Fi probe enumerates the CYW4356. - CI runs both in the Linux job and keeps their logs on failure. - Makefile: `test` target; the clean rule's line continuation was a literal "\n" that only worked by accident. - README/DESIGN: CCPLEX CPU0, the uc_mmio_map bus, the block-level clock and TIMERUS poll pacing, the new bug-history entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Build hwtest-rcm (https://github.com/Creased/hwtest-rcm) with distro
|
|
# toolchains, CPU0 stub included. Usage: tests/hwtest/build.sh <workdir>
|
|
# Produces <workdir>/hwtest-rcm/build/hwtest.bin.
|
|
#
|
|
# hwtest's Makefile only needs $(DEVKITARM)/base_rules to exist - it names
|
|
# arm-none-eabi-gcc itself - so an empty file stands in for devkitARM, and
|
|
# Debian/Ubuntu's gcc-aarch64-linux-gnu builds the AArch64 stub, which is
|
|
# what hwtest's own CI does too.
|
|
#
|
|
# Pinned so a change on the hwtest side cannot turn this emulator's CI red
|
|
# without a commit here; bump HWTEST_REF deliberately.
|
|
set -e
|
|
WORK=${1:-build-hwtest}
|
|
HWTEST_REF=${HWTEST_REF:-3738e9a47e1833605fc5a30eeca0ea95caa3b936}
|
|
|
|
mkdir -p "$WORK"
|
|
cd "$WORK"
|
|
if [ ! -d hwtest-rcm/.git ]; then
|
|
git init -q hwtest-rcm
|
|
git -C hwtest-rcm remote add origin https://github.com/Creased/hwtest-rcm.git
|
|
fi
|
|
git -C hwtest-rcm fetch -q --depth 1 origin "$HWTEST_REF"
|
|
git -C hwtest-rcm checkout -q FETCH_HEAD
|
|
git -C hwtest-rcm submodule update -q --init --depth 1 third_party/hekate
|
|
|
|
mkdir -p devkitARM
|
|
: > devkitARM/base_rules
|
|
make -C hwtest-rcm -j"$(nproc)" DEVKITARM="$PWD/devkitARM" \
|
|
A64_CC=aarch64-linux-gnu-gcc A64_OC=aarch64-linux-gnu-objcopy REQUIRE_A64=1
|
|
ls -l hwtest-rcm/build/hwtest.bin
|