build in /sys/modules broken / other way of building 1 specific module

From: Nick Hibma <nick_at_van-laarhoven.org>
Date: Wed, 28 Jan 2009 10:29:40 +0100
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)
_at__at_ -23,7 +23,7 _at__at_
 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)
_at__at_ -58,7 +58,7 _at__at_
 # 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)
_at__at_ -17,7 +17,7 _at__at_
 	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
Received on Wed Jan 28 2009 - 08:29:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:41 UTC