Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2020 04:22:29 +0000 (UTC)
From:      Brandon Bergren <bdragon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365739 - in head: share/man/man5 share/mk stand tools/build/options
Message-ID:  <202009150422.08F4MTLc005291@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdragon
Date: Tue Sep 15 04:22:28 2020
New Revision: 365739
URL: https://svnweb.freebsd.org/changeset/base/365739

Log:
  [PowerPC] Remove obsolete MK_LOADER_FORCE_LE
  
  In D12421, the ability to compile stand/ in little-endian was added, with the
  intention to extend loader.kboot to run in Petitboot.
  
  However, no further work was done, as the kernel then gained self-execution
  capabilities as Petitboot was taught to load FreeBSD kernels directly.
  
  The FreeBSD installer on powerpc64 (on POWER8 and POWER9) uses
  /boot/etc/kboot.conf instead of loader.
  
  As this option does nothing but cause stand/ to be miscompiled and actively
  causes confusion, remove it.
  
  (I have a functioning petitboot loader in my local tree, however, it turned
  out to be quite inconvient to use due to the current petitboot plugin design
  so I put it on hold.)
  
  Reviewed by:	emaste, imp, jhibbits
  Sponsored by:	Tag1 Consulting, Inc.
  Differential Revision:	https://reviews.freebsd.org/D26430

Deleted:
  head/tools/build/options/WITH_LOADER_FORCE_LE
Modified:
  head/share/man/man5/src.conf.5
  head/share/mk/src.opts.mk
  head/stand/defs.mk

Modified: head/share/man/man5/src.conf.5
==============================================================================
--- head/share/man/man5/src.conf.5	Tue Sep 15 00:22:30 2020	(r365738)
+++ head/share/man/man5/src.conf.5	Tue Sep 15 04:22:28 2020	(r365739)
@@ -1,6 +1,6 @@
 .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
 .\" $FreeBSD$
-.Dd September 11, 2020
+.Dd September 14, 2020
 .Dt SRC.CONF 5
 .Os
 .Sh NAME
@@ -983,9 +983,6 @@ with support for verification based on certificates ob
 .It Va WITH_LOADER_FIREWIRE
 Enable firewire support in /boot/loader on x86. This option is a nop
 on all other platforms.
-.It Va WITH_LOADER_FORCE_LE
-Set to force the powerpc boot loader to launch the kernel in little
-endian mode.
 .It Va WITHOUT_LOADER_GELI
 Disable inclusion of GELI crypto support in the boot chain binaries.
 .Pp

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk	Tue Sep 15 00:22:30 2020	(r365738)
+++ head/share/mk/src.opts.mk	Tue Sep 15 04:22:28 2020	(r365739)
@@ -211,7 +211,6 @@ __DEFAULT_NO_OPTIONS = \
     HESIOD \
     LIBSOFT \
     LOADER_FIREWIRE \
-    LOADER_FORCE_LE \
     LOADER_VERBOSE \
     LOADER_VERIEXEC_PASS_MANIFEST \
     MALLOC_PRODUCTION \

Modified: head/stand/defs.mk
==============================================================================
--- head/stand/defs.mk	Tue Sep 15 00:22:30 2020	(r365738)
+++ head/stand/defs.mk	Tue Sep 15 04:22:28 2020	(r365739)
@@ -175,12 +175,6 @@ DD=dd ${DD_NOSTATUS}
 CFLAGS+=	-G0 -fno-pic -mno-abicalls
 .endif
 
-.if ${MK_LOADER_FORCE_LE} != "no"
-.if ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+=	-mlittle-endian
-.endif
-.endif
-
 #
 # Have a sensible default
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009150422.08F4MTLc005291>