mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-11-22 19:58:07 +00:00
A first-run check for a freshly cloned repo, so a new user finds out what is missing before a build fails halfway through. Checks the host toolchain (GNU make, gcc/g++, pkg-config, git, gcc >= 8 for Qt6), the arm-none-eabi toolchain plus a linkable ARM C library, the required client libraries (readline, bz2, lz4, libcrypto) and the optional ones, the bundled-fallback ones, a Python venv with tools/requirements.txt, and on Linux the dialout/uucp membership, the udev blacklist rule, ModemManager and the rights on /dev/ttyACM*. Also the tracked .dummy files that hold the firmware object directories in git, since nothing recreates those. Detection is by probe, not by querying the package manager: pkg-config where a .pc file exists, otherwise a real compile-and-link of the header with its -l flag. Python requirements are compared offline through importlib.metadata. The device side is covered too: it resolves PLATFORM and PLATFORM_EXTRAS the way make does, rejects unknown platforms and the combinations Makefile.hal errors on later (BWM off PM5, BTADDON on PM5, ...), and when there is no Makefile.platform at all it lists the platforms and offers to write one for the device the user picks, rather than silently building an RDV4 image. It changes nothing by default. It asks before creating a venv and before writing a Makefile.platform, and only --install touches the package manager. Missing items are mapped to package names for apt, pacman, dnf, zypper, brew and port and printed as one paste-ready line; NixOS is pointed at tools/shell.nix. make configure runs it. The script stays directly callable because make stops on an invalid PLATFORM before it could run any target. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>