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
Order of inclusion #19
Comments
Nope, |
How can they override things like SDK then? Or other variables within it. I guess I am just having trouble specifying specific Espressif SDK versions. |
There are so many ways, but I understand the confusion. Much of it is because I wanted an optional shell variable to specify the path (which is SOOOOO useful). To answer your question: Possibility 1: SDK_DEFAULTThe most frequently used is probably just changing the value of
Change that to
if you want to use the 2.0.0 version. The value of
Possibility 2: Make ArgumentFor a one-off build, just to see if it compiles, you can also pass the variable to Make as an argument:
Possibility 3: Top-Level OverwriteThe third alternative is to edit the top-level of any project Makefile (the one that is derived from Possibility 4: Shell variableI myself specify the shell variable |
So, the big deal here isn't the location of the pfalcon esp-open-sdk, it's the location of the espressif esp-nonos-sdk... Which I think you know, sorry, the fact they're both SDKs is hard. Anyway, the problem isn't even which version someone wants to use, which yes, it would absolutely make sense to do in shell variables, or make arguments. The problem is that /some/ projects will be dependent on specific versions of the SDK. For instance, until last night, colorchord was incompatible with 1.5.4, so I had to specify a specific version. So, things that would be done per-user or per-environment are right out. Per-project is the only way to go. |
Then the top-level Makefile would be the best place.
But ultimately it's the user's responsibility to have the right SDK ready and set the right path, unless you ship the right sdk with the top-level project, this will always be a problem. For colorchord I mean this Makefile. |
Where in the makefile? Hmm, sorry, you just gave such a beautiful explanation up there... I guess where would be the idea place in a Makefile? |
Np. See my edit. P.S. I often give a quick answer as soon as possible, then edit my post to elaborate. |
Hmm, that totally doesn't work. It tries pulling GCC and all its friends from there, too. |
Now I'm con-f-used. Don't you want to use the GCC that comes with the SDK? You could also set the Here is my setup: I have different versions of the SDK (all build from @pfalcons Makefile) at:
In my I test if stuff compiles with on other SDK version (e.g.
What is your setup and what exactly do you want to do? |
I want the GCC that comes with esp-open-sdk on all of my projects. There is no need to tie the Espressif SDK to any esp-open-sdk version, as they are completely independent. I want to be able to select a specific Espressif NonOS SDK version separate from the esp-open-sdk. I really wish we had better words for these things. |
Ah, now I got you. Have you tried redefining the following stuff in the top-level
|
But, but... but..... I am asking you if I wanted to override that one specific component, what would I make my Makefile, or user.cfg look like? |
Maybe? Didn't try it. Or am I being stupid? |
I must be going crazy. I though I tried exactly that, but I guess I didn't. Indeed. This is precisely the thing I wanted. I'm really sorry, thanks for dealing with my slowness on these issues. I thought last time I tried it it was trying to pull the compiler from there. |
No worries. Believe me, I've been there. We all have. |
The top of the makefiles read:
Shouldn't user be after common, that way it can override things like SDK?
The text was updated successfully, but these errors were encountered: