Hi there,
There seems to be a bug (or by design issue) with the Common.mk file when trying to build under WSL 2. The build process needs to test to see if it is running under WSL and then turn on folder case sensitivity as appropriate. However, there appears to be a change in WSL 2 that is failing evaluation.
The test in Common.mk is:
but with WSL 2 the “cat /proc/sys/kernel/osrelease” returns:
4.19.104-microsoft-standard
So it fails as findstring is case sensitive. I can fix this for my system but it should be addressed for the future as who knows if MS will go back to uppercase M in the osrelease value.
Thanks,
TonyG
已解决! 转到解答。
Looks like I forgot to delete my u-boot directory when I first tested this. What appears to be happening is that on the first run there is no u-boot directory so this part of the Common.mk:
Ends up leaving CASE_DIR_WIN empty so when the build gets around to this:
PowerShell can't enter the directory and set the case sensitivity - If you break the make right after this and run it again then it sets the case sensitivity correctly. If you wait until the build fails then I think you already have directories that are case insensitive so you break the SPL part.
Both this and the uppercase/lowercase Microsoft need to be fixed.
Thanks,
TonyG
Looks like I forgot to delete my u-boot directory when I first tested this. What appears to be happening is that on the first run there is no u-boot directory so this part of the Common.mk:
Ends up leaving CASE_DIR_WIN empty so when the build gets around to this:
PowerShell can't enter the directory and set the case sensitivity - If you break the make right after this and run it again then it sets the case sensitivity correctly. If you wait until the build fails then I think you already have directories that are case insensitive so you break the SPL part.
Both this and the uppercase/lowercase Microsoft need to be fixed.
Thanks,
TonyG
Spoke too soon - My build just failed on the SPL being identified as a directory (which I had manually fixed before by turning on case sensitivity for the u-boot directory in the relevant firmware directory).
TonyG