From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Mon, 18 Oct 2021 13:40:19 +0200 Subject: [PATCH v5] Makefile: Add build time and compiler info string In-Reply-To: (Bin Meng's message of "Mon, 18 Oct 2021 18:33:59 +0800") References: <20211018041148.1343731-1-anup.patel@wdc.com> <87h7dehj56.fsf@igel.home> Message-ID: <87lf2qef30.fsf@dell.be.48ers.dk> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit >>>>> "Bin" == Bin Meng writes: Hi, >> Users will have to figure-out/remember a fixed build date when >> using SOURCE_DATA_EPOCH for reproducible builds whereas >> users don't need to do anything when BUILD_INFO is not defined. > This is not 100% true as with current OpenSBI we never claim its build > is fully reproducible. For example, one can easily add __DATE__ to the > source codes which will alter unless we provide SOURCE_DATA_EPOCH. Notice that GCC >= 7 does in fact look for SOURCE_DATE_EPOCH in the environment and change the behaviour of the __DATE__ / __TIME__ macros: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html -- Bye, Peter Korsgaard