Skip to content

Commit 35429d0

Browse files
authored
Replace variable assignments to shell assignments
This has the wonderful effect of executing the commands once then reusing their output as the variable is needed. Speeds clean build time considerably if `git submodule status` takes a bit on your machine!
1 parent 32a43b7 commit 35429d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ MBR_HEX = lib/softdevice/mbr/hex/mbr_nrf52_2.4.1_mbr.hex
2222
# linker by MCU eg. nrf52840.ld
2323
LD_FILE = linker/$(MCU_SUB_VARIANT).ld
2424

25-
GIT_VERSION = $(shell git describe --dirty --always --tags)
26-
GIT_SUBMODULE_VERSIONS = $(shell git submodule status | cut -d" " -f3,4 | paste -s -d" " -)
25+
GIT_VERSION != git describe --dirty --always --tags
26+
GIT_SUBMODULE_VERSIONS != git submodule status | cut -d" " -f3,4 | paste -s -d" " -
2727

2828
# compiled file name
2929
OUT_FILE = $(BOARD)_bootloader-$(GIT_VERSION)

0 commit comments

Comments
 (0)