Skip to content

Commit

Permalink
Remove excessively clever git ref filepath dependence from fw makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Dewb committed Jan 14, 2024
1 parent 688022c commit 0f27665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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)/refs) ../.git/modules/firmware/$(TARGET_NAME)/packed-refs ../.git/modules/firmware/$(TARGET_NAME)/HEAD
ansible/src/gitversion.c: $(TARGET_NAME)
echo "const char *git_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)/refs) ../.git/modules/firmware/$(TARGET_NAME)/packed-refs ../.git/modules/firmware/$(TARGET_NAME)/HEAD
$(TARGET_NAME)/module/gitversion.c: $(TARGET_NAME)
echo "const char *git_version = \"$(GIT_VERSION)\";" > $@

include common.mk

0 comments on commit 0f27665

Please sign in to comment.