Skip to content

examples: pru_i2c: wire firmware into top-level build (fixes am261x CI)#147

Merged
pratheesh-ti merged 1 commit into
TexasInstruments:a0502729_PRU_I2Cfrom
pratheesh:fix/137-wire-pru_i2c-build
Jun 26, 2026
Merged

examples: pru_i2c: wire firmware into top-level build (fixes am261x CI)#147
pratheesh-ti merged 1 commit into
TexasInstruments:a0502729_PRU_I2Cfrom
pratheesh:fix/137-wire-pru_i2c-build

Conversation

@pratheesh

Copy link
Copy Markdown
Contributor

Follow-up to #137 — meant to fold directly into that PR's branch (a0502729_PRU_I2C).

The am261x "Verify all makefiles were built" CI step on #137 fails with makefile never built for the two pru_i2c PRU firmware makefiles, because nothing in the top-level make recurses into them.

This single commit fixes that:

  • Adds examples/pru_i2c/makefile aggregator (modeled on examples/empty), scoped to am261x with an am261x target that builds the pru0/pru1 ti-pru-cgt firmware. Non-am261x devices hit the SUPPORTED_PROCESSORS prebuild check and skip cleanly, so other device builds are unaffected.
  • Adds pru_i2c to examples/makefile SUBDIRS so the top-level make recurses into it.

Verified with GNU Make dry-runs: am261x recurses into both firmware leaf makefiles (each producing a .out, satisfying the verify step); am263x prints "does not have a build option" and builds nothing.

@achala-ti — feel free to merge this into your branch (or cherry-pick e18657d8) so #137's CI goes green.

🤖 Generated with Claude Code

The am261x "Verify all makefiles were built" CI step failed with
"makefile never built" for the two pru_i2c PRU firmware makefiles,
because nothing in the top-level make recursed into them.

- Add examples/pru_i2c/makefile aggregator (modeled on examples/empty),
  scoped to am261x with an am261x target that builds the pru0/pru1
  ti-pru-cgt firmware. Non-am261x devices hit the SUPPORTED_PROCESSORS
  prebuild check and skip cleanly, so other device builds are unaffected.
- Add pru_i2c to examples/makefile SUBDIRS so the top-level make recurses
  into it.

Verified with GNU Make dry-runs: am261x recurses into both firmware
leaf makefiles (each producing a .out, satisfying the verify step);
am263x prints "does not have a build option" and builds nothing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pratheesh-ti pratheesh-ti merged commit d379500 into TexasInstruments:a0502729_PRU_I2C Jun 26, 2026
@TexasInstruments TexasInstruments deleted a comment from qodo-code-review Bot Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants