mobile/build is ignored by .gitignore (build output): no AGENTS.md there. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.4 KiB
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(loadssoc.confthendevice.conf),check.sh, and thechecks/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 insoc.conf/device.conf).
What must not be touched
- Do not add device-name conditionals in tools; move such settings to
.conffiles undermobile/soc/ormobile/devices/. - Do not introduce prebuilt binaries requiring a foreign libc, or unattended
loops/timers, per
mobile/AGENTS.mdand the rootAGENTS.md.