mirror of
https://github.com/Klipper4FlashForge/firmware.git
synced 2026-10-22 05:12:16 -05:00
A sweep over every commented file in the tree. What is kept is what a reader needs to change the code safely: what a thing is, its signature, the invariants other files depend on, and the traps that fail silently (find's non-zero exit under set -e, s6's baked-in libexecdir, the -lm that decides whether _sqlite3 exists, opkg's compile-time prefix). What goes is the narration around it: incident histories, arguments against alternatives already rejected, restatements of the code below, and paragraphs re-explaining a rule three files already state. One paragraph in pkgs/3rdparty/opkg/build.sh was duplicated outright. Comment lines 7971 -> 6158. Every change is comment-only: no non-comment line differs anywhere in the 86 files, checked mechanically. Commented-out config directives (#fast_feed: 30000 and friends) are documentation of defaults and are kept. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMMpQTajN7RDJySrhQ2cTE
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
# anvil-helixscreen -- the touchscreen UI.
|
|
#
|
|
# THE ONE ASSET PACKAGE WITH A BINARY IN IT. Mainsail and Moonraker are
|
|
# Architecture: all because nothing in them is compiled; this tarball is a
|
|
# prebuilt mipsel program and its libraries, so it carries the real
|
|
# architecture and is gated like anything else that executes on the printer.
|
|
# That gate is qa/replica/test_abi.py, which reads the ELF objects off the
|
|
# installed filesystem -- neither this recipe nor any build.sh checks them.
|
|
PKG_NAME=anvil-helixscreen
|
|
|
|
# HELIX_VERSION is "v0.99.115-creator5.2": a tag with an upstream version and
|
|
# a platform revision joined by a hyphen. The 'v' comes off as it does for
|
|
# Mainsail. The hyphen becomes a dot because opkg reads the LAST hyphen in a
|
|
# version field as the separator before the packaging revision -- which
|
|
# happens to parse correctly today and would stop the first time the tag
|
|
# gained another hyphen.
|
|
PKG_VERSION="$(printf '%s' "${HELIX_VERSION#v}" | tr '-' '.')"
|
|
PKG_RELEASE=1
|
|
PKG_SECTION=ui
|
|
|
|
PKG_EXCLUDE=".version"
|
|
|
|
PKG_DEPENDS=""
|
|
PKG_BUILD_DEPENDS=""
|
|
|
|
PKG_WHEN='[ "${BUILD_HELIX:-1}" = "1" ]'
|
|
|
|
# The printer-database entry this recipe stages over upstream's tree is not
|
|
# described by HELIX_VERSION, so it needs a cache key of its own. It did not
|
|
# have one: the file used to be hashed into anvil-core's PKG_STAMP_EXTRA, the
|
|
# package that does NOT contain it, so editing the json rebuilt the wrong
|
|
# recipe and left this one cached.
|
|
PKG_STAMP_EXTRA="$(pkg_payload_hash)"
|
|
|
|
PKG_DESCRIPTION="HelixScreen, the touchscreen UI, as published by upstream for the Creator 5. Includes this repo's printer-database entry so the printer is detected as a tool changer."
|