summaryrefslogtreecommitdiff
path: root/lora_pkt_fwd/Makefile
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2019-10-03 12:01:18 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2019-10-03 12:01:18 -0500
commitc224e6e47cab24e39554765cafb3b21b302df40b (patch)
tree9666d5908bf5a761da93ff91d99b22ed66ad72a6 /lora_pkt_fwd/Makefile
parent5ae0deec6af66f26e84b34366ca1663261498c63 (diff)
downloadpacket_forwarder_mtac_full-c224e6e47cab24e39554765cafb3b21b302df40b.tar.gz
packet_forwarder_mtac_full-c224e6e47cab24e39554765cafb3b21b302df40b.tar.bz2
packet_forwarder_mtac_full-c224e6e47cab24e39554765cafb3b21b302df40b.zip
Added rety with pin reset when concentrator does not start and changed build version to be based on git describe and commit
Diffstat (limited to 'lora_pkt_fwd/Makefile')
-rw-r--r--lora_pkt_fwd/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lora_pkt_fwd/Makefile b/lora_pkt_fwd/Makefile
index dda589e..069fc0a 100644
--- a/lora_pkt_fwd/Makefile
+++ b/lora_pkt_fwd/Makefile
@@ -15,15 +15,15 @@ INCLUDES = $(wildcard inc/*.h)
# must get library build option to know if mpsse must be linked or not
include $(LGW_PATH)/library.cfg
-RELEASE_VERSION := `cat ../VERSION`
-
+RELEASE_VERSION := $(shell git describe)
+RELEASE_COMMIT := $(shell git rev-parse --short HEAD)
### Constant symbols
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar
MORECFLAGS := -Wall -Wextra -std=c99 -Iinc -I. -isystem =/usr/include/gps
-VFLAG := -D VERSION_STRING="\"$(RELEASE_VERSION)\""
+VFLAG := -D VERSION_STRING="\"$(RELEASE_VERSION)-$(RELEASE_COMMIT)\""
### Constants for Lora concentrator HAL library
# List the library sub-modules that are used by the application