Closed aalm closed 1 month ago
works for me, lets get this merged!
Will merge this. Tested and still works in Windows?
it does still work fine, however it adds the ugly output: process_begin: CreateProcess(NULL, uname, ...) failed.
because uname isn't a valid command on windows. The UNAME variable being blank still functions as intended for the rest of the makefile.
You can improve the detection and replace the error with some useful output by replacing the line UNAME := $(shell uname)
with:
ifeq '$(findstring ;,$(PATH))' ';'
UNAME := Windows
else
UNAME := $(shell uname 2>/dev/null || echo Unknown)
UNAME := $(patsubst CYGWIN%,Cygwin,$(UNAME))
UNAME := $(patsubst MSYS%,MSYS,$(UNAME))
UNAME := $(patsubst MINGW%,MSYS,$(UNAME))
endif
$(info $(UNAME) host detected)
Tested on both Linux and Windows.
Please fix so it doesn't print the error messages on windows and I will merge this
Please fix so it doesn't print the error messages on windows and I will merge this
Done.
Thank you!
also flashing can be done with given arguments(change ttyUSB0 to whatever you have it on):