Mercurial > illumos > git > illumos-gate
changeset 20234:61aa982babf5
10447 ACPI binaries should be reproducible
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Paul Winder <paul@winder.uk.net>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Robert Mustacchi <rm@fingolfin.org> |
---|---|
date | Sun, 06 Dec 2020 12:56:22 -0800 |
parents | 65462c7d0b00 |
children | dee5816f8469 |
files | usr/src/cmd/acpi/acpidump/Makefile usr/src/cmd/acpi/acpixtract/Makefile usr/src/cmd/acpi/iasl/Makefile usr/src/cmd/acpi/iasl/aslutils.c usr/src/uts/intel/sys/acpi/acapps.h |
diffstat | 5 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/acpi/acpidump/Makefile Tue Jan 05 17:29:32 2021 -0800 +++ b/usr/src/cmd/acpi/acpidump/Makefile Sun Dec 06 12:56:22 2020 -0800 @@ -30,6 +30,7 @@ SMOFF = all_func_returns CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_DUMP_APP +CPPFLAGS += -DACPI_DATE=\"$(VERSION)\" LDLIBS += -ldevinfo
--- a/usr/src/cmd/acpi/acpixtract/Makefile Tue Jan 05 17:29:32 2021 -0800 +++ b/usr/src/cmd/acpi/acpixtract/Makefile Sun Dec 06 12:56:22 2020 -0800 @@ -31,6 +31,7 @@ SMOFF = all_func_returns,macros CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_XTRACT_APP +CPPFLAGS += -DACPI_DATE=\"$(VERSION)\" .KEEP_STATE:
--- a/usr/src/cmd/acpi/iasl/Makefile Tue Jan 05 17:29:32 2021 -0800 +++ b/usr/src/cmd/acpi/iasl/Makefile Sun Dec 06 12:56:22 2020 -0800 @@ -105,6 +105,7 @@ SMATCH=off CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_ASL_COMPILER -I. +CPPFLAGS += -DACPI_DATE=\"$(VERSION)\" LEX_C_FILES = aslcompilerlex.c dtparserlex.c prparserlex.c YACC_C_FILES = aslcompilerparse.c dtparserparse.c prparserparse.c
--- a/usr/src/cmd/acpi/iasl/aslutils.c Tue Jan 05 17:29:32 2021 -0800 +++ b/usr/src/cmd/acpi/iasl/aslutils.c Sun Dec 06 12:56:22 2020 -0800 @@ -542,7 +542,7 @@ /* Compiler name and version number */ FlPrintFile (FileId, "%s version %X [%s]\n\n", - ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION, __DATE__); + ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION, ACPI_DATE); } /* Summary of main input and output files */
--- a/usr/src/uts/intel/sys/acpi/acapps.h Tue Jan 05 17:29:32 2021 -0800 +++ b/usr/src/uts/intel/sys/acpi/acapps.h Sun Dec 06 12:56:22 2020 -0800 @@ -189,7 +189,7 @@ Prefix #define ACPI_COMMON_BUILD_TIME \ - "Build date/time: %s %s\n", __DATE__, __TIME__ + "Build version: %s\n", ACPI_DATE /* Macros for usage messages */