From owner-freebsd-current@FreeBSD.ORG Wed Sep 11 13:37:23 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 33B48C5A for ; Wed, 11 Sep 2013 13:37:23 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id ED94B2C5E for ; Wed, 11 Sep 2013 13:37:22 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:ec11:dc51:d1b4:e536]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 5CE114AC57 for ; Wed, 11 Sep 2013 17:37:21 +0400 (MSK) Date: Wed, 11 Sep 2013 17:37:16 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1510067821.20130911173716@serebryakov.spb.ru> To: freebsd-current@freebsd.org Subject: Chicken and egg problem when building (third-party) kernel modules with -- how to solve? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 13:37:23 -0000 Hello, Freebsd-current. It is good idea to set KERNBUILDDIR when build module. But to set it you need to know ${.OBJDIR} from ${SYSDIR} and ${SYSDIR} is set in bsd.kmod.mk, which should be included last (after defining KERNBUILDDIR). How this loop could be broken? -- // Black Lion AKA Lev Serebryakov