From owner-freebsd-hackers@freebsd.org Wed Mar 27 08:47:31 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33A9315482FF; Wed, 27 Mar 2019 08:47:31 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A27206BCDB; Wed, 27 Mar 2019 08:47:30 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x2R8lNtB088824; Wed, 27 Mar 2019 01:47:23 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x2R8lMxc088823; Wed, 27 Mar 2019 01:47:22 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201903270847.x2R8lMxc088823@gndrsh.dnsmgr.net> Subject: Re: Adding a new efi-update-loader script: need help understanding Makefile.inc1 for "make installworld" In-Reply-To: <0828a41a-c25d-37a2-25b3-82c35c9a5c5d@bluestop.org> To: Rebecca Cran Date: Wed, 27 Mar 2019 01:47:22 -0700 (PDT) CC: "Rodney W. Grimes" , Warner Losh , Konstantin Belousov , "freebsd-arch@freebsd.org" , FreeBSD Hackers X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: A27206BCDB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2019 08:47:31 -0000 > On 3/26/19 12:21 AM, Rodney W. Grimes wrote: > > > > > The current BTX 1.1 is bit rot, that value has not changed in ages > > and tells me nothing about what boot code I am running, why do we > > even output it? > > > Sure, but the fact it shows up as "FreeBSD/amd64 EFI loader, Revision > 1.1" in "strings /boot/loader.efi" shows one way we could easily embed a > useful version number. Please go implement the placing of the version that is used to cause uname -U to output 1200086 or whatever from /usr/sbin/uname at build time, which is not an issue at all as far as reproducabile builds as that version number is the same no mater how many times you run the build. This is the current defining value that says your kernel is compatible with userland and should also be the defining value for if your boot code is also compatible. Thanks, -- Rod Grimes rgrimes@freebsd.org