diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aaae87594..63ab5af10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: - name: safe.directory run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom - name: Make - run: make -j + run: AUTHOR_STRING=${{ github.actor }} make -j - name: size run: arm-none-eabi-size firmware - name: Size Packet diff --git a/Makefile b/Makefile index 8ed8dea0d..f12ddf13e 100644 --- a/Makefile +++ b/Makefile @@ -199,11 +199,11 @@ endif OBJCOPY = arm-none-eabi-objcopy SIZE = arm-none-eabi-size -AUTHOR_STRING := EGZUMER +AUTHOR_STRING ?= EGZUMER # the user might not have/want git installed # can set own version string here (max 7 chars) ifneq (, $(shell $(WHERE) git)) - VERSION_STRING := $(shell git describe --tags --exact-match 2>$(NULL_OUTPUT)) + VERSION_STRING ?= $(shell git describe --tags --exact-match 2>$(NULL_OUTPUT)) ifeq (, $(VERSION_STRING)) VERSION_STRING := $(shell git rev-parse --short HEAD) endif @@ -216,7 +216,7 @@ ifeq ($(ENABLE_OVERLAY),1) ASFLAGS += -DENABLE_OVERLAY endif -CFLAGS = +CFLAGS =# -fno-strict-aliasing ifeq ($(ENABLE_CLANG),0) CFLAGS += -Os -Wall -Werror -mcpu=cortex-m0 -fno-builtin -fshort-enums -fno-delete-null-pointer-checks -std=c11 -MMD #CFLAGS += -Os -Wall -Werror -mcpu=cortex-m0 -fno-builtin -fshort-enums -fno-delete-null-pointer-checks -std=c99 -MMD