From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 19:40:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8BBF161C for ; Thu, 3 Jan 2013 19:40:55 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (mtumishi.cyberleo.net [216.226.128.201]) by mx1.freebsd.org (Postfix) with ESMTP id 63671E12 for ; Thu, 3 Jan 2013 19:40:55 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [216.80.73.130]) by paka.cyberleo.net (Postfix) with ESMTPSA id 2056711E87B; Thu, 3 Jan 2013 14:40:48 -0500 (EST) Message-ID: <50E5DEBF.8040701@cyberleo.net> Date: Thu, 03 Jan 2013 13:40:47 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121201 Thunderbird/10.0.11 MIME-Version: 1.0 To: Martin Laabs Subject: Re: Build linux,ko kernel module standalone References: <50E58023.9050000@martinlaabs.de> In-Reply-To: <50E58023.9050000@martinlaabs.de> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 19:40:55 -0000 On 01/03/2013 06:57 AM, Martin Laabs wrote: > Hello, > > if I wanna build a kernel module standalone (without the kernel e.g. for > testing) I do it the following way (wlan in this example): > > cd /usr/src/sys/modules/wlan > make all > maybe make install if I wanna install it. > > Now I want do build the linux.ko module with the symbol DEBUG defined and > tried the following: > > cd /usr/src/sys/modules/linux make depend > make -DDEBUG all Be wary of changing compile options for only certain parts of the kernel, as this may lead to problems with mismatching code. -- Fuzzy love, -CyberLeo Furry Peace! - http://www.fur.com/peace/