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
4 changes: 2 additions & 2 deletions recipes-devtools/flashprog-flasher/flashprog-flasher.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ SECTION = "devel"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "libusb"
DEPENDS = "libusb pciutils libftdi libgpiod"

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


S = "${WORKDIR}/git"

Expand Down