Files
makronix/mobile/tools/AGENTS.md
T
2026-11-15 10:19:15 +00:00

1.4 KiB

mobile/tools/ -- scripts for building and managing mobile targets

What it is for

POSIX sh tools used by the mobile Makefile and workflows to build kernels and userland pieces, assemble and flash images, and run checks for devices.

What is in it

  • Build/assemble scripts: e.g. fetch-kernel.sh, build-kernel.sh, mktoolchain.sh, mktooldir.sh, mktargetlibs.sh, mkglibc.sh, assemble-rootfs.sh, mkrootimg.sh, mkrootfs-*.sh, mkbootimg.sh, mkinitramfs.sh, mkroottar.sh, mx*.sh, userland-*.sh.
  • Flashing and device helpers: e.g. flash.sh, flash-root.sh, update-root.sh, boot-loop.sh, reboot-loop.sh, phone-*.sh, netconsole-listen.sh.
  • Shared library and checks: lib.sh (loads soc.conf then device.conf), check.sh, and the checks/ directory.

What may be changed

  • Scripts here, kept as POSIX sh (no Python, no bashisms) with accurate headers. Changes must preserve the rule that no tool knows a device by name (settings belong in soc.conf / device.conf).

What must not be touched

  • Do not add device-name conditionals in tools; move such settings to .conf files under mobile/soc/ or mobile/devices/.
  • Do not introduce prebuilt binaries requiring a foreign libc, or unattended loops/timers, per mobile/AGENTS.md and the root AGENTS.md.