Skip to content

- update binjgb to newest version (with banked PC support) - #155

Draft
SelvinPL wants to merge 1 commit into
gbdev:masterfrom
SelvinPL:feature/new_banked_breakpoints
Draft

SelvinPL wants to merge 1 commit into
gbdev:masterfrom
SelvinPL:feature/new_banked_breakpoints

Conversation

@SelvinPL

@SelvinPL SelvinPL commented Aug 3, 2026

Copy link
Copy Markdown
Contributor
  • adding changes needed for use banked PC and breakpoints

Closes #154

@SelvinPL

SelvinPL commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

this obviously not working with master ... why ?
commit 70f7ac9
makes it ready for 1.0.2 but we are still on 1.0.1 in master
but i've tested vs #151
and it works as intended

Comment thread js/compiler.js Resolved
@Rangi42
Rangi42 marked this pull request as draft August 12, 2026 17:52
@Rangi42

Rangi42 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

If this is "not working on master", I've converted it to a draft until that's fixed (helps me avoid merging it by accident, our CI being green just tests that rgbds-live builds not that it works).

master is still on rgbds v1.0.1, before the CMake/Emscripten issue that we're in the middle of debugging, so that problem should be unrelated to this binjgb one.

@SelvinPL

SelvinPL commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor Author

well, breakpoints are not working on producion anyway
full picture is #157

but if we apply fix from my comment now - without fixing patch then we have red

ISSOtm added a commit that referenced this pull request Aug 15, 2026
Its `option` entries can (and do) override ours on first build,
whereas `set()` takes precedence (but requires forcing it to honour
a policy introduced in CMake 3.13, ugh).

Related binjgb updating work in #155, for reference.
ISSOtm added a commit that referenced this pull request Aug 15, 2026
Its `option` entries can (and do) override ours on first build,
whereas `set()` takes precedence (but requires forcing it to honour
a policy introduced in CMake 3.13, ugh).

Related binjgb updating work in #155, for reference.
ISSOtm added a commit that referenced this pull request Aug 15, 2026
Its `option` entries can (and do) override ours on first build,
whereas `set()` takes precedence (but requires forcing it to honour
a policy introduced in CMake 3.13, ugh).

Related binjgb updating work in #155, for reference.
Rangi42 added a commit that referenced this pull request Aug 15, 2026
* Handle the patching of subprojects in a more debuggable way

Previously, if the patch failed to apply *for any reason*,
we would assume it was already applied.

Additionally, some of the provided options were sloppy
and turn out not to be necessary at this point anyway.

Finally, we now immediately abort configuring if any of the patches
fail to apply, preventing any spurious errors that our patches may
have been meant to avoid.

* Re-run CMake automatically if any patch file is changed

* Bridge Emscripten's ports system better

Inspired by #151, but avoiding `CACHE FORCE`,
and using the newer flag introduced in Emscripten 3.1.54 (2024).

* Update binjgb and configure it in a more robust way

Its `option` entries can (and do) override ours on first build,
whereas `set()` takes precedence (but requires forcing it to honour
a policy introduced in CMake 3.13, ugh).

Related binjgb updating work in #155, for reference.

* Force RGBDS to ignore its Git tags

* Build in parallel in CI

* Build with latest Node

We were being bumped automatically to Node 24 by GitHub anyway,
so might as well bite that bullet.

* Cache NPM packages in CI

* Build as many files as possible on CI failure

So that we can get the most failures out of a single run,
and thus the most info.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: ISSOtm <me@eldred.fr>
Co-authored-by: SelvinPL <przemek.sulikowski@gmail.com>
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
@Rangi42

Rangi42 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Can this be rebased? Did #149 resolve it?

@SelvinPL

SelvinPL commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

All you need in cmake script is

target_compile_definitions(binjgb PRIVATE
        "-DBREAKPOINTS_MAX_BANKS_NUMBER=256"
    )

The whole problem are changes in formatting

Rest changes are in js

@Rangi42

Rangi42 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Okay! Please rebase and un-draft this whenever it's ready.

@ISSOtm
ISSOtm force-pushed the feature/new_banked_breakpoints branch from d8dc368 to fbb8b76 Compare August 26, 2026 03:00
- adding changes needed for use banked PC and breakpoints
@ISSOtm
ISSOtm force-pushed the feature/new_banked_breakpoints branch from fbb8b76 to 86f37c5 Compare August 26, 2026 03:02
@ISSOtm

ISSOtm commented Aug 26, 2026

Copy link
Copy Markdown
Member

First fpush tidies up the rebase, and the second one some indentation woes. I have no idea about the functionality itself, though; how can we test it out?

This branch has not been deployed

No deployments
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.

Breakpoints are not compatible with banking

3 participants