Date: Wed, 4 Feb 2004 17:03:03 +0100 From: Mark Santcroos <marks@ripe.net> To: Don Lewis <truckman@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: building acpi module with ACPI_DEBUG option Message-ID: <20040204160303.GA713@laptop.6bone.nl> In-Reply-To: <200401110106.i0B1627E029227@gw.catspoiler.org> References: <200401110106.i0B1627E029227@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Don,
I think this is a lack in the build process of modules in general.
At this moment you'll just need to put it in /etc/make.conf (just as I do).
Mark
On Sat, Jan 10, 2004 at 05:06:02PM -0800, Don Lewis wrote:
> If you build a kernel with the ACPI_DEBUG option, this option gets
> passed to the module build in opt_acpi.h, but the kernel panics on boot
> because the symbol AcpiDmDumpMethodInfo is undefined in the module. The
> problem is that the Makefile for the acpi module needs to know whether
> ACPI_DEBUG is defined because it wants to append some more files to SRCS
> in this case. One of the extra source files contains the definition of
> the undefined symbol.
>
> .if ACPI_DEBUG
> CFLAGS+=-DACPI_DEBUG
> SRCS+= ${DBSRC}
> opt_ddb.h: Makefile
> echo "#define DDB 1" > ${.TARGET}
> .else
> opt_ddb.h: Makefile
> echo -n > ${.TARGET}
> .endif
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040204160303.GA713>
