From 822875df79f79fc559eb87bf2366d5ee52e8960b Mon Sep 17 00:00:00 2001 From: n_hibma Date: Thu, 12 Feb 2009 14:44:15 +0000 Subject: Fix a few problems related to building modules in /sys/modules (not checked whether this applies to builds in /sys/*/compile/* as well): - Create empty opt_*.h files were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile. were missing - Hook up svr4 to the build. It compiles fine here, so no reason to disconnect it in the Makefile. --- sys/modules/Makefile | 1 + sys/modules/acpi/acpi/Makefile | 2 +- sys/modules/agp/Makefile | 2 +- sys/modules/dtrace/dtrace/Makefile | 2 +- sys/modules/linux/Makefile | 2 +- sys/modules/svr4/Makefile | 2 ++ 6 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 0bc256b..a881783 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -259,6 +259,7 @@ SUBDIR= ${_3dfx} \ ${_stg} \ stge \ ${_streams} \ + svr4 \ sym \ ${_syscons} \ sysvipc \ diff --git a/sys/modules/acpi/acpi/Makefile b/sys/modules/acpi/acpi/Makefile index 31c57dc..e6463e4 100644 --- a/sys/modules/acpi/acpi/Makefile +++ b/sys/modules/acpi/acpi/Makefile @@ -58,7 +58,7 @@ SRCS+= cpufreq_if.h device_if.h isa_if.h pci_if.h pcib_if.h # XXX ACPI should not depend on the following headers but this is currently # needed for the build of assym.s. # This obviously needs a better and more structural fix. -SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h +SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h # Debugging support DBSRC= dbcmds.c dbdisply.c dbexec.c dbfileio.c dbhistry.c dbinput.c dbstats.c diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile index 0411363..4026325 100644 --- a/sys/modules/agp/Makefile +++ b/sys/modules/agp/Makefile @@ -15,7 +15,7 @@ SRCS+= agp_amd64.c SRCS+= agp_amd64.c agp_i810.c agp_via.c .endif SRCS+= device_if.h bus_if.h agp_if.h pci_if.h -SRCS+= opt_bus.h +SRCS+= opt_agp.h opt_bus.h MFILES= kern/device_if.m kern/bus_if.m dev/agp/agp_if.m dev/pci/pci_if.m WERROR= diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile index 5d16800..08e61a9 100644 --- a/sys/modules/dtrace/dtrace/Makefile +++ b/sys/modules/dtrace/dtrace/Makefile @@ -23,7 +23,7 @@ SRCS+= bus_if.h device_if.h vnode_if.h SRCS+= assym.s # These are needed for assym.s -SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h +SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h .if ${MACHINE_ARCH} == "i386" SRCS+= opt_apic.h diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index fbf5a58..0995c3a 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -17,7 +17,7 @@ SRCS= linux${SFX}_dummy.c linux_emul.c linux_file.c \ device_if.h bus_if.h assym.s # XXX: for assym.s -SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h +SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h OBJS= linux${SFX}_locore.o linux${SFX}_support.o diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index 447d048..86f8446 100644 --- a/sys/modules/svr4/Makefile +++ b/sys/modules/svr4/Makefile @@ -9,6 +9,8 @@ SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_mac.h opt_svr4.h \ svr4_machdep.c svr4_resource.c svr4_ipc.c OBJS= svr4_locore.o +SRCS+= opt_ktrace.h opt_sysvipc.h opt_route.h + CLEANFILES= svr4_assym.h svr4_genassym.o svr4_assym.h: svr4_genassym.o -- cgit v1.1