From cf9d56dcc50c8c07de2040cb52aecfbdb297a3d1 Mon Sep 17 00:00:00 2001 From: dev_zzo Date: Mon, 17 Oct 2016 11:50:22 +0200 Subject: [PATCH] fix build on Windows --- Firmware/Chameleon-Mini/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Firmware/Chameleon-Mini/Makefile b/Firmware/Chameleon-Mini/Makefile index fb6337d..cd0c535 100644 --- a/Firmware/Chameleon-Mini/Makefile +++ b/Firmware/Chameleon-Mini/Makefile @@ -72,7 +72,11 @@ SPM_HELPER_ADDR = 0x21FE0 #Start of SPM helper section. Should be last 32Byte in SPM_HELPER_OBJCOPY = --set-section-flags=.spmhelper="alloc,load" #Build configuration -BUILD_DATE = $(shell date +'\"%y%m%d\"') +ifeq ($(OS),Windows_NT) +BUILD_DATE = $(shell date /t) +else +BUILD_DATE = $(shell date +'%y%m%d') +endif COMMIT_ID = $(shell git rev-parse --short HEAD) MCU = atxmega128a4u ARCH = XMEGA