build in /sys/modules broken / other way of building 1 specific
module
Nick Hibma
nick at van-laarhoven.org
Wed Jan 28 01:29:51 PST 2009
Folks,
I am not quite sure as to what its status is (and dfr politely explained
that I was being wereold-fashioned), but the build in /sys/modules is
broken at the moment. Doing
cd /sys/modules
sudo make
does not work due to missing opt_hwpmc_hooks.h files required by the build
of genassym.
The patch below fixes this (creating empty opt_hwpmc_hooks.h files, any
objections?), but I
was wondering whether there is another way for building 1 specific module
instead of having to wait for 100+ modules to build after typing in
cd /sys/i386/compile/HILDE/
make -DNO_MODULES_OBJ modules
Nick
Index: dtrace/dtrace/Makefile
===================================================================
--- dtrace/dtrace/Makefile (revision 187780)
+++ dtrace/dtrace/Makefile (working copy)
@@ -23,7 +23,7 @@
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
Index: acpi/acpi/Makefile
===================================================================
--- acpi/acpi/Makefile (revision 187780)
+++ acpi/acpi/Makefile (working copy)
@@ -58,7 +58,7 @@
# 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
Index: linux/Makefile
===================================================================
--- linux/Makefile (revision 187780)
+++ linux/Makefile (working copy)
@@ -17,7 +17,7 @@
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
More information about the freebsd-current
mailing list