summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorrpokala <rpokala@FreeBSD.org>2016-12-11 02:01:59 +0000
committerrpokala <rpokala@FreeBSD.org>2016-12-11 02:01:59 +0000
commit90c02dc90566ee82971be44f1fe9fcf2016abc22 (patch)
tree6610c75a273bc9b1a53671ef44f850f06e794065 /sys/modules
parent6abd291eeca18f7b912dca6abbc3538b5beb1ea9 (diff)
downloadFreeBSD-src-90c02dc90566ee82971be44f1fe9fcf2016abc22.zip
FreeBSD-src-90c02dc90566ee82971be44f1fe9fcf2016abc22.tar.gz
MFC r309491: 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. Because 'sys/modules/Makefile' was refactored after stable/10 was branched, the diff for that file is different from that of the original commit. They are functionally equivalent.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile1
-rw-r--r--sys/modules/bios/Makefile6
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index c26e560..3aa5f4a 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -683,6 +683,7 @@ _amdsbwd= amdsbwd
_amdtemp= amdtemp
_arcmsr= arcmsr
_asmc= asmc
+_bios= bios
_bktr= bktr
_bxe= bxe
_cardbus= cardbus
diff --git a/sys/modules/bios/Makefile b/sys/modules/bios/Makefile
index d150806..7d255a9 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 <bsd.subdir.mk>
OpenPOWER on IntegriCloud