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
Rename make folder to get rid of build error. #12880
Conversation
Do you want to test this code? You can flash it directly from Betaflight Configurator:
WARNING: It may be unstable. Use only for testing! |
AUTOMERGE: (FAIL)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please rename this directory to mk
as all the others use shortened names. e.g. src, lib etc
Done. |
@avida what system are you using? |
Linux Mint, pyenv 2.3.19 |
@avida : Well, it seems to be bug in GNU make .. |
Bug is already fixed in coreutil (and make). coreutils/gnulib@6e6abd0 |
The MAKE_SCRIPT_DIR is definitely good idea. But rename make -> mk may not be necessary. |
I am ok with the rename. it shouldn't cause any issues (aside from rebases required if there are PRs open). |
When trying to build firmware with current directory in PATH environment it scans for make command and generates "Permission denied" error in case if current directory in PATH precedes /usr/bin/ directory.In my case it was caused by incorrect pyenv init script. Rename make folder to avoid errors like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Just ran into this today, wondering why my I disagree with this change. The principle behind the project structure that was setup in Cleanflight 10 years ago was so that newcomers to the project can easily navigate the project and not have to look in folders without being able to guess the content of the folder before opening it.
Changing the folder names as a workaround to an incorrectly setup environment, IMHO, is not the answer. Please can we revert this? |
This reverts commit 7b39d3d.
In a similar vane... you would presume that |
it's true, but that's because at the time I was coding a lot in Java and Groovy where 'src' is a common abbreviation however, 'src' is a common abbreviation across ALL programming languages, whereas 'mk' is not, and the point still stands that using 'mk' to avoid a user-specific environment issue is a bad idea when for 10+ years using 'make' has been 100% fine for every developer so far. |
obj (for objects), bin (for binaries) ... the point is, shortening directory names is not uncommon and has been in practice for considerable time. The fact is the I am not overly fussed to be honest - it can be renamed to |
My bad, I'm mis-remembering it's origin. Carry on! |
When trying to build firmware with current directory in PATH environment it scans for make command and generates "Permission denied" error in case if current directory in PATH precedes /usr/bin/ directory.In my case it was caused by incorrect pyenv init script. Rename make folder to avoid errors like this.
When trying to build firmware with current directory in PATH environment it scans for make command and generates "Permission denied" error in case if current directory in PATH precedes /usr/bin/ directory.In my case it was caused by incorrect pyenv init script.
Rename make folder to avoid errors like this.