Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2020 23:19:09 +0000 (UTC)
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363339 - head/sys/modules
Message-ID:  <202007192319.06JNJ9tp052608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mhorne
Date: Sun Jul 19 23:19:09 2020
New Revision: 363339
URL: https://svnweb.freebsd.org/changeset/base/363339

Log:
  Make efirt module dependent on MK_EFI
  
  MK_EFI was added to kern.opts.mk in r331099, but is currently unused.
  Take advantage of that fact and gate the build of efirt behind it.
  
  Reviewed by:	imp
  Differential Revision:	https://reviews.freebsd.org/D24673

Modified:
  head/sys/modules/Makefile

Modified: head/sys/modules/Makefile
==============================================================================
--- head/sys/modules/Makefile	Sun Jul 19 23:17:43 2020	(r363338)
+++ head/sys/modules/Makefile	Sun Jul 19 23:19:09 2020	(r363339)
@@ -421,6 +421,12 @@ _ktls_ocf=	ktls_ocf
 SUBDIR+=	cuse
 .endif
 
+.if ${MK_EFI} != "no"
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
+_efirt=		efirt
+.endif
+.endif
+
 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
 	defined(ALL_MODULES)
 _carp=		carp
@@ -585,7 +591,6 @@ _cxgb=		cxgb
 .if ${MACHINE_CPUARCH} == "aarch64"
 _allwinner=	allwinner
 _armv8crypto=	armv8crypto
-_efirt=		efirt
 _em=		em
 _rockchip=	rockchip
 .endif
@@ -707,7 +712,6 @@ _x86bios=	x86bios
 .if ${MACHINE_CPUARCH} == "amd64"
 _amdgpio=	amdgpio
 _ccp=		ccp
-_efirt=		efirt
 _iavf=		iavf
 _ioat=		ioat
 _ixl=		ixl



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