From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 09:29:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFCEB1065675 for ; Wed, 28 Jan 2009 09:29:50 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from hpsmtp-eml19.kpnxchange.com (hpsmtp-eml19.KPNXCHANGE.COM [213.75.38.84]) by mx1.freebsd.org (Postfix) with ESMTP id 431668FC1F for ; Wed, 28 Jan 2009 09:29:50 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtp-eml109.kpnxchange.com ([10.94.168.109]) by hpsmtp-eml19.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 10:29:48 +0100 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by cpsmtp-eml109.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 10:29:48 +0100 Received: from van-laarhoven.org (hind.van-laarhoven.org [10.66.0.146]) (authenticated bits=0) by uitsmijter.van-laarhoven.org (8.14.3/8.14.3) with ESMTP id n0S9Vqbv080697 for ; Wed, 28 Jan 2009 10:31:52 +0100 (CET) (envelope-from nick@van-laarhoven.org) Received: (nullmailer pid 9034 invoked by uid 1001); Wed, 28 Jan 2009 09:29:41 -0000 To: FreeBSD CURRENT Mailing List Content-Disposition: inline From: Nick Hibma Date: Wed, 28 Jan 2009 10:29:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200901281029.41232.nick@van-laarhoven.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on uitsmijter.van-laarhoven.org X-OriginalArrivalTime: 28 Jan 2009 09:29:48.0954 (UTC) FILETIME=[F702DFA0:01C9812A] Subject: build in /sys/modules broken / other way of building 1 specific module X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 09:29:51 -0000 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