@WMXZ BTW: did you try to implement that RTC setting for the linker? If you find a solution I'd be happy to include it in the makefile
this is working for me
Code:
FLAGS_LD := -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$(shell powershell date +%s)
this assumes that all Windows 10 have powershell implemented
Edit1:
I have also a python solution that is somewhat more complicated
Code:
pyCmd = $(shell python -c '$1')
TS:=$(call pyCmd,import time; print("%d" % time.time()))
Code:
FLAGS_LD := -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$(TS)
Edit2:
OK, this should also do it
Code:
FLAGS_LD := -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$(shell python -c 'import time; print("%d" % time.time())')
Last edited: