Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2018 15:35:54 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r333605 - stable/11/release/tools
Message-ID:  <201805141535.w4EFZs8b089907@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon May 14 15:35:54 2018
New Revision: 333605
URL: https://svnweb.freebsd.org/changeset/base/333605

Log:
  MFC r333493:
  
  Set kldxref_enable="YES" for ARM images. Without it, the images are missing
  the /boot/kernel/linker.hints file, which breaks loading some of the modules
  with dependencies, eg cfiscsi.ko.
  
  This is a minimal fix for ARM images, in order to safely MFC it before
  11.2-RELEASE.  Afterwards, however, I believe we should actually just change
  the default (as in, etc/defaults/rc.conf).  The reason is that it's required
  for every image that's being cross-built, as kldxref(1) cannot handle files
  for non-native architectures.  For the one that is not - amd64 - having it
  on by default doesn't change anything - the script is noop if the linker.hints
  already exists.
  
  The long-term solution would be to rewrite kldxref(1) to handle other
  architectures, and generate linker.hints at build time.
  
  Approved by:	re (marius@)
  Sponsored by:	DARPA, AFRL

Modified:
  stable/11/release/tools/arm.subr
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/release/tools/arm.subr
==============================================================================
--- stable/11/release/tools/arm.subr	Mon May 14 15:16:51 2018	(r333604)
+++ stable/11/release/tools/arm.subr	Mon May 14 15:35:54 2018	(r333605)
@@ -122,6 +122,7 @@ arm_install_base() {
 	echo 'sendmail_outbound_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
 	echo 'sendmail_msp_queue_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
 	echo 'growfs_enable="YES"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
+	echo 'kldxref_enable="YES"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
 
 	sync
 	umount_loop ${CHROOTDIR}/${DESTDIR}



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