From owner-svn-src-all@freebsd.org Tue Feb 27 18:52:47 2018 Return-Path: Delivered-To: svn-src-all@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 0E648F3F6DE; Tue, 27 Feb 2018 18:52:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78EFA68F62; Tue, 27 Feb 2018 18:52:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 48CC410AC13; Tue, 27 Feb 2018 13:52:38 -0500 (EST) From: John Baldwin To: Kyle Evans Cc: Warner Losh , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r330004 - in head/stand: . arm efi forth i386 mips powerpc sparc64 Date: Tue, 27 Feb 2018 09:50:50 -0800 Message-ID: <1613436.oZ5flIo0b9@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: References: <201802260316.w1Q3G4vc022314@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 27 Feb 2018 13:52:38 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 18:52:47 -0000 On Tuesday, February 27, 2018 09:28:49 AM Kyle Evans wrote: > On Sun, Feb 25, 2018 at 9:16 PM, Warner Losh wrote: > > Author: imp > > Date: Mon Feb 26 03:16:04 2018 > > New Revision: 330004 > > URL: https://svnweb.freebsd.org/changeset/base/330004 > > > > Log: > > Add NO_OBJ to those directories that don't make anything. > > > > For directories that don't many anything, add NO_OBJ=t just before we > > include bsd.init.mk. This prevents them from creating an OBJ > > directory. In addition, prevent defs.mk from creating the machine > > related links in these cases. They aren't needed and break, at least > > on stable, the read-only src tree build. > > > > Any objection to also removing efi from i386 SUBDIR? It seems silly > to be explicitly adding it when we know nothing here is applicable and > it's going to take some amount of work to get there. Actually, I believe the only thing it needs is for the i386 kernel to understand the EFI memory map. If you made the i386 EFI loader fake up the SMAP metadata from the EFI memory map you could probably boot an unmodified i386 kernel. (It would be better to teach the i386 kernel to handle the EFI memory map though.) It's more a matter of does someone care enough to actually get a test environment going to test it. One would also eventually want to teach the i386 kernel about efifb as well as EFI runtime services, but that shouldn't be strictly required for booting an i386 kernel via EFI. -- John Baldwin