Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Jan 14, 2024
1 parent 02aa263 commit 179358e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion firmware/ansible.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SOURCES = \
$(wildcard mock_hardware/modules/ansible/*.c) \

# Add the git commit id to a file for use when printing out the version
ansible/src/gitversion.c: $(shell find ../.git/modules/firmware/$(TARGET_NAME) -type f,d)
ansible/src/gitversion.c: $(shell find ../.git/modules/firmware/$(TARGET_NAME)/refs) ../.git/modules/firmware/$(TARGET_NAME)/packed-refs ../.git/modules/firmware/$(TARGET_NAME)/HEAD
echo "const char *git_version = \"$(GIT_VERSION)\";" > $@

include common.mk
2 changes: 1 addition & 1 deletion firmware/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RACK_DIR ?= ../../..
TARGET_DIR := ../res/firmware/
BUILD_DIR := ../build/firmware/$(TARGET_NAME)

GIT_VERSION = $(shell cut -d '-' -f 1 <<< $(shell cd $(TARGET_NAME); git describe --tags | cut -c 1-)) $(shell cd $(TARGET_NAME); git describe --always --dirty --exclude '*' | tr '[a-z]' '[A-Z]')
GIT_VERSION := $(shell cut -d '-' -f 1 <<< $(shell cd $(TARGET_NAME); git describe --tags | cut -c 1-)) $(shell cd $(TARGET_NAME); git describe --always --dirty --exclude '*' | tr '[a-z]' '[A-Z]')

FLAGS += \
-DDEBUG \
Expand Down
2 changes: 1 addition & 1 deletion firmware/earthsea.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ SOURCES = \
$(wildcard mock_hardware/common/*.c) \
$(wildcard mock_hardware/modules/trilogy/*.c) \

FLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
FLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""

include common.mk
3 changes: 2 additions & 1 deletion firmware/meadowphysics.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SOURCES = \
$(wildcard mock_hardware/common/*.c) \
$(wildcard mock_hardware/modules/trilogy/*.c) \

FLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
FLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""


include common.mk
2 changes: 1 addition & 1 deletion firmware/teletype.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(TARGET_NAME)/src/scanner.c: $(TARGET_NAME)/src/scanner.rl
$(RAGEL) -C -G2 $(TARGET_NAME)/src/scanner.rl -o $(TARGET_NAME)/src/scanner.c

# Add the git commit id to a file for use when printing out the version
$(TARGET_NAME)/module/gitversion.c: $(shell find ../.git/modules/firmware/$(TARGET_NAME) -type f,d)
$(TARGET_NAME)/module/gitversion.c: $(shell find ../.git/modules/firmware/$(TARGET_NAME)/refs) ../.git/modules/firmware/$(TARGET_NAME)/packed-refs ../.git/modules/firmware/$(TARGET_NAME)/HEAD
echo "const char *git_version = \"$(GIT_VERSION)\";" > $@

include common.mk
2 changes: 1 addition & 1 deletion firmware/whitewhale.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ SOURCES = \
$(wildcard mock_hardware/common/*.c) \
$(wildcard mock_hardware/modules/trilogy/*.c) \

FLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
FLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""

include common.mk

0 comments on commit 179358e

Please sign in to comment.