In article <20151230161150.GA29981@dstar>, scole_mail <scole_m...@gmx.com> wrote: >The ia64 GENERIC kernel won't compile anymore: > >[snipped...] ># link GENERIC/netbsd >/home/scole/nbsd/src/obj/tooldir.NetBSD-7.0.0_PATCH-i386/bin/ia64--netbsd-ld >-Map netbsd.map --cref -T netbsd.ldscript -e start -X -o netbsd >${SYSTEM_OBJ:N*swap*netbsd*} ${EXTRA_OBJ} vers.o swapnetbsd.o >acpi_mcfg.o: In function `acpimcfg_scan_bus': >/home/scole/nbsd/src/sys/dev/acpi/acpi_mcfg.c:518: undefined reference >to `pci_enumerate_bus' >*** [netbsd] Error code 1 > >I think it is related to the set of 1.2 changes for acpi_mcfg.c > http://nxr.netbsd.org/history/src/sys/dev/acpi/acpi_mcfg.c >which seem to require pci for acpi code to compile. > >Would it be worth the effort to make pci optional for acpi? I know >there is a ton of other stuff to do for ia64 but it would be nice to >avoid that dependency. > >The ia64 GENERIC kernel includes acpi but pci is commented out because >it is yet to be implemented for ia64:
I don't think it is worth the trouble, it would require ifdef'ing out most of acpi_mcfg.c. Try instead commenting out: acpi.c: // acpimcfg_probe(sc); files.acpi: # file dev/acpi/acpi_mcfg.c acpi You'll have to put it back eventually anyway, so why bother :-) christos