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.
This commit is contained in:
parent
6a3f277901
commit
5355ab2008
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277162
@ -6,4 +6,8 @@ KMOD= cardbus
|
||||
SRCS= cardbus.c cardbus_cis.c cardbus_device.c \
|
||||
device_if.h bus_if.h card_if.h power_if.h pci_if.h pcib_if.h
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
||||
CFLAGS += -DNEW_PCIB
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user