Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flashprog flasher #92

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Add flashprog flasher #92

wants to merge 9 commits into from

Conversation

EduKav1813
Copy link

@EduKav1813 EduKav1813 commented Jan 24, 2025

@EduKav1813 EduKav1813 self-assigned this Jan 24, 2025
@EduKav1813 EduKav1813 marked this pull request as ready for review January 27, 2025 11:18
@EduKav1813 EduKav1813 requested a review from tym2k1 January 27, 2025 11:18
@EduKav1813
Copy link
Author

@tym2k1 This is ready for review. While tool builds, please pay attention to the configuration (For example, I disable CONFIG_JLINK_SPI=no). I am not sure if we may need this or not.

@EduKav1813
Copy link
Author

P.S. Fixed pre-commit


PV = "1.0+${SRCPV}"
SRC_URI = "git://github.com/SourceArcade/flashprog.git;protocol=https;branch=main"
SRCREV = "eb2c04185f8f471c768b742d66e4c552effdd9cb"

EXTRA_OEMAKE = "NOSTRIP=1"
EXTRA_OEMAKE = "CONFIG_JLINK_SPI=no"
Copy link
Contributor

@tym2k1 tym2k1 Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific context or need for this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It requires libjaylink, and I am not sure what is the best way to add it, or if we need this option at all, so I added this flag just so everything works and we can work from there

Copy link
Contributor

@tym2k1 tym2k1 Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be missing functionality though and the utility won't be able to flash some devices. The syntacore/libjaylink doesn't seem that hard to port to Yocto. In case we decide to go with disabling support for JLINK appropriate comments should be added to this bb recipe so that the reasoning for this change can be easily found in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@macpijan how do you think we should proceed in this case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not aware of any need for JLINK right now. So this is fine for us. We can leave link from @tym2k1 as a comment to this line.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comment: a6b93cd

@EduKav1813 EduKav1813 requested a review from tym2k1 January 27, 2025 15:02

PV = "1.0+${SRCPV}"
SRC_URI = "git://github.com/SourceArcade/flashprog.git;protocol=https;branch=main"
SRCREV = "eb2c04185f8f471c768b742d66e4c552effdd9cb"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use a commit that corresponds to the tag we specify. In this case it'd be v1.3. It also ensures we're using a working version not development commits in between releases

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in latest commits. We now build from the v1.3 tag

@EduKav1813 EduKav1813 requested a review from macpijan January 31, 2025 10:08
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.

3 participants