From nobody Sun Feb 8 22:35:25 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; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611276945; cv=none; d=zohomail.com; s=zohoarc; b=mAyKL7i1IPX0a112kpogdWIyM2tObU5sXQdR4MHKsUzBBjGuoDXOCNnBEzfwe9FDHIfj6QsQHGD7vC1Z8ZTRMu9mP8Fy45tAWmk3xzmgsz/VRDuIqj66F1qXwxuPDPuus4c2udlG1WqA0fBZ3fnmv/rghIQrpp3vlIM5r6SlY68= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611276945; h=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=IZpokacvZSMBoacIfrREFVSTHwQh54ys3EOhcT8aoCg=; b=eOxtNM6cevFmwO2BRyYd5qCBrEXQ+mz3EjfWNEO9EIIjdh/nIeTDkZ7O7m70SqauLjwBf68cBURJcMyFf+tWbrR0CAMrfUs6zX/j0abR8Ld8+aV4/ydAkQUOPsKSgrTWBhVDtuGbmed3i8uZqqXYWgTcUcQ1mgi+Bxadwt6pyvQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1611276945134524.2817325589159; Thu, 21 Jan 2021 16:55:45 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.72502.130590 (Exim 4.92) (envelope-from ) id 1l2kja-0002kv-0A; Fri, 22 Jan 2021 00:55:30 +0000 Received: by outflank-mailman (output) from mailman id 72502.130590; Fri, 22 Jan 2021 00:55:29 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2kjZ-0002kn-ST; Fri, 22 Jan 2021 00:55:29 +0000 Received: by outflank-mailman (input) for mailman id 72502; Fri, 22 Jan 2021 00:55:28 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2kjY-0002iW-EH for xen-devel@lists.xenproject.org; Fri, 22 Jan 2021 00:55:28 +0000 Received: from mail-pj1-x1034.google.com (unknown [2607:f8b0:4864:20::1034]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 91a7897d-4d6c-4799-bde9-812b3755a4b1; Fri, 22 Jan 2021 00:55:23 +0000 (UTC) Received: by mail-pj1-x1034.google.com with SMTP id e6so2793533pjj.1 for ; Thu, 21 Jan 2021 16:55:23 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:4f00:c640:3cc1:5f60:de20:49b1]) by smtp.gmail.com with ESMTPSA id j23sm6930632pgj.34.2021.01.21.16.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 16:55:22 -0800 (PST) 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: 91a7897d-4d6c-4799-bde9-812b3755a4b1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IZpokacvZSMBoacIfrREFVSTHwQh54ys3EOhcT8aoCg=; b=kdzm+pQBhQC2HeKNWPzAb7gqPt/eRAb4XvlHxZe73weDzkRzFM7dfwRbgc/7okYp2n 4zcYd7ut4NHAA+1kfd00OCXSTrsf6Gc7aye51pjLjpwy30qxkMttFrZ3ubVuOiXeJpLb LUhzrniExcadSUFRK7PbFsTVLzTxx6XgLFtinA3/NNyUWrBJYAucCZB20gXYw773CE/+ KYT7B+lLo/0Trt8tRxDuv2ERmq5KdttpPIEnwndC2Ziaz6VhLixkU0p9Bamdp0HxNaEK /frnfCmS8in86meDGFFjXI/KNiALnrUzwSatggnnoAAvFREb7M248OyKUkJbdNsE4psb QF7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IZpokacvZSMBoacIfrREFVSTHwQh54ys3EOhcT8aoCg=; b=JcsEtgXqHpx6X3esmBI3zjPcUJqXadec5kzEgtCcI+IutjrZIFwluYHm8O8+x9UifZ EPLn/+dYOaeXfGDJMzuyQ5JQoNoU5BCPROwgKKI4tMEdeBKe14diIvnRuNuH/LyGMt+2 eVg/DsUvgvoZptzCwT0+Aqnf+s0If1P2WVALsvMP9lJbRR92Lq93BYPwaqCH3+hp8hJS +7WEhN0ja+PFFCcGhmMd+z14PQJnB5l+p5s9s3odm6nmY7eiXw6musrasYOj5Rhyw7bv wZECfKji6OuA53ljb6kc9FjcDCq+Xst+Qiwtd7SRcCGz6YiUp0dPJM1zjMQi4j8oGiB/ CdNQ== X-Gm-Message-State: AOAM531i51PkvuYgec22thYY36KNnTDp32rkL8+p8VZhWLqK8zwuOfIn VpB0XayMzWwUwG4xsp5wYQMNbqMuFbD7LLbg X-Google-Smtp-Source: ABdhPJy2+Z8OadIClk+do//xWMXjt7MkHgU6fn3tblN97Y6hnvdJXRMbk5HWTytITHPpKLuG7o3c8w== X-Received: by 2002:a17:90a:2ec7:: with SMTP id h7mr2342487pjs.200.1611276922799; Thu, 21 Jan 2021 16:55:22 -0800 (PST) From: Bobby Eshleman To: Xen-devel Cc: Daniel Kiper , Bobby Eshleman , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v3 1/5] xen: add XEN_BUILD_POSIX_TIME Date: Thu, 21 Jan 2021 16:51:40 -0800 Message-Id: X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Type: text/plain; charset="utf-8" From: Daniel Kiper POSIX time is required to fill the TimeDateStamp field in the PE header. Use SOURCE_DATE_EPOCH if available, otherwise use `date +%s` (available on both Linux and FreeBSD). Signed-off-by: Daniel Kiper Signed-off-by: Bobby Eshleman --- xen/Makefile | 2 ++ xen/include/xen/compile.h.in | 1 + 2 files changed, 3 insertions(+) diff --git a/xen/Makefile b/xen/Makefile index 544cc0995d..85f9b763a4 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -11,6 +11,7 @@ export XEN_DOMAIN ?=3D $(shell ([ -x /bin/dnsdomainname ]= && /bin/dnsdomainname) | export XEN_BUILD_DATE ?=3D $(shell LC_ALL=3DC date) export XEN_BUILD_TIME ?=3D $(shell LC_ALL=3DC date +%T) export XEN_BUILD_HOST ?=3D $(shell hostname) +export XEN_BUILD_POSIX_TIME ?=3D $(shell echo $${SOURCE_DATE_EPOCH:-$(shel= l date +%s)}) =20 # Best effort attempt to find a python interpreter, defaulting to Python 3= if # available. Fall back to just `python` if `which` is nowhere to be found. @@ -386,6 +387,7 @@ delete-unfresh-files: include/xen/compile.h: include/xen/compile.h.in .banner @sed -e 's/@@date@@/$(XEN_BUILD_DATE)/g' \ -e 's/@@time@@/$(XEN_BUILD_TIME)/g' \ + -e 's/@@posix_time@@/$(XEN_BUILD_POSIX_TIME)/g' \ -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \ -e 's/@@domain@@/$(XEN_DOMAIN)/g' \ -e 's/@@hostname@@/$(XEN_BUILD_HOST)/g' \ diff --git a/xen/include/xen/compile.h.in b/xen/include/xen/compile.h.in index 440ecb25c1..b2ae6f96ad 100644 --- a/xen/include/xen/compile.h.in +++ b/xen/include/xen/compile.h.in @@ -1,5 +1,6 @@ #define XEN_COMPILE_DATE "@@date@@" #define XEN_COMPILE_TIME "@@time@@" +#define XEN_COMPILE_POSIX_TIME @@posix_time@@ #define XEN_COMPILE_BY "@@whoami@@" #define XEN_COMPILE_DOMAIN "@@domain@@" #define XEN_COMPILE_HOST "@@hostname@@" --=20 2.30.0