mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[build] Include version number within only a single object file
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -169,11 +169,6 @@ GITVERSION := $(shell git describe --always --abbrev=1 --match "" 2>/dev/null)
|
||||
ifneq ($(GITVERSION),)
|
||||
VERSION += ($(GITVERSION))
|
||||
endif
|
||||
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) \
|
||||
-DVERSION_MINOR=$(VERSION_MINOR) \
|
||||
-DVERSION_PATCH=$(VERSION_PATCH) \
|
||||
-DVERSION="\"$(VERSION)\""
|
||||
IDENT = '$(@F) $(VERSION) (GPL) ipxe.org'
|
||||
version :
|
||||
@$(ECHO) "$(VERSION)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user