ehntoo / binaryninja-svd

A plugin to add memory map metadata for peripherals to binary ninja from CMSIS-SVD files
Apache License 2.0
10 stars 7 forks source link

Port to Pyside6 #9

Closed fabianfreyer closed 2 years ago

fabianfreyer commented 3 years ago

Binary ninja is now using pyside6:

Failed to import python plugin: community/ehntoo_binaryninjasvd: Qt 6 must import PySide6 instead of PySide2
Failed to load plugin: ehntoo_binaryninjasvd
ehntoo commented 3 years ago

Hm, apparently PySide6 doesn't yet include the QtWebEngineWidgets module. I'll have to put together a release without the SVD browser.

fabianfreyer commented 3 years ago

Yep. @psifertex - since I think you added that, is there something else that could be used instead?

psifertex commented 3 years ago

No and this is the one plugin that I'm genuinely sad about losing that capability for. There's no simple fixes unfortunately.

Technically QT 6.2 does drop next week and we might move to it and it supposedly will have a cross-platform QWebEngine so it could go back into the product, but since it doubles the installer size so we're strongly considering not including it at all at that point.

Possible work arounds include:

ehntoo commented 3 years ago

Understood on not wanting to double the installer size - it seems a bit overkill to ship an entire web browser.

Doing some googling, I suppose I could wrap pyOCD's cmsis-pack-manager project - seems like it would add nontrivial value, and I could also automatically set up flash and RAM regions based on those described in the pdsc.

I'll try and find time this week to get a placeholder release out that nukes the browser integration and updates structure API usage to match the new beta APIs, since it seems like the long-term solution for the integrated packfile support may be a little more effort.

four0four commented 2 years ago

As a stop-gap, here's the rather messy set of changes sitting in my local copy. Just removes the browser entirely, and fixes up some API changes. Maybe it'll save someone time :)

psifertex commented 2 years ago

I just submitted a removal of the browser and updates for PySide 6 as #12.

ehntoo commented 2 years ago

Fixed in release v3.0.0. I'll open a new issue to track an improved svd manager using cmsis-pack-manager. Thanks for all the contributions, folks. :)