svn commit: r309491 - in head/sys/modules: . bios

Ravi Pokala rpokala at FreeBSD.org
Sat Dec 3 17:54:09 UTC 2016


Author: rpokala
Date: Sat Dec  3 17:54:08 2016
New Revision: 309491
URL: https://svnweb.freebsd.org/changeset/base/309491

Log:
  Build smbios.ko as a module for amd64 and i386
  
  For whatever reason, smapi, smbios, vpd are all under the "bios" directory.
  smapi is only for i386, so the entire "bios" directory is only built for
  i386. Break smapi out, and make only it i386-specific. Then, build the
  "bios" directory for both amd64 and i386.
  
  Reviewed by:	imp
  MFC after:	1 week
  Sponsored by:	Panasas
  Differential Revision:	https://reviews.freebsd.org/D8609

Modified:
  head/sys/modules/Makefile
  head/sys/modules/bios/Makefile

Modified: head/sys/modules/Makefile
==============================================================================
--- head/sys/modules/Makefile	Sat Dec  3 17:44:43 2016	(r309490)
+++ head/sys/modules/Makefile	Sat Dec  3 17:54:08 2016	(r309491)
@@ -550,6 +550,7 @@ _igb=		igb
 _agp=		agp
 _an=		an
 _aout=		aout
+_bios=		bios
 _bktr=		bktr
 _bxe=		bxe
 _cardbus=	cardbus
@@ -730,7 +731,6 @@ _svr4=		svr4
 .if ${MK_EISA} != "no"
 _ahb=		ahb
 .endif
-_bios=		bios
 _cm=		cm
 .if ${MK_SOURCELESS_UCODE} != "no"
 _ctau=		ctau

Modified: head/sys/modules/bios/Makefile
==============================================================================
--- head/sys/modules/bios/Makefile	Sat Dec  3 17:44:43 2016	(r309490)
+++ head/sys/modules/bios/Makefile	Sat Dec  3 17:54:08 2016	(r309491)
@@ -1,6 +1,10 @@
 # $FreeBSD$
 #
 
-SUBDIR=	smapi smbios vpd
+SUBDIR=	smbios vpd
+
+.if ${MACHINE_ARCH} == "i386"
+SUBDIR+=	smapi
+.endif
 
 .include <bsd.subdir.mk>


More information about the svn-src-all mailing list