sysdrv/tools/board/android-tools/Makefile builds adbd only when out/usr/bin/adbd is missing:
all: dep-openssl
@test -f $(PKG_INSTALL_BIN_DIR)/adbd || ( ... regenerate android-tools from the tarball, apply the patch set, build ... )
The android-tools source tree and its patch set (android-tools-patches/) are regenerated only inside that block. A change to the adbd patch set therefore never reaches an image built on an SDK tree whose out/ already holds an adbd.
Evidence
Farm build VM SDK (/home/noah/projects/flare-edge/sdk): out/usr/bin/adbd md5 88a58425c6217ce2366791009a628b63, built 2026-09-29.
Bench panel 10.255.1.55, image 265870c5d (release): /usr/bin/adbd md5 88a58425c6217ce2366791009a628b63. The image carries the stale binary.
Impact
Any adbd fix in the patch series (for example flare-edge#3129, adbd TCP 5555 and 5037 listeners) is silently absent from every later image.
Fix
Stamp the adbd build with the hash of its inputs (Makefile, adbd-current.sh, android-tools-patches/*) and rebuild when the stamp does not match. The gate is a separate script so that its cases can be tested without a compile. Regression test: luckfox-sdk-patches/tests/test-adbd-no-tcp.sh.
Related: flare-edge#3129.
## Symptom
`sysdrv/tools/board/android-tools/Makefile` builds adbd only when `out/usr/bin/adbd` is missing:
all: dep-openssl
@test -f $(PKG_INSTALL_BIN_DIR)/adbd || ( ... regenerate android-tools from the tarball, apply the patch set, build ... )
The android-tools source tree and its patch set (`android-tools-patches/`) are regenerated only inside that block. A change to the adbd patch set therefore never reaches an image built on an SDK tree whose `out/` already holds an adbd.
## Evidence
- Farm build VM SDK (`/home/noah/projects/flare-edge/sdk`): `out/usr/bin/adbd` md5 `88a58425c6217ce2366791009a628b63`, built 2026-09-29.
- Bench panel 10.255.1.55, image 265870c5d (release): `/usr/bin/adbd` md5 `88a58425c6217ce2366791009a628b63`. The image carries the stale binary.
## Impact
Any adbd fix in the patch series (for example flare-edge#3129, adbd TCP 5555 and 5037 listeners) is silently absent from every later image.
## Fix
Stamp the adbd build with the hash of its inputs (Makefile, `adbd-current.sh`, `android-tools-patches/*`) and rebuild when the stamp does not match. The gate is a separate script so that its cases can be tested without a compile. Regression test: `luckfox-sdk-patches/tests/test-adbd-no-tcp.sh`.
Related: flare-edge#3129.
Fixed on sp/adbd-tcp-off (head fabd79f; the earlier head 2c355f0e carried fc62400, which a rebase onto origin/rebuild b8d9d54 dropped). The android-tools Makefile now gates adbd on adbd-current.sh and a stamp of the Makefile, the gate script and the patch set. Regression test: luckfox-sdk-patches/tests/test-adbd-no-tcp.sh (runs the rule under make with stub toolchains; unpatched base FAIL, patched base PASS) and tests/adbd-no-tcp-cases.sh (mutant cases must FAIL).
Proof: the farm build rebuilt adbd. That build and the bench flash used 2c355f0e. 0d00b93 has the same luckfox-sdk-patches content; fabd79f adds the fail-closed rule (bfe-core1106-sdk#45) and the mutant cases (#46), which are not yet built or flashed. The image adbd md5 is 970416893fa96430a5885c9297719482, replacing the stale 88a58425c6217ce2366791009a628b63 that the old gate kept.
Not closed until sp/adbd-tcp-off merges.
Fixed on sp/adbd-tcp-off (head fabd79f; the earlier head 2c355f0e carried fc62400, which a rebase onto origin/rebuild b8d9d54 dropped). The android-tools Makefile now gates adbd on adbd-current.sh and a stamp of the Makefile, the gate script and the patch set. Regression test: luckfox-sdk-patches/tests/test-adbd-no-tcp.sh (runs the rule under make with stub toolchains; unpatched base FAIL, patched base PASS) and tests/adbd-no-tcp-cases.sh (mutant cases must FAIL).
Proof: the farm build rebuilt adbd. That build and the bench flash used 2c355f0e. 0d00b93 has the same luckfox-sdk-patches content; fabd79f adds the fail-closed rule (bfe-core1106-sdk#45) and the mutant cases (#46), which are not yet built or flashed. The image adbd md5 is 970416893fa96430a5885c9297719482, replacing the stale 88a58425c6217ce2366791009a628b63 that the old gate kept.
Not closed until sp/adbd-tcp-off merges.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Symptom
sysdrv/tools/board/android-tools/Makefilebuilds adbd only whenout/usr/bin/adbdis missing:The android-tools source tree and its patch set (
android-tools-patches/) are regenerated only inside that block. A change to the adbd patch set therefore never reaches an image built on an SDK tree whoseout/already holds an adbd.Evidence
/home/noah/projects/flare-edge/sdk):out/usr/bin/adbdmd588a58425c6217ce2366791009a628b63, built 2026-09-29./usr/bin/adbdmd588a58425c6217ce2366791009a628b63. The image carries the stale binary.Impact
Any adbd fix in the patch series (for example flare-edge#3129, adbd TCP 5555 and 5037 listeners) is silently absent from every later image.
Fix
Stamp the adbd build with the hash of its inputs (Makefile,
adbd-current.sh,android-tools-patches/*) and rebuild when the stamp does not match. The gate is a separate script so that its cases can be tested without a compile. Regression test:luckfox-sdk-patches/tests/test-adbd-no-tcp.sh.Related: flare-edge#3129.
Fixed on sp/adbd-tcp-off (head fabd79f; the earlier head
2c355f0ecarriedfc62400, which a rebase onto origin/rebuildb8d9d54dropped). The android-tools Makefile now gates adbd on adbd-current.sh and a stamp of the Makefile, the gate script and the patch set. Regression test: luckfox-sdk-patches/tests/test-adbd-no-tcp.sh (runs the rule under make with stub toolchains; unpatched base FAIL, patched base PASS) and tests/adbd-no-tcp-cases.sh (mutant cases must FAIL).Proof: the farm build rebuilt adbd. That build and the bench flash used
2c355f0e.0d00b93has the same luckfox-sdk-patches content;fabd79fadds the fail-closed rule (bfe-core1106-sdk#45) and the mutant cases (#46), which are not yet built or flashed. The image adbd md5 is 970416893fa96430a5885c9297719482, replacing the stale 88a58425c6217ce2366791009a628b63 that the old gate kept.Not closed until sp/adbd-tcp-off merges.