From nobody Sun Feb 8 12:58:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1608324353; cv=none; d=zohomail.com; s=zohoarc; b=N6DyWGqY+MsR8xGMvhBEQ4gD8288fo41Cu1ASmG+vwI/zhcDUZmJt8liz31NsVd6X1bIoKvHojS/0ot1okSePLkS9bFjeo7IZWP2Sh0xT3NaICkQ3ZwX4+9+tvz7WU06xNvHOGFPHpuVBjNvTDWprSR7CGi0aJtEOCZO4ZW88wQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608324353; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/bH0kZD2LW9U87q9hGgBuV67Lsd5mCEooUbOmJsV/0A=; b=Ul9kOASgarbXqaxYGIc0fvzmVKSQnBuws6SQY2l/QyOGDiGGfpoVhx9MkX2x+RyTK3+PShjSmouAjsfkXQOX2Li1jyDg0mH6ZneTuynxXuqu3hoKaf1wGV/sm3X7H+3g2V3kKdS1KUWRIYn5F4opylnnWlwIphsIcJrTY/E/sDc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1608324353414398.4174590143808; Fri, 18 Dec 2020 12:45:53 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.56682.99288 (Exim 4.92) (envelope-from ) id 1kqMd8-0001BL-I2; Fri, 18 Dec 2020 20:45:38 +0000 Received: by outflank-mailman (output) from mailman id 56682.99288; Fri, 18 Dec 2020 20:45:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kqMd8-0001BC-D9; Fri, 18 Dec 2020 20:45:38 +0000 Received: by outflank-mailman (input) for mailman id 56682; Fri, 18 Dec 2020 20:45:37 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kqMd7-00018c-GP for xen-devel@lists.xenproject.org; Fri, 18 Dec 2020 20:45:37 +0000 Received: from mx1.somlen.de (unknown [2a00:1828:a019::100:0]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a4face0c-83fd-4ebf-a058-7acf17fb493a; Fri, 18 Dec 2020 20:45:32 +0000 (UTC) Received: by mx1.somlen.de with ESMTPSA id E10F8C3AF0D; Fri, 18 Dec 2020 21:45:29 +0100 (CET) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a4face0c-83fd-4ebf-a058-7acf17fb493a From: Maximilian Engelhardt To: xen-devel@lists.xenproject.org Cc: Maximilian Engelhardt , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu Subject: [XEN PATCH 1/3] xen/arch/x86: don't insert timestamp when SOURCE_DATE_EPOCH is defined Date: Fri, 18 Dec 2020 21:42:33 +0100 Message-Id: <5f715df2808dcd24b9fab95cd02522d16daba86c.1608319634.git.maxi@daemonizer.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable By default a timestamp gets added to the xen efi binary. Unfortunately ld doesn't seem to provide a way to set a custom date, like from SOURCE_DATE_EPOCH, so set a zero value for the timestamp (option --no-insert-timestamp) if SOURCE_DATE_EPOCH is defined. This makes reproducible builds possible. This is an alternative to the patch suggested in [1]. This patch only omits the timestamp when SOURCE_DATE_EPOCH is defined. [1]=C2=A0https://lists.xenproject.org/archives/html/xen-devel/2020-10/msg02= 161.html Signed-off-by: Maximilian Engelhardt Acked-by: Jan Beulich --- xen/arch/x86/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 8f2180485b..863aed043f 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -184,6 +184,12 @@ EFI_LDFLAGS +=3D --major-image-version=3D$(XEN_VERSION) EFI_LDFLAGS +=3D --minor-image-version=3D$(XEN_SUBVERSION) EFI_LDFLAGS +=3D --major-os-version=3D2 --minor-os-version=3D0 EFI_LDFLAGS +=3D --major-subsystem-version=3D2 --minor-subsystem-version= =3D0 +# It seems ld unfortunately can't set a custom timestamp, so add a zero va= lue +# for the timestamp (option --no-insert-timestamp) if SOURCE_DATE_EPOCH is +# defined to make reproducible builds possible. +ifdef SOURCE_DATE_EPOCH +EFI_LDFLAGS +=3D --no-insert-timestamp +endif =20 $(TARGET).efi: VIRT_BASE =3D 0x$(shell $(NM) efi/relocs-dummy.o | sed -n '= s, A VIRT_START$$,,p') $(TARGET).efi: ALT_BASE =3D 0x$(shell $(NM) efi/relocs-dummy.o | sed -n 's= , A ALT_START$$,,p') --=20 2.20.1