mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
build: added GIT_VERSION define to Makefile build
This commit is contained in:
parent
eee1364f05
commit
18c3b16aa8
@ -4,6 +4,9 @@
|
|||||||
#
|
#
|
||||||
SYSTYPE := $(shell uname)
|
SYSTYPE := $(shell uname)
|
||||||
|
|
||||||
|
GIT_VERSION := $(shell git rev-parse HEAD | cut -c1-8)
|
||||||
|
EXTRAFLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""
|
||||||
|
|
||||||
# force LANG to C so awk works sanely on MacOS
|
# force LANG to C so awk works sanely on MacOS
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ PX4_V2_CONFIG_FILE=$(MK_DIR)/PX4/config_px4fmu-v2_APM.mk
|
|||||||
|
|
||||||
SKETCHFLAGS=$(SKETCHLIBINCLUDES) -I$(PWD) -DARDUPILOT_BUILD -DCONFIG_HAL_BOARD=HAL_BOARD_PX4 -DSKETCHNAME="\\\"$(SKETCH)\\\"" -DSKETCH_MAIN=ArduPilot_main
|
SKETCHFLAGS=$(SKETCHLIBINCLUDES) -I$(PWD) -DARDUPILOT_BUILD -DCONFIG_HAL_BOARD=HAL_BOARD_PX4 -DSKETCHNAME="\\\"$(SKETCH)\\\"" -DSKETCH_MAIN=ArduPilot_main
|
||||||
|
|
||||||
PX4_MAKE = make -C $(SKETCHBOOK) -f $(PX4_ROOT)/Makefile EXTRADEFINES="$(SKETCHFLAGS) "$(EXTRAFLAGS) APM_MODULE_DIR=$(SKETCHBOOK) SKETCHBOOK=$(SKETCHBOOK) PX4_ROOT=$(PX4_ROOT) NUTTX_SRC=$(NUTTX_SRC) MAXOPTIMIZATION="-Os"
|
PX4_MAKE = make -C $(SKETCHBOOK) -f $(PX4_ROOT)/Makefile EXTRADEFINES="$(SKETCHFLAGS) "'$(EXTRAFLAGS)' APM_MODULE_DIR=$(SKETCHBOOK) SKETCHBOOK=$(SKETCHBOOK) PX4_ROOT=$(PX4_ROOT) NUTTX_SRC=$(NUTTX_SRC) MAXOPTIMIZATION="-Os"
|
||||||
PX4_MAKE_ARCHIVES = make -C $(PX4_ROOT) NUTTX_SRC=$(NUTTX_SRC) archives MAXOPTIMIZATION="-Os"
|
PX4_MAKE_ARCHIVES = make -C $(PX4_ROOT) NUTTX_SRC=$(NUTTX_SRC) archives MAXOPTIMIZATION="-Os"
|
||||||
|
|
||||||
.PHONY: module_mk
|
.PHONY: module_mk
|
||||||
|
Loading…
Reference in New Issue
Block a user