adbd gate stamp omits the android-tools source tarballs #49

Open
opened 2026-11-12 04:00:09 -07:00 by noah · 0 comments
Owner

ADBD_INPUTS in sysdrv/tools/board/android-tools/Makefile hashes the Makefile, adbd-current.sh and the android-tools patch set. The rule also extracts android-tools_4.2.2+git20130218.orig.tar.xz and android-tools_4.2.2+git20130218-3ubuntu41.debian.tar.gz and builds adbd from them. A change to either tarball, with the three hashed inputs unchanged, matches the stamp, so adbd is not rebuilt and a warm SDK tree keeps a binary built from the old source. This is the failure class of #44.

Found while re-verifying flare-edge#3129 (warden-sdk sp/adbd-tcp-off).

Fix: hash both tarballs into ADBD_INPUTS. Regression tests: luckfox-sdk-patches/tests/test-adbd-no-tcp.sh checks the new formula and that a changed tarball rebuilds adbd; adbd-no-tcp-cases.sh gains a mutant that drops the tarballs and must fail.

`ADBD_INPUTS` in `sysdrv/tools/board/android-tools/Makefile` hashes the Makefile, `adbd-current.sh` and the android-tools patch set. The rule also extracts `android-tools_4.2.2+git20130218.orig.tar.xz` and `android-tools_4.2.2+git20130218-3ubuntu41.debian.tar.gz` and builds adbd from them. A change to either tarball, with the three hashed inputs unchanged, matches the stamp, so adbd is not rebuilt and a warm SDK tree keeps a binary built from the old source. This is the failure class of #44. Found while re-verifying flare-edge#3129 (warden-sdk `sp/adbd-tcp-off`). Fix: hash both tarballs into `ADBD_INPUTS`. Regression tests: `luckfox-sdk-patches/tests/test-adbd-no-tcp.sh` checks the new formula and that a changed tarball rebuilds adbd; `adbd-no-tcp-cases.sh` gains a mutant that drops the tarballs and must fail.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#49