Adding a New Architecture
- Add an
Architectureentry totools/registry.py - Add the architecture to each supported
OperatingSystem.architectureslist - Add syscall numbers to the relevant
SYSCALL_NUMBERStables - Create
src/include/picblobs/syscall/{arch}.hwith the inline asm primitive - Create the matching runner
_startstubs undertests/runners/*/start/for every runner type that will execute the architecture - Pin the Bootlin SHA256 on the
Architectureentry intools/registry.py - Run
python tools/generate.py - Run
python -m pytest python/tests/test_sync.py -v(catches anything missed) - Build, stage, verify:
bash python tools/stage_blobs.py --configs linux:{arch} picblobs-cli verify --os linux --arch {arch}