[qca-nss-clients] Remove __TIME__ __DATE__ macros
GCC 4.9 and newer have turn on -Werror=date-time, which errors on
use of __DATE__, __TIME__, or __TIMESTAMP__, which would increase
reproducibility.
- Remove __DATE__ and __TIME__ macro
- Take host build system's time in cflag and use that instead
Change-Id: I240292a12408542d818112d42f5f05bfc3ca4684
Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
diff --git a/Makefile b/Makefile
index 6dc10d6..5de75cd 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@
ccflags-y := -I$(obj) -I$(obj)/..
+export BUILD_ID = \"Build Id: $(shell date +'%m/%d/%y, %H:%M:%S')\"
+ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
+
obj-y+= profiler/
obj-y+= nss_qdisc/