-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
st-flash and other utilities search for chip files in the wrong directory #1180
Comments
Another classical example for unfinished attempts... :-/ |
Don't be discouraged. This is a typical process in software development :) |
Yes, but it should appear on private/personal branches with intermediate working (sub)sets to be proposed for a merge each and not within endlessly reworked PRs that then appear to stall. That's the point and this is actually causing such problems. PRs are not spaces for development, but for final review and last additional changes. I just find this regression deriving from such a background - that's why. |
The hardcoded path Thus changing into within |
Another leftover is the old chip configuration in |
Here, FWIW, is a patch that replaces all |
@gszy Good attempt! 👍 |
@slyshykO Can you confirm that #1180 (comment) fixes this? |
No, this is not enough. set(CMAKE_STLINK_ETC_DIR etc)
set(CMAKE_ETC_CHIPS_DIR ${CMAKE_STLINK_ETC_DIR}/stlink/chips)
set(CMAKE_ETC_CHIPS_DIR_ABS ${CMAKE_INSTALL_PREFIX}/${CMAKE_ETC_CHIPS_DIR})
add_definitions( -DETC_STLINK_DIR="${CMAKE_ETC_CHIPS_DIR_ABS}" ) down, right after include(GNUInstallDirs) # Define GNU standard installation directories Also, I think that we should use share dir name, not etc here set(CMAKE_STLINK_ETC_DIR etc) |
Yes, we should definitely use |
IMHO, ideally we would have the default chip files installed to |
Well, I was just going to change that naming anyway due to the mentioned reason... |
My suggestion is:
just after
@gszy Additionally we should talk about the additional read from |
st-info
,st-flash
,st-trace
,st-util
make install
copied chip's files to /usr/local/etc/stlink/chips but st-* utils search them in /etc/stlink/chipsThe text was updated successfully, but these errors were encountered: