Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2009 10:29:40 +0100
From:      Nick Hibma <nick@van-laarhoven.org>
To:        FreeBSD CURRENT Mailing List <freebsd-current@freebsd.org>
Subject:   build in /sys/modules broken / other way of building 1 specific module
Message-ID:  <200901281029.41232.nick@van-laarhoven.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901281029.41232.nick>