-
Notifications
You must be signed in to change notification settings - Fork 133
recompile ./xip_ram_perms/xip_ram_perms.elf requires PICOTOOL_NO_LIBUSB #139
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
Comments
I think you're misreading the code - it's the other way round, so it only compiles The reason for including it in the git repository is that users who don't wish to compile from source (for example if they don't have a working pico-sdk build) should still be able to build picotool. This same reasoning applies to the |
You can see this job for an example compilation with libusb and compiling these binaries from source |
Thank you, it seems that I followed a red-herring and mis-read the if-condition in CMakeLists.txt. I'm currently configuring picotool with
I'm building picotool 2.0, so obviously it is not available yet. In the pico-sdk 2.0 packaging I solve this by passing |
That should have been fixed in #131 (as I noticed it while writing the tests) which I've just merged into develop, which adds |
Thank you, I patched Another problem I'm running into is CFLAGS. In Debian, we apply numerous hardening features which of course we'd like to apply to the picotool binary. But those CFLAGS are also propagated to the pico-sdk build and make that build fail because these flags are not supported by the arm-none-eabi compiler and leads to errors like this:
Do you know of a good way to pass a different set of compiler flags to the pico-sdk build than to the build of picotool itself? Thanks! |
If you pass them to the picotool cmake configure step as Alternatively you could patch the |
Thank you for all your input. I filed #140 to continue discussion about this topic there. My next issue are embedded build paths in Specifically, the embedded paths seem to be of the nature of:
Maybe it could be made possible to either disable the inclusion of local paths with a flag or to replace them with relative paths instead of absolute paths? |
EDIT: Ooops, ignore me! 🤦♂️ See William's comment below. |
No, it's fully related to this - the paths all come from the |
This embedded local paths of the build machine into the elf file, which was undesirable behaviour
Should be fixed with that referenced commit - the pico-sdk build adds debug info ( |
Perfect, that fixed it! Thanks a bunch! I think my package is ready now and I have no further questions. I'm thus closing this issue. Thank you once again! |
Hi,
for the Debian packaging of picotool 2.0, I'd like to rebuild the file
./xip_ram_perms/xip_ram_perms.elf
but when readingCMakeLists.txt
it seems that doing so is only possible if one also setsPICOTOOL_NO_LIBUSB=1
. But I'd like to build picotool with libusb support. Am I misreading something? Can I somehow build picotool with libusb and rebuild./xip_ram_perms/xip_ram_perms.elf
?Also, why is
./xip_ram_perms/xip_ram_perms.elf
tracked in git?The text was updated successfully, but these errors were encountered: