From 4d12189b6cc013f81a1ef2149fc2e66e9e4b771e Mon Sep 17 00:00:00 2001 From: Ravi Pokala Date: Sat, 3 Dec 2016 17:54:08 +0000 Subject: [PATCH] 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 --- sys/modules/Makefile | 2 +- sys/modules/bios/Makefile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 6e3d5a5e1dd1..e6ef93d017d7 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -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 diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile index d150806c045d..7d255a9c47ab 100644 --- a/sys/modules/bios/Makefile +++ b/sys/modules/bios/Makefile @@ -1,6 +1,10 @@ # $FreeBSD$ # -SUBDIR= smapi smbios vpd +SUBDIR= smbios vpd + +.if ${MACHINE_ARCH} == "i386" +SUBDIR+= smapi +.endif .include