[ipxe-devel] [PATCH] [build] Make it deterministic when building from git.

Geert Stappers stappers at stappers.nl
Sat Sep 10 21:24:41 UTC 2016


On Sat, Sep 10, 2016 at 11:03:40PM +0200, Denis 'GNUtoo' Carikli wrote:
> This is to permit deterministic builds, while
> at the same time still permitting to identify
> which binary is running.
    ...
> --- a/src/Makefile.housekeeping
> +++ b/src/Makefile.housekeeping
    ...
> -# Command to generate build ID.  Must be unique for each $(BIN)/%.tmp,
> -# even within the same build run.
> -#
> -BUILD_ID_CMD	:= perl -e 'printf "0x%08x", int ( rand ( 0xffffffff ) );'
    ...
    ...
> -		--defsym _build_id=`$(BUILD_ID_CMD)` \
> +		--defsym _build_id=0x`cat $? | sha1sum | cut -c-8` \

What is "$?"


Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the ipxe-devel mailing list