diff options
author | imp <imp@FreeBSD.org> | 2015-01-14 05:41:28 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2015-01-14 05:41:28 +0000 |
commit | 688468d31c0ac316df91f6b633e8ccf82deed7c8 (patch) | |
tree | 054338da94af69038ab99d640d1af95d6172655b /sys/modules/cbb | |
parent | 15f3ae0c52e8f3db0e69bfc68171c06284183f35 (diff) | |
download | FreeBSD-src-688468d31c0ac316df91f6b633e8ccf82deed7c8.zip FreeBSD-src-688468d31c0ac316df91f6b633e8ccf82deed7c8.tar.gz |
On x86 force NEW_PCIB, since that's the default. While this option
would be picked up for kernel builds, it isn't picked up for
old-fashioned builds. Without this option, PCI bus numbers are busted
for modules build iteratively.
Diffstat (limited to 'sys/modules/cbb')
-rw-r--r-- | sys/modules/cbb/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/modules/cbb/Makefile b/sys/modules/cbb/Makefile index a071485..8b9e954 100644 --- a/sys/modules/cbb/Makefile +++ b/sys/modules/cbb/Makefile @@ -6,4 +6,8 @@ KMOD= cbb SRCS= pccbb.c pccbb_isa.c pccbb_pci.c \ device_if.h bus_if.h power_if.h card_if.h isa_if.h pci_if.h pcib_if.h +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +CFLAGS += -DNEW_PCIB +.endif + .include <bsd.kmod.mk> |