Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $(OPTIONS_1_INC): $(GEN_MANPAGE_OPTS)
$(MANPAGE_not_gzipped): nvidia-modprobe.1.m4 $(OPTIONS_1_INC) $(VERSION_MK)
$(call quiet_cmd,M4) -D__HEADER__=$(AUTO_TEXT) -I $(OUTPUTDIR) \
-D__VERSION__=$(NVIDIA_VERSION) \
-D__DATE__="`$(DATE) +%F`" \
-D__DATE__=$(BUILD_DATE) \
-D__BUILD_OS__=$(TARGET_OS) \
$< > $@

Expand Down
8 changes: 8 additions & 0 deletions utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ NV_QUIET_COMMAND_REMOVED_TARGET_PREFIX ?=

NV_GENERATED_HEADERS ?=

# Ensure the build is reproducible, for details see:
# https://reproducible-builds.org/docs/source-date-epoch/
ifdef SOURCE_DATE_EPOCH
BUILD_DATE := $(shell $(DATE) +%F --utc --date="@$(SOURCE_DATE_EPOCH)")
else
BUILD_DATE := $(shell $(DATE) +%F)
endif

##############################################################################
# This makefile uses the $(eval) builtin function, which was added in
# GNU make 3.80. Check that the current make version recognizes it.
Expand Down